void controller_FailedToStart(object sender, PortConflictEventArgs e) { string caption = Properties.Resources.FailedToStart_Caption; string text = String.Format(Properties.Resources.FailedToStart_Message_GNTP, e.Port); MessageBox.Show(text, caption, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0, false); }
protected void OnFailedToStartUDPLegacy(object sender, PortConflictEventArgs args) { if (this.synchronizingObject != null && this.synchronizingObject.InvokeRequired) { MethodInvoker invoker = new MethodInvoker(delegate() { OnFailedToStartUDPLegacy(sender, args); }); this.synchronizingObject.Invoke(invoker, null); } else { if (this.FailedToStartUDPLegacy != null) { this.FailedToStartUDPLegacy(sender, args); } } }
void controller_FailedToStartUDPLegacy(object sender, PortConflictEventArgs e) { string caption = Properties.Resources.FailedToStart_Caption; string text = String.Format(Properties.Resources.FailedToStart_Message_UDP, e.Port); MessageBox.Show(text, caption, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0, false); }