Example #1
0
 private void joinButton_Click(object sender, EventArgs e)
 {
     if (voipclient.GetMyChannelID() <= 0)
     {
         if (voipclient.DoJoinChannel(joinchannelTextBox.Text, "", "", ""))
         {
             this.textBoxLog.Text += "Joined channel " + joinchannelTextBox.Text + "\n";
         }
         else
         {
             this.textBoxLog.Text += "Failed to join channel " + joinchannelTextBox.Text + "\n";
         }
     }
     else
     {
         if (voipclient.DoLeaveChannel())
         {
             this.textBoxLog.Text += "Left channel " + joinchannelTextBox.Text + "\n";
         }
         else
         {
             this.textBoxLog.Text += "Failed to leave channel " + joinchannelTextBox.Text + "\n";
         }
     }
 }
Example #2
0
 public void LeaveChannel()
 {
     m_voipclient.DoLeaveChannel();
     m_joined = false;
 }