예제 #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();
     }
 }
예제 #2
0
 private void DW2_Closed(object sender, System.EventArgs e) => dw2 = null;