private void LoadButton_OnClick(object sender, RoutedEventArgs e)
 {
     if (saveDialog != null)
     {
         saveDialog.Close();
     }
     if (removeDialog == null)
     {
         removeDialog = new RemoveModuleStateView();
     }
     else
     {
         removeDialog.Close();
         removeDialog = new RemoveModuleStateView();
     }
     removeDialog.Show();
 }
 private void LoadButton_OnClick(object sender, RoutedEventArgs e)
 {
     if (saveDialog != null)
     {
         saveDialog.Close();
     }
     if (removeDialog == null)
     {
         removeDialog = new RemoveModuleStateView();
     }
     else
     {
         removeDialog.Close();
         removeDialog = new RemoveModuleStateView();
     }
     removeDialog.Show();
 }