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