/// <summary> /// Handles the event when a command line is received from another instance of ourself /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnCommandLineReceivedFromAnotherInstance(object sender, ApplicationInstanceManagerEventArgs e) { try { // flash the window WindowFlasher.FlashWindow(this.Handle); } catch(System.Exception systemException) { System.Diagnostics.Trace.WriteLine(systemException); } }
protected virtual void OnCommandLineReceivedFromAnotherInstance(object sender, ApplicationInstanceManagerEventArgs e) { try { if (this.CommandLineReceivedFromAnotherInstance != null) { this.CommandLineReceivedFromAnotherInstance(sender, e); } } catch (System.Exception systemException) { System.Diagnostics.Trace.WriteLine(systemException); } }
protected virtual void OnCommandLineReceivedFromAnotherInstance(object sender, ApplicationInstanceManagerEventArgs e) { try { if (this.CommandLineReceivedFromAnotherInstance != null) this.CommandLineReceivedFromAnotherInstance(sender, e); } catch(System.Exception systemException) { System.Diagnostics.Trace.WriteLine(systemException); } }