Inheritance: System.Windows.Forms.Form
Example #1
0
        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);
            }
        }
Example #2
0
        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);
        }
Example #3
0
		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);
		}
Example #4
0
		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);
		}