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