private void btnThem_Click(object sender, RoutedEventArgs e) { UserControlLibrary.WindowThemKho win = new UserControlLibrary.WindowThemKho(mTransit); if (win.ShowDialog() == true) { lsArray.Add(win._Item); lvData.Items.Refresh(); } }
private void btnThem_Click(object sender, RoutedEventArgs e) { UserControlLibrary.WindowThemKho win = new UserControlLibrary.WindowThemKho(mTransit); 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.WindowThemKho win = new UserControlLibrary.WindowThemKho(mTransit); win._Item = (Data.KHO)lvData.SelectedItems[0]; if (win.ShowDialog() == true) { lvData.Items.Refresh(); } } }
private void btnSua_Click(object sender, RoutedEventArgs e) { if (lvData.SelectedItems.Count > 0) { UserControlLibrary.WindowThemKho win = new UserControlLibrary.WindowThemKho(mTransit); win._Item = (Data.KHO)lvData.SelectedItems[0]; if (win.ShowDialog() == true) { lvData.Items.Refresh(); } } }