Detail.xaml 的交互逻辑
Наследование: System.Windows.Window
Пример #1
0
 private void mnuAdd_Click(object sender, RoutedEventArgs e)
 {
     Window WindowDetail = new Detail();
     WindowDetail.Show();
 }
Пример #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();
     });
 }
Пример #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();
     }
 }