Inheritance: System.Windows.Forms.Form
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
		}
Exemplo n.º 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);
		}