Exemple #1
0
            private void LoadBFWAVEditor()
            {
                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();

                    BFAVEditor      = new BFAVEditor();
                    BFAVEditor.Text = Text;
                    BFAVEditor.Dock = DockStyle.Fill;
                    BFAVEditor.LoadFile(this);
                    FirstPlugin.DockedEditorS.Controls.Add(BFAVEditor);
                }
            }
Exemple #2
0
            private void LoadBFWAVEditor()
            {
                BFAVEditor BFAVEditor = new BFAVEditor();

                BFAVEditor.Text = Text;
                BFAVEditor.Dock = DockStyle.Fill;
                BFAVEditor.LoadFile(this);
                LibraryGUI.Instance.LoadDockContent(BFAVEditor, PluginRuntime.FSHPDockState);
            }
Exemple #3
0
            public void UpdateEditor()
            {
                if (Viewport.Instance.gL_ControlModern1.Visible == false)
                {
                    PluginRuntime.FSHPDockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
                }

                BFAVEditor docked = (BFAVEditor)LibraryGUI.Instance.GetContentDocked(new BFAVEditor());

                if (docked == null)
                {
                    docked = new BFAVEditor();
                    LibraryGUI.Instance.LoadDockContent(docked, PluginRuntime.FSHPDockState);
                }
                docked.Text = Text;
                docked.Dock = DockStyle.Fill;
                docked.LoadFile(this);
            }