Exemplo n.º 1
0
 private void actionList_SelectedValueChanged(object sender, EventArgs e)
 {
     SelectedAction = DotaActionFactory.CreateNewAction(actionList.SelectedItem as string);
     EditorGrammarAttribute attrib = SelectedAction.GetType().GetCustomAttribute<EditorGrammarAttribute>();
     if (attrib != null) actionGrammerEditor1.Grammer = attrib.Grammar;
     actionGrammerEditor1.Object = SelectedAction;
 }
Exemplo n.º 2
0
        public ActionNode(BaseAction action)
            : base(action.ClassName)
        {
            DotaAction = action;
            AddNodeElements();

            this.HeaderColor = System.Drawing.Brushes.SteelBlue;

            RefreshVariableRefs();

           
        }
Exemplo n.º 3
0
 public void Remove(BaseAction f)
 {
     this.List.Remove(f);
 }
Exemplo n.º 4
0
 public void Add(BaseAction f)
 {
     this.List.Add(f);
 }