Esempio n. 1
0
 public bool SignalExternalCommandLineArgs(IList <string> args)
 {
     // handle command line arguments of second instance
     MainWindowViewModel.ProcessActivationRequest();
     Application.Current.Dispatcher.Invoke(() =>
     {
         WindowHelper.ActivateMainWindow();
     });
     return(true);
 }
Esempio n. 2
0
 public bool SignalExternalCommandLineArgs(IList <string> args)
 {
     // handle command line arguments of second instance
     try
     {
         Current.Dispatcher.Invoke(() =>
         {
             WindowHelper.ActivateMainWindow();
         });
     }
     catch
     {
         //Fail silently
     }
     return(true);
 }