示例#1
0
        private void createChannelToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int channelid = channels.GetSelectedChannel();
            if (channelid == 0)
                channelid = ttclient.GetRootChannelID(); //make the root parent if nothing is selected

            ChannelDlg dlg = new ChannelDlg(ttclient, ChannelDlgType.CREATE_CHANNEL, 0, channelid);
            dlg.ShowDialog();
        }
示例#2
0
 private void updateChannelToolStripMenuItem_Click(object sender, EventArgs e)
 {
     int channelid = channels.GetSelectedChannel();
     ChannelDlg dlg = new ChannelDlg(ttclient, ChannelDlgType.UPDATE_CHANNEL, channelid, 0);
     dlg.ShowDialog();
 }
示例#3
0
 private void viewChannelInformationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     int channelid = channels.GetSelectedChannel();
     ChannelDlg dlg = new ChannelDlg(ttclient, ChannelDlgType.VIEW_CHANNEL, channelid, 0);
     dlg.ShowDialog();
 }