private void btnThem_Click(object sender, RoutedEventArgs e) { UserControlLibrary.WindowThemLichBieuDinhKy win = new UserControlLibrary.WindowThemLichBieuDinhKy(mTransit, BOLichBieuDinhKy); if (win.ShowDialog() == true) { lsArray.Add(win._Item); lvData.Items.Refresh(); } }
private void btnThem_Click(object sender, RoutedEventArgs e) { UserControlLibrary.WindowThemLichBieuDinhKy win = new UserControlLibrary.WindowThemLichBieuDinhKy(mTransit, BOLichBieuDinhKy); if (win.ShowDialog() == true) { lsArray.Add(win._Item); lvData.Items.Refresh(); } }
private void btnSua_Click(object sender, RoutedEventArgs e) { if (lvData.SelectedItems.Count > 0) { UserControlLibrary.WindowThemLichBieuDinhKy win = new UserControlLibrary.WindowThemLichBieuDinhKy(mTransit, BOLichBieuDinhKy); win._Item = (Data.BOLichBieuDinhKy)lvData.SelectedItems[0]; if (win.ShowDialog() == true) { lvData.Items.Refresh(); } } }
private void btnSua_Click(object sender, RoutedEventArgs e) { if (lvData.SelectedItems.Count > 0) { UserControlLibrary.WindowThemLichBieuDinhKy win = new UserControlLibrary.WindowThemLichBieuDinhKy(mTransit, BOLichBieuDinhKy); win._Item = (Data.BOLichBieuDinhKy)lvData.SelectedItems[0]; if (win.ShowDialog() == true) { lvData.Items.Refresh(); } } }