public void ShowWindow(Window window, WindowType type) { if (type == WindowType.Basic) { basicwindows.Add(window); } else if (type == WindowType.Menu) { menu = window as MenuWindow; } else if (type == WindowType.Print) { showme = window as Reports.showme; } else if (type == WindowType.Navi) { navi = window as Corbusier; } CurrentWindowUpdate(); window.Show(); }
public void HideWindow(Window window, WindowType type) { if (type == WindowType.Basic) { basicwindows.Remove(window); window.Close(); } else if (type == WindowType.Menu) { menu = null; window.Hide(); } else if (type == WindowType.Print) { showme = null; window.Hide(); } else if (type == WindowType.Navi) { navi = null; window.Hide(); } CurrentWindowUpdate(); }