Beispiel #1
0
        private void channelAddMenu_Click(object sender, EventArgs e)
        {
            // show dialog box
            VsChannelDialog channelDialog = new VsChannelDialog(vsCoreMonitor);

            channelDialog.ShowDialog(this);

            // update tree list
            if (channelDialog.DialogResult == DialogResult.OK)
            {
                TreeNode retNode = this.channelsNode.Nodes.Add(channelDialog.Channel.ChannelName);
                retNode.ImageIndex         = 5;
                retNode.SelectedImageIndex = 5;
                retNode.EnsureVisible();
            }
        }
Beispiel #2
0
        private void channelAddMenu_Click(object sender, EventArgs e)
        {
            // show dialog box
            VsChannelDialog channelDialog = new VsChannelDialog(vsCoreMonitor);

            channelDialog.ShowDialog(this);

            // update tree list
            if (channelDialog.DialogResult == DialogResult.OK)
            {
                TreeNode retNode = this.channelsNode.Nodes.Add(channelDialog.Channel.ChannelName);
                retNode.ImageIndex = 5;
                retNode.SelectedImageIndex = 5;
                retNode.EnsureVisible();
            }
        }