Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
 public ButtonInfo(string text, string tooltext, FormulaEditorVM parent)
 {
     Text = text; ToolTipText = tooltext; Parent = parent;
 }