Example #1
0
        public FormPullChannel(PullChannelConfig cfg, ActionType actionType, XCollection <PullChannelConfig> cfgList)
        {
            InitializeComponent();

            _cfgList       = cfgList;
            _channelConfig = cfg;
            _actionType    = actionType;

            if (_channelConfig == null)
            {
                _channelConfig = new PullChannelConfig();
            }

            _routTypeCtrl           = new RoutingTypeControler(this.comboBoxRoutingType);
            _routTypeCtrl.Selected += new RoutingTypeSelectedHanlder(_routTypeCtrl_Selected);
            _routTypeCtrl.Initialize();

            _protocolTypeCtrl = new ProtocolTypeControler(this.comboBoxProtocolType);
            _protocolTypeCtrl.Initialize();
        }