protected void OnShowNextControl(CreateCertificateControl nextControl) { if (ShowNextControl != null) { ShowNextControl(nextControl); } }
private void Control_ShowNextControl(CreateCertificateControl nextControl) { SetControl(nextControl, null); }
private void SetControl(CreateCertificateControl control, CreateDialogStatus status) { Controls.Clear(); this.control = control; if (status != null) { this.control.Status = status; } this.control.Dock = DockStyle.Fill; this.control.ShowNextControl += new ShowNextControlHandler(Control_ShowNextControl); this.control.CloseCreateDialog += new CloseCreateDialogHandler(Control_CloseCreateDialog); this.control.Prepare(); this.Controls.Add(this.control); }