예제 #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";
         }
     }
 }
예제 #2
0
        public bool JoinChannel()
        {
            String strChannelPassword = "";
            String strTopic           = "";
            String strOpPassword      = "";
            bool   joinsuccess        = m_voipclient.DoJoinChannel(m_voipclient.GetChannelPath(_iChannelID), strChannelPassword, strTopic, strOpPassword);

            Console.Write("channel join" + joinsuccess.ToString());
            m_joined = true;
            return(joinsuccess);
        }