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); }
private void ViewChannel() { PullChannelConfig chn = GetSelectedChannel(); if (chn == null) { return; } FormPullChannel frm = new FormPullChannel(chn, FormPullChannel.ActionType.View); frm.ShowDialog(_formMain); }
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); }