Beispiel #1
0
 private void buttonSignIn_Click(object sender, EventArgs e)
 {
     // "Sign in/Cancel" button was pressed
     // Sign into network if control is offline,
     // cancel if control is signing in.
     if (ptt != null)
     {
         ZelloPTTLib.NETWORK_STATUS Status = ptt.NetworkStatus;
         if (ZelloPTTLib.NETWORK_STATUS.NSSIGNINGIN == Status)
         {
             ptt.Cancel();
         }
         else
         {
             signInToolStripMenuItem_Click(sender, e);
         }
     }
 }