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