Ejemplo n.º 1
0
            private void AddChannel()
            {
                PullChannelConfig c = new PullChannelConfig();

                c.SenderEntityID   = _entityConfig.EntityID;
                c.SenderEntityName = _entityConfig.Name;

                FormPullChannel frm = new FormPullChannel(c, FormPullChannel.ActionType.Add, _entityConfig.RequestConfig.Channels);

                if (frm.ShowDialog(_formMain) != DialogResult.OK)
                {
                    return;
                }

                PullChannelConfig t = frm.ChannelConfig;

                if (t == null)
                {
                    return;
                }

                _entityConfig.RequestConfig.Channels.Add(t);

                RefreshChannelList();
                SelectChannel(t);
            }
Ejemplo n.º 2
0
            private void ViewChannel()
            {
                PullChannelConfig chn = GetSelectedChannel();

                if (chn == null)
                {
                    return;
                }

                FormPullChannel frm = new FormPullChannel(chn, FormPullChannel.ActionType.View);

                frm.ShowDialog(_formMain);
            }
Ejemplo n.º 3
0
            private void EditChannel()
            {
                PullChannelConfig t = GetSelectedChannel();

                if (t == null)
                {
                    return;
                }

                FormPullChannel frm = new FormPullChannel(t, FormPullChannel.ActionType.Edit, _entityConfig.RequestConfig.Channels);

                if (frm.ShowDialog(_formMain) != DialogResult.OK)
                {
                    return;
                }

                RefreshChannelList();
                SelectChannel(t);
            }