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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user