コード例 #1
0
 private void comboBoxTab_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (client.CurrentHandlerId != (int)comboBoxTab.SelectedItem)
     {
         client.Use((int)comboBoxTab.SelectedItem);
     }
 }
コード例 #2
0
        public Main()
        {
            InitializeComponent();

            if (ts3Client.Connect() && ts3Client.IsConnected(true))
            {
                if (ts3Client.CurrentHandlerId != 1)
                {
                    ts3Client.Use(1);
                }

                pnlPoke.Enabled            = comboBoxClients.Enabled = txtBoxMessage.Enabled = txtBoxLog.Enabled = btnSendPoke.Enabled = true;
                comboBoxClients.DataSource = ts3Client.GetClientList();

                ts3Client.ClientNotifyRegister(ts3Client.CurrentHandlerId, Notifications.notifyclientpoke);
                ts3Client.Notifier.OnClientPoke += Notifier_OnClientPoke;

                Client myClient = ts3Client.GetMyClient();
                lblNicknameText.Text    = myClient.ClientNickname;
                lblChannelNameText.Text = myClient.Channel.ChannelName;

                txtBoxLog.Text = ts3Client.Log;
            }
        }