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

                c.ReceiverEntityID   = _entityConfig.EntityID;
                c.ReceiverEntityName = _entityConfig.Name;

                FormPushChannel frm = new FormPushChannel(c, FormPushChannel.ActionType.Add, _entityConfig.SubscribeConfig.Channels);

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

                PushChannelConfig t = frm.ChannelConfig;

                if (t == null)
                {
                    return;
                }

                _entityConfig.SubscribeConfig.Channels.Add(t);

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

                if (chn == null)
                {
                    return;
                }

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

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

                if (t == null)
                {
                    return;
                }

                FormPushChannel frm = new FormPushChannel(t, FormPushChannel.ActionType.Edit, _entityConfig.SubscribeConfig.Channels);

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

                RefreshChannelList();
                SelectChannel(t);
            }