예제 #1
0
        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);
        }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 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);
 }