Beispiel #1
0
 private void BtnAddNew_Click(object sender, RoutedEventArgs e)
 {
     if (dw2 == null)
     {
         dw2 = new DW2(vm)
         {
             Owner = this,
             WindowStartupLocation = WindowStartupLocation.CenterOwner
         };
         dw2.Closed += DW2_Closed;
         dw2.Show();
     }
 }
Beispiel #2
0
 private void DW2_Closed(object sender, System.EventArgs e) => dw2 = null;