private void btnThem_Click(object sender, RoutedEventArgs e) { UserControlLibrary.WindowThemKhuyenMai win = new UserControlLibrary.WindowThemKhuyenMai(null, mTransit, BOMenuKhuyenMai); if (win.ShowDialog() == true) { LoadDanhSach(); } }
private void btnSua_Click(object sender, RoutedEventArgs e) { if (lvData.SelectedItems.Count > 0) { UserControlLibrary.WindowThemKhuyenMai win = new UserControlLibrary.WindowThemKhuyenMai((Data.BOMenuKichThuocMon)lvData.SelectedItems[0], mTransit, BOMenuKhuyenMai); if (win.ShowDialog() == true) { LoadDanhSach(); } } }