/// <summary> /// Constructor /// </summary> /// <param name="gameVM"></param> public ComponentTemplateParentVM(GameVM gameVM) { _staticData = gameVM.Game.StaticData; _gameVM = gameVM; FormulaEditor = new FormulaEditorVM(this, _staticData); foreach (var item in _staticData.ComponentTemplates.Values) { Components.Add(item, item.Name); } SelectedComponent = new ComponentTemplateMainPropertiesVM(this, _gameVM); Components.SelectionChangedEvent += Components_SelectionChangedEvent; Components.SelectedIndex = 0; }
public ButtonInfo(string text, string tooltext, FormulaEditorVM parent) { Text = text; ToolTipText = tooltext; Parent = parent; }