示例#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);
            }
示例#2
0
            private void ViewChannel()
            {
                PullChannelConfig chn = GetSelectedChannel();

                if (chn == null)
                {
                    return;
                }

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

                frm.ShowDialog(_formMain);
            }
示例#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);
            }