Ejemplo n.º 1
0
        public override void OnClick(TreeView treeView)
        {
            foreach (Control control in FirstPlugin.MainF.Controls)
            {
                if (control is DockPanel)
                {
                    if (FirstPlugin.DockedEditorS == null)
                    {
                        FirstPlugin.DockedEditorS = new DockContent();
                        FirstPlugin.DockedEditorS.Show((DockPanel)control, PluginRuntime.FSHPDockState);
                    }
                }
            }

            if (!EditorIsActive(FirstPlugin.DockedEditorS))
            {
                FirstPlugin.DockedEditorS.Controls.Clear();

                FTEXEditor FTEXEditor = new FTEXEditor();
                FTEXEditor.Text = Text;
                FTEXEditor.Dock = DockStyle.Fill;
                FTEXEditor.LoadPicture(DisplayTexture());
                FTEXEditor.LoadProperty(this);
                FirstPlugin.DockedEditorS.Controls.Add(FTEXEditor);
            }
        }
Ejemplo n.º 2
0
        public override void OnClick(TreeView treeView)
        {
            FTEXEditor FTEXEditor = new FTEXEditor();

            FTEXEditor.Text = Text;
            FTEXEditor.Dock = DockStyle.Fill;
            FTEXEditor.LoadPicture(DisplayTexture());
            FTEXEditor.LoadProperty(this);
            LibraryGUI.Instance.LoadDockContent(FTEXEditor, PluginRuntime.FSHPDockState);
        }