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