public void UpdateEditor() { NuTexEditor docked = (NuTexEditor)LibraryGUI.Instance.GetContentDocked(new NuTexEditor()); if (docked == null) { docked = new NuTexEditor(); LibraryGUI.Instance.LoadDockContent(docked, PluginRuntime.FSHPDockState); } docked.Text = Text; docked.Dock = DockStyle.Fill; }
public void UpdateEditor() { if (Viewport.Instance.gL_ControlModern1.Visible == false) { PluginRuntime.FSHPDockState = WeifenLuo.WinFormsUI.Docking.DockState.Document; } NuTexEditor docked = (NuTexEditor)LibraryGUI.Instance.GetContentDocked(new NuTexEditor()); if (docked == null) { docked = new NuTexEditor(); LibraryGUI.Instance.LoadDockContent(docked, PluginRuntime.FSHPDockState); } docked.Text = Text; docked.Dock = DockStyle.Fill; docked.LoadProperty(this); }