예제 #1
0
 private void _routTypeCtrl_Selected(RoutingTypeControler ctrl, RoutingRuleType t)
 {
     if (t == RoutingRuleType.MessageType)
     {
         this.panelMessageContent.Visible = false;
         this.panelMessageType.Visible    = true;
         this.panelMessageType.BringToFront();
     }
     else if (t == RoutingRuleType.ContentBased)
     {
         this.panelMessageType.Visible    = false;
         this.panelMessageContent.Visible = true;
         this.panelMessageContent.BringToFront();
     }
 }
예제 #2
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();
        }