Пример #1
0
        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);
        }
Пример #2
0
        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;
        }
Пример #3
0
 public virtual bool Contains(WorkspaceWindow Content)
 {
     return(this.List.Contains(Content));
 }