public GuiMetaDataModel(string strArg, GuiObjectType guiObjectType) { if (guiObjectType == GuiObjectType.comment) { Comment = strArg; } else if (guiObjectType == GuiObjectType.history) { History = strArg; // Start disabled for [0-1] multiplicity ExecuteDeleteItem(); } CommandDeleteItem = new DelegateCommand(ExecuteDeleteItem); CommandAddItem = new DelegateCommand(ExecuteAddItem); CommandNullOutEntry = new DelegateCommand(NullOutRecord); }
public static GUIObject GetGuiObject(GuiObjectType type) { return(guiObjects[(int)type]); }
public static void SetGuiValue(GuiObjectType type, int value) { ((NumerableGUIObject)guiObjects[(int)type]).SetNumber(value); }
public GuiMetaDataModel(string systemName, string systemVersion, string systemType, string systemTypeVersion, GuiObjectType guiObjectType) { if (guiObjectType == GuiObjectType.system) { SystemName = systemName; SystemVersion = systemVersion; SystemVersion = systemType; SystemTypeVersion = systemTypeVersion; } CommandDeleteItem = new DelegateCommand(ExecuteDeleteItem); CommandAddItem = new DelegateCommand(ExecuteAddItem); CommandNullOutEntry = new DelegateCommand(NullOutRecord); }