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