private void mnuAdd_Click(object sender, RoutedEventArgs e) { Window WindowDetail = new Detail(); WindowDetail.Show(); }
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(); }); }
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(); } }