private void RefreshButton() { this.buttonOK.Enabled = (this.comboBoxResponser.SelectedItem as ResponserWrapper != null) && (this.comboBoxProtocolType.SelectedItem != null) && (this.comboBoxRoutingType.SelectedItem != null); ProtocolType t = _protocolTypeCtrl.GetValue(); this.buttonAdvance.Visible = (_actionType == ActionType.View && t != ProtocolType.LPC) || ((this.comboBoxResponser.SelectedItem as ResponserWrapper != null) && (t == ProtocolType.RPC_NamedPipe || t == ProtocolType.RPC_SOAP || t == ProtocolType.RPC_TCP)); }
private void RefreshButton() { this.buttonOK.Enabled = (this.comboBoxPublisher.SelectedItem as PublisherWrapper != null) && (this.comboBoxProtocolType.SelectedItem != null) && (this.comboBoxRoutingType.SelectedItem != null); ProtocolType t = _protocolTypeCtrl.GetValue(); this.buttonAdvance.Visible = (_actionType == ActionType.View && t != ProtocolType.LPC) || ((this.comboBoxPublisher.SelectedItem as PublisherWrapper != null) && (t == ProtocolType.MSMQ)); }