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