private void uCFloorPlan1__OnEventFloorPlan(ControlLibrary.POSButtonTable tbl) { mTransit.Ban = tbl._Ban; btnForcus.Focus(); WindowBanHang win = new WindowBanHang(mTransit, uCFloorPlan1); win.ShowDialog(); }
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; } } }