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; } }
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; } }
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); }
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); }