Example #1
0
        public void RemoveCurrentSelectWindow(Window wnd)
        {
            if (CurrentSelectWindows.Contains(wnd))
            {
                CurrentSelectWindows.Remove(wnd);

                ChangeCurrentSelectWindow();
            }
        }
Example #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));
     }
 }
Example #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();
        }
Example #4
0
        public void ClearCurrentSelectWindow()
        {
            CurrentSelectWindows.Clear();

            ChangeCurrentSelectWindow();
        }