public static void RemoveWindow(WindowSwitcher.Window windowToRemove) { if (WindowSwitcher.GetWindow(windowToRemove, false) != null) { RemoveWindow(WindowSwitcher.GetWindow(windowToRemove, false)); } }
void lblUseCharacter_OnClick(object sender, SdlDotNet.Input.MouseButtonEventArgs e) { bool charSelected = false; if (btnChar1.Focused) { WindowSwitcher.GetWindow(WindowSwitcher.Window.Game, true); Tcp.TcpResponder.SendUseChar(1); charSelected = true; } else if (btnChar2.Focused) { WindowSwitcher.GetWindow(WindowSwitcher.Window.Game, true); Tcp.TcpResponder.SendUseChar(2); charSelected = true; } else if (btnChar3.Focused) { WindowSwitcher.GetWindow(WindowSwitcher.Window.Game, true); Tcp.TcpResponder.SendUseChar(3); charSelected = true; } if (charSelected) { WindowManager.RemoveWindow(this); WindowManager.AddWindow(WindowSwitcher.Window.Loading); Windows.WindowSwitcher.LoadingWindow.UpdateLoadText("Logging in..."); } }
public static bool IsWindowOpen(WindowSwitcher.Window windowToCheck) { return(IsWindowOpen(WindowSwitcher.GetWindow(windowToCheck))); }
public static void AddWindow(WindowSwitcher.Window windowToAdd) { AddWindow(WindowSwitcher.GetWindow(windowToAdd, true)); }