private void ucMenus1_OnPrevButtonClickEvent() { UCBase uc = this.panel_main.Controls[0] as UCBase; if (uc == null) { return; } switch (uc.UCType) { case UCType.Prerequisites: this.SetIntro(); break; case UCType.Bthmp: this.SetPrerequisites(); break; case UCType.FaxDriver: this.SetBthmp(); break; case UCType.Package: this.SetFaxDriver(); break; case UCType.Finish: this.SetPackage(); break; default: return; } }
protected void AddUserControl(UCBase p_userControl) { this.ClearUserControl(); p_userControl.Dock = DockStyle.Fill; this.panel_main.Controls.Add(p_userControl); }