Example #1
0
 /// <summary>
 /// Executes a call to display an application shortcut editor
 /// </summary>
 private void DoLookup()
 {
     try
     {
         var  window = new ApplicationEditorWindow();
         bool?result = window.ShowDialog();
         if (result.HasValue && result.Value)
         {
             // write the new application data to file
             // reload the application list
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Application Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Example #2
0
 /// <summary>
 /// Executes a call to display an application shortcut editor
 /// </summary>
 private void DoLookup()
 {
     try
     {
         var window = new ApplicationEditorWindow();
         bool? result = window.ShowDialog();
         if ( result.HasValue && result.Value )
         {
             // write the new application data to file
             // reload the application list
         }
     }
     catch ( Exception ex )
     {
         MessageBox.Show( ex.Message, "Application Error", MessageBoxButton.OK, MessageBoxImage.Error );
     }
 }