private void openKey_Click(object sender, RoutedEventArgs e)
 {
     if (this.DataContext is KeyProperty)
     {
         MainWindow main = getMainWindow();
         if (main != null)
         {
             if (indexes.Count == 1)
             {
                 ViewWindow window = new ViewWindow(main, indexes[0]);
                 window.Show();
             }
             else if (indexes.Count == 0)
             {
                 MessageBox.Show("This value is pointing to a instance in a package that is currently not loaded.", "No results");
             }
             else
             {
                 ViewMiniResult miniResult = new ViewMiniResult(main, indexes);
                 miniResult.Show();
             }
         }
     }
 }
Example #2
0
        private void mnuOpenInNewWindow_Click(object sender, RoutedEventArgs e)
        {
            ViewWindow window = new ViewWindow(this, (DatabaseIndex)dataGridInstances.SelectedItem);

            window.Show();
        }