Beispiel #1
0
 private void btnBanHang_Click(object sender, RoutedEventArgs e)
 {
     if (mTransit.CaiDatBanHang.KhoaSoDoBan)
     {
         WindowBanHang win = new WindowBanHang(mTransit, null);
         win.ShowDialog();
     }
     else
     {
         WindowSoDoBan win = new WindowSoDoBan(mTransit);
         if (win.ShowDialog() == true)
         {
             this.DialogResult = false;
         }
     }
 }
 private void btnBanHang_Click(object sender, RoutedEventArgs e)
 {
     if (mTransit.CaiDatBanHang.KhoaSoDoBan)
     {
         WindowBanHang win = new WindowBanHang(mTransit, null);
         win.ShowDialog();    
     }
     else
     {
         WindowSoDoBan win = new WindowSoDoBan(mTransit);
         if (win.ShowDialog() == true)
         {
             this.DialogResult = false;                    
         }
     }            
     
 }