Наследование: NekoKun.UI.LynnDockContent
Пример #1
0
        public void SetContent(AbstractEditor editor)
        {
            if (editor != null && editor is IToolboxProvider)
            {
                System.Windows.Forms.Control con = (editor as IToolboxProvider).ToolboxControl;
                if (con != control)
                {
                    if (control != null)
                        this.Controls.Remove(control);

                    control = con;
                    control.Dock = System.Windows.Forms.DockStyle.Fill;
                    this.Controls.Add(control);
                    this.SetFont(control);
                }
                if (control != null)
                {
                    control.Tag = editor;
                }
            }
            else if (control != null)
            {
                this.Controls.Remove(control);
                control = null;
            }
        }
Пример #2
0
        public void SetContent(AbstractEditor editor)
        {
            if (editor != null && editor is IToolboxProvider)
            {
                System.Windows.Forms.Control con = (editor as IToolboxProvider).ToolboxControl;
                if (con != control)
                {
                    if (control != null)
                    {
                        this.Controls.Remove(control);
                    }

                    control      = con;
                    control.Dock = System.Windows.Forms.DockStyle.Fill;
                    this.Controls.Add(control);
                    this.SetFont(control);
                }
                if (control != null)
                {
                    control.Tag = editor;
                }
            }
            else if (control != null)
            {
                this.Controls.Remove(control);
                control = null;
            }
        }
Пример #3
0
        public void ShowEditor()
        {
            if (this.editor == null)
            {
                this.editor = CreateEditor();
            }

            if (this.editor.IsDisposed)
            {
                this.editor = CreateEditor();
            }

            if (this.editor.Visible == true)
            {
                this.editor.Activate();
                return;
            }

            this.editor.Show(Workbench.Instance.DockPanel);
        }
Пример #4
0
        public void ShowEditor()
        {
            if (this.editor == null)
                this.editor = CreateEditor();

            if (this.editor.IsDisposed)
                this.editor = CreateEditor();

            if (this.editor.Visible == true)
            {
                this.editor.Activate();
                return;
            }

            this.editor.Show(Workbench.Instance.DockPanel);
        }