private void ContextEditChannelClick(object sender, EventArgs e) { ChannelForm editChannel = new ChannelForm(this.SelectedNode.Tag as IChannelInfo); if (editChannel.ShowDialog() == DialogResult.OK) { Client.Channels.Update(editChannel.Channel); } }
private void ContextAddChannelClick(object sender, EventArgs e) { ChannelForm addChannel = new ChannelForm(); if (addChannel.ShowDialog() != DialogResult.OK) { return; } if (this.SelectedNode != null) { var parent = (this.SelectedNode.Tag as ChannelInfo); if (parent != null) { addChannel.Channel.ParentChannelId = parent.ChannelId; } } this.Client.Channels.Create(addChannel.Channel); }
private void ContextAddChannelClick (object sender, EventArgs e) { ChannelForm addChannel = new ChannelForm (); if (addChannel.ShowDialog() != DialogResult.OK) return; if (this.SelectedNode != null) { var parent = (this.SelectedNode.Tag as ChannelInfo); if (parent != null) addChannel.Channel.ParentChannelId = parent.ChannelId; } this.Client.Channels.Create (addChannel.Channel); }
private void ContextEditChannelClick (object sender, EventArgs e) { ChannelForm editChannel = new ChannelForm (this.SelectedNode.Tag as IChannelInfo); if (editChannel.ShowDialog() == DialogResult.OK) Client.Channels.Update (editChannel.Channel); }