Exemplo n.º 1
0
        public void OnCheckRouterChannelFinishListener(bool isOurRouter)
        {
            this.closeButton.Visible = true;
            ControlDialogRouterControl routerControl = new ControlDialogRouterControl();

            routerControl.OnRetryClick = new ControlDialogRouterControl.RetryButtonClickDelegate(this.SwitchClick);
            this.dialogGroup.Controls.Clear();
            this.dialogGroup.Controls.Add(routerControl);
        }
Exemplo n.º 2
0
        private void ControlDialog_Load(object sender, EventArgs e)
        {
            if (!this.hasRouter)
            {
                ControlDialogRouterControl routerControl = new ControlDialogRouterControl();
                routerControl.OnRetryClick = new ControlDialogRouterControl.RetryButtonClickDelegate(this.retry);
                this.dialogGroup.Controls.Clear();
                this.dialogGroup.Controls.Add(routerControl);
                return;
            }
            if (this.cableProblem)
            {
                this.ShowCableControl();
                return;
            }
            ControlDialogControl controlControl       = new ControlDialogControl();
            ControlDialogControl controlDialogControl = controlControl;

            controlDialogControl.OnOffButtonClick = (ControlDialogControl.OffButtonDelegate)Delegate.Combine(controlDialogControl.OnOffButtonClick, new ControlDialogControl.OffButtonDelegate(this.OffButtonClick));
            controlDialogControl = controlControl;
            controlDialogControl.OnFlashingButtonClick = (ControlDialogControl.FlashingButtonDelegate)Delegate.Combine(controlDialogControl.OnFlashingButtonClick, new ControlDialogControl.FlashingButtonDelegate(this.FlashingButtonClick));
            this.dialogGroup.Controls.Clear();
            this.dialogGroup.Controls.Add(controlControl);
        }