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(); }
private void updateChannelToolStripMenuItem_Click(object sender, EventArgs e) { int channelid = channels.GetSelectedChannel(); ChannelDlg dlg = new ChannelDlg(ttclient, ChannelDlgType.UPDATE_CHANNEL, channelid, 0); dlg.ShowDialog(); }
private void viewChannelInformationToolStripMenuItem_Click(object sender, EventArgs e) { int channelid = channels.GetSelectedChannel(); ChannelDlg dlg = new ChannelDlg(ttclient, ChannelDlgType.VIEW_CHANNEL, channelid, 0); dlg.ShowDialog(); }