public override void OnClick(TreeView treeview)
            {
                EmitterEditor editor = (EmitterEditor)LibraryGUI.Instance.GetActiveContent(typeof(EmitterEditor));

                if (editor == null)
                {
                    editor = new EmitterEditor();
                    LibraryGUI.Instance.LoadEditor(editor);
                }
                editor.Text = Text;
                editor.Dock = DockStyle.Fill;
                editor.LoadEmitter(this);
            }
Пример #2
0
 public override void OnClick(TreeView treeview)
 {
     if (BinaryData is Emitter || Signature == "EMTR")
     {
         EmitterEditor editor = (EmitterEditor)LibraryGUI.Instance.GetActiveContent(typeof(EmitterEditor));
         if (editor == null)
         {
             editor = new EmitterEditor();
             LibraryGUI.Instance.LoadEditor(editor);
         }
         editor.Text = Text;
         editor.Dock = DockStyle.Fill;
         editor.LoadEmitter((Emitter)BinaryData);
     }
 }