예제 #1
0
 private void btnThem_Click(object sender, RoutedEventArgs e)
 {
     UserControlLibrary.WindowThemLoaiGia win = new UserControlLibrary.WindowThemLoaiGia(mTransit);
     if (win.ShowDialog() == true)
     {
         lsArray.Add(win._Item);
         lvData.Items.Refresh();
     }
 }
예제 #2
0
 private void btnThem_Click(object sender, RoutedEventArgs e)
 {
     UserControlLibrary.WindowThemLoaiGia win = new UserControlLibrary.WindowThemLoaiGia(mTransit);
     if (win.ShowDialog() == true)
     {
         lsArray.Add(win._Item);
         lvData.Items.Refresh();
     }
 }
예제 #3
0
 private void btnSua_Click(object sender, RoutedEventArgs e)
 {
     if (lvData.SelectedItems.Count > 0)
     {
         UserControlLibrary.WindowThemLoaiGia win = new UserControlLibrary.WindowThemLoaiGia(mTransit);
         win._Item = (Data.MENULOAIGIA)lvData.SelectedItems[0];
         if (win.ShowDialog() == true)
         {
             lvData.Items.Refresh();
         }
     }
 }
예제 #4
0
 private void btnSua_Click(object sender, RoutedEventArgs e)
 {
     if (lvData.SelectedItems.Count > 0)
     {
         UserControlLibrary.WindowThemLoaiGia win = new UserControlLibrary.WindowThemLoaiGia(mTransit);
         win._Item = (Data.MENULOAIGIA)lvData.SelectedItems[0];
         if (win.ShowDialog() == true)
         {
             lvData.Items.Refresh();
         }
     }
 }