Handles displaying grid this is not enabled

Added MyDisablePanel vlnPanel control
Added ApplDisplayMode property to StepPanel class
Added vlnPanel class
This commit is contained in:
Rich
2012-12-04 23:08:43 +00:00
parent 2549984e63
commit d29f45d322
5 changed files with 138 additions and 3 deletions

View File

@@ -48,7 +48,30 @@ namespace Volian.Controls.Library
if (!_LookupEditItems.ContainsKey(itemInfo.ItemID)) return null;
return _LookupEditItems[itemInfo.ItemID];
}
private int _ApplDisplayMode = -1;
public int ApplDisplayMode
{
get { return _ApplDisplayMode; }
set
{
if(_ApplDisplayMode == value) return;
_ApplDisplayMode = value;
foreach (Control c in Controls)
{
EditItem ei = c as EditItem;
if (ei != null)
{
ei.Enabled = ei.MyItemInfo.IsApplicable(value);
//IItemConfig cfg = ei.MyItemInfo.MyConfig as IItemConfig;
//List<int> apples = cfg.MasterSlave_Applicability.GetFlags();
//if (value == -1 || apples.Count == 0)
// ei.Enabled = true;
//else
// ei.Enabled = apples.Contains(value);
}
}
}
}
/// <summary>
/// Currently selected ItemInfo
/// </summary>