private void DisplayView(InstallerViewType view) { BaseView ctl = null; if (view == InstallerViewType.Options) { ctl = new OptionsControl(this); } if (view == InstallerViewType.Progress) { ctl = new ProgressControl(this); } if (view == InstallerViewType.Complete) { ctl = new CompletionControl(this); } if (view == InstallerViewType.UninstallOptions) { ctl = new UninstallOptionsControl(this); } if (view == InstallerViewType.ShowError) { ctl = new ErrorControl(this); } ctl.Dock = DockStyle.Fill; this.Controls.Add(ctl); _objCurrentView = ctl; }
public void SwapView(InstallerViewType t) { _objViewStack.Add(t); }