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