public void RemoveCurrentSelectWindow(Window wnd) { if (CurrentSelectWindows.Contains(wnd)) { CurrentSelectWindows.Remove(wnd); ChangeCurrentSelectWindow(); } }
internal void InjectEditorMouseClick(MouseEventArgs e) { if (CurrentMode == UIEditorMode.Editor) { if (GUISystem.Instance.Modifiers != Keys.Control) { CurrentSelectWindows.Clear(); } AddCurrentSelectWindow(GUISystem.Instance.GetTargetWindow(this.guiRenderControl.LastMouseClickPosition)); } }
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(); }
public void ClearCurrentSelectWindow() { CurrentSelectWindows.Clear(); ChangeCurrentSelectWindow(); }