Example #1
0
 private void BtnCalcTotal_Click(object sender, RoutedEventArgs e)
 {
     vm.CalculateTotalCharge();
     //open DetailWindow
     if (dw == null)
     {
         dw = new DetailWindow(vm)
         {
             Owner = this,
             WindowStartupLocation = WindowStartupLocation.CenterOwner
         };
         dw.Closed += DW_Closed;
         dw.Show();
     }
 }
Example #2
0
 private void DW_Closed(object sender, System.EventArgs e) => dw = null;