private void SetViewProperties(WizardView previousView) { this.WelcomeImage = previousView.WelcomeImage; this.HideWelcomeImage = previousView.HideWelcomeImage; this.CompletionImage = previousView.CompletionImage; this.HideCompletionImage = previousView.HideCompletionImage; }
private void UpdateView(WizardMode mode) { RadWizard control = null; if (this.ElementTree != null) { control = this.ElementTree.Control as RadWizard; } if (this.view != null) { if (control != null) { control.UnWireEvents(); } this.Children.Remove(view); } WizardView previousView = this.view; switch (this.mode) { case WizardMode.Wizard97: this.view = new Wizard97View(this); if (control != null) { control.UnapplyAeroStyle(); } break; case WizardMode.Aero: this.view = new WizardAeroView(this); break; default: break; } if (this.view != null) { this.Children.Add(view); this.UpdateView(this.selectedPage); if (control != null) { control.WireEvents(); } } if (previousView != null) { this.SetViewProperties(previousView); } }
private void UpdateView(WizardMode mode) { RadWizard radWizard = (RadWizard)null; if (this.ElementTree != null) { radWizard = this.ElementTree.Control as RadWizard; } if (this.view != null) { radWizard?.UnWireEvents(); this.Children.Remove((RadElement)this.view); } WizardView view = this.view; switch (this.mode) { case WizardMode.Wizard97: this.view = (WizardView) new Wizard97View(this); if (radWizard != null) { radWizard.UnapplyAeroStyle(); break; } break; case WizardMode.Aero: this.view = (WizardView) new WizardAeroView(this); break; } if (this.view != null) { this.Children.Add((RadElement)this.view); this.UpdateView(this.selectedPage); radWizard?.WireEvents(); } if (view == null) { return; } this.SetViewProperties(view); }