Esempio 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);
            }
Esempio n. 2
0
            private void ViewChannel()
            {
                PullChannelConfig chn = GetSelectedChannel();

                if (chn == null)
                {
                    return;
                }

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

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