public static void DeregisterWindow(Control Window) { if (!g.WorkspaceWindows.Contains(Window)) { return; } // Force-remove from the docking manager WorkspaceWindow ww = g.WorkspaceWindows.FindWorkspaceWindow(Window); g.Main.dockMgr.Contents.Remove(ww.Content); g.WorkspaceWindows.Remove(ww); }
public static void UpdateWindow(Control Window, string WindowSetTextTo, int WindowSetIconTo) { if (!g.WorkspaceWindows.Contains(Window)) { return; } WorkspaceWindow ww = g.WorkspaceWindows.FindWorkspaceWindow(Window); ww.Content.ImageIndex = WindowSetIconTo; ww.Content.Title = WindowSetTextTo; ww.CaptionText = WindowSetTextTo; }
public virtual bool Contains(WorkspaceWindow Content) { return(this.List.Contains(Content)); }