private void double_Click_Row(object sender, MouseButtonEventArgs e) { DataGridRow row = sender as DataGridRow; int index = manifestationsTable.SelectedIndex; ChangeManifestDialog cmd = new ChangeManifestDialog(index); cmd.ShowDialog(); }
private void view_item_Click(object sender, RoutedEventArgs e) { int index = manifestationsTable.SelectedIndex; if (index != -1) { ChangeManifestDialog cmd = new ChangeManifestDialog(index); cmd.ShowDialog(); } }
private void treeVdoubleClick(object sender, MouseButtonEventArgs e) { object obj = treeView.SelectedItem; if (obj is Manifestation) { int index = manifestations.IndexOf((Manifestation)obj); ChangeManifestDialog change_manifestation = new ChangeManifestDialog(index); change_manifestation.ShowDialog(); } else if (obj is ManifestationType) { int index = manifestTypes.IndexOf((ManifestationType)obj); ChangeManifestTypeDialog change_manifType = new ChangeManifestTypeDialog(index); change_manifType.ShowDialog(); } }
private void doubleManifOnPane(object sender, MouseEventArgs e) { Button button = sender as Button; int index = -1; if (button != null) { for (int i = 0; i < manifestations.Count; i++) { if (manifestations.ElementAt(i).IdManifest.Equals(button.Name)) { index = i; break; } } ChangeManifestDialog change_manifestation = new ChangeManifestDialog(index); change_manifestation.ShowDialog(); } }