public void EditDictionarySyntax()
 {
     DialogResult res;
     MoveDefEventNode e = _resource as MoveDefEventNode;
     long ev = e._event;
     MoveDefEntryNode temp = new MoveDefEntryNode();
     if (MoveDefNode.EventDictionary.ContainsKey(ev))
         temp.Name = MoveDefNode.EventDictionary[ev]._syntax;
     else
         temp.Name = "";
     using (RenameDialog dlg = new RenameDialog()) { res = dlg.ShowDialog(MainForm.Instance, temp); }
     if (res == DialogResult.OK)
     {
         if (MoveDefNode.EventDictionary.ContainsKey(ev))
             MoveDefNode.EventDictionary[ev]._syntax = temp.Name;
         else
             MoveDefNode.EventDictionary.Add(ev, new ActionEventInfo() { Params = new string[_resource.Children.Count], pDescs = new string[_resource.Children.Count], _syntax = temp.Name, idNumber = ev });
         MoveDefNode._dictionaryChanged = true;
     }
     temp.Dispose();
     temp = null;
 }
 public void EditDictionaryName()
 {
     DialogResult res;
     MoveDefEventParameterNode e = _resource as MoveDefEventParameterNode;
     uint ev = (e.Parent as MoveDefEventNode)._event;
     MoveDefEntryNode temp = new MoveDefEntryNode();
     if (MoveDefNode.EventDictionary.ContainsKey(ev))
         temp.Name = MoveDefNode.EventDictionary[ev].Params[_resource.Index];
     else
         temp.Name = "";
     using (RenameDialog dlg = new RenameDialog()) { res = dlg.ShowDialog(MainForm.Instance, temp); }
     if (res == DialogResult.OK)
     {
         if (!MoveDefNode.EventDictionary.ContainsKey(ev))
             MoveDefNode.EventDictionary.Add(ev, new ActionEventInfo() { Params = new string[_resource.Parent.Children.Count], pDescs = new string[_resource.Parent.Children.Count], idNumber = ev });
         MoveDefNode.EventDictionary[ev].Params[_resource.Index] = temp.Name;
         MoveDefNode._dictionaryChanged = true;
         foreach (MoveDefEventNode n in e.Root._events[ev])
         {
             n.Children[_resource.Index].Name = temp.Name;
             n.Children[_resource.Index].HasChanged = false;
         }
     }
     temp.Dispose();
     temp = null;
 }