private void double_Click_Row(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row              = sender as DataGridRow;
            int         index            = manifestationTypesTable.SelectedIndex;
            ChangeManifestTypeDialog cmd = new ChangeManifestTypeDialog(index);

            cmd.ShowDialog();
        }
        private void view_item_Click(object sender, RoutedEventArgs e)
        {
            int index = manifestationTypesTable.SelectedIndex;

            if (index != -1)
            {
                ChangeManifestTypeDialog cmd = new ChangeManifestTypeDialog(index);
                cmd.ShowDialog();
            }
        }
示例#3
0
        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();
            }
        }