public static StateEditWindow GetInstance() { if (instance == null) { instance = new StateEditWindow(); } return(instance); }
private void Window_Unloaded(object sender, RoutedEventArgs e) { instance = null; }