Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public void SwapView(InstallerViewType t)
 {
     _objViewStack.Add(t);
 }