コード例 #1
0
        public void RemoveCurrentSelectWindow(Window wnd)
        {
            if (CurrentSelectWindows.Contains(wnd))
            {
                CurrentSelectWindows.Remove(wnd);

                ChangeCurrentSelectWindow();
            }
        }
コード例 #2
0
 internal void InjectEditorMouseClick(MouseEventArgs e)
 {
     if (CurrentMode == UIEditorMode.Editor)
     {
         if (GUISystem.Instance.Modifiers != Keys.Control)
         {
             CurrentSelectWindows.Clear();
         }
         AddCurrentSelectWindow(GUISystem.Instance.GetTargetWindow(this.guiRenderControl.LastMouseClickPosition));
     }
 }
コード例 #3
0
        public void AddCurrentSelectWindow(Window wnd)
        {
            if (wnd == null)
            {
                return;
            }

            bool remove = false;

            foreach (var item in CurrentSelectWindows)
            {
                if (item.Name.Equals(wnd.Name))
                {
                    CurrentSelectWindows.Remove(item);
                    remove = true;
                    break;
                }
            }
            if (!remove)
            {
                CurrentSelectWindows.Add(wnd);
            }
            ChangeCurrentSelectWindow();
        }
コード例 #4
0
        public void ClearCurrentSelectWindow()
        {
            CurrentSelectWindows.Clear();

            ChangeCurrentSelectWindow();
        }