Detail.xaml 的交互逻辑
Inheritance: System.Windows.Window
Exemplo n.º 1
0
 private void mnuAdd_Click(object sender, RoutedEventArgs e)
 {
     Window WindowDetail = new Detail();
     WindowDetail.Show();
 }
Exemplo n.º 2
0
 private void mnuModify_Click(object sender, RoutedEventArgs e)
 {
     if (listView.SelectedIndex == -1) return;
     List<IFEOItem> Items = listView.SelectedItems.Cast<IFEOItem>().ToList();
     Items.ForEach(delegate (IFEOItem Item)
     {
         Detail WindowDetail = new Detail();
         WindowDetail.Data.ID = IFEO.Items.IndexOf(Item);
         WindowDetail.Show();
     });
 }
Exemplo n.º 3
0
 private void mnuModify_Click(object sender, RoutedEventArgs e)
 {
     if (listView.SelectedIndex == -1) return;
     var Items = listView.SelectedItems.Cast<IFEOItem>();
     foreach(var Item in Items)
     {
         Detail WindowDetail = new Detail();
         WindowDetail.Data.ID = IFEO.Items.IndexOf(Item);
         WindowDetail.Show();
     }
 }