Detail.xaml 的交互逻辑
Inheritance: 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
ファイル: MainWindow.xaml.cs プロジェクト: zsxsoft/IFEOManage
 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();
     }
 }