public DeployDialog GetDialogInstance(DialogType dlgType) { DeployDialog dlg = FindDialog(dlgType); if (dlg == null) { switch (dlgType) { case DialogType.Welcome: dlg = new WelcomeDlg(); break; case DialogType.DownloadOnly: dlg = new DownloadOnlyDlg(); break; case DialogType.DownloadSettings: dlg = new DownloadSettingsDlg(); break; case DialogType.Upgrade: dlg = new UpgradeDlg(); break; case DialogType.WatchTV: dlg = new WatchTVDlg(); break; case DialogType.BASE_INSTALLATION_TYPE_WITHOUT_TVENGINE: dlg = new BaseInstallationTypeWithoutTvEngineDlg(); break; case DialogType.BASE_INSTALLATION_TYPE: dlg = new BaseInstallationTypeDlg(); break; case DialogType.CUSTOM_INSTALLATION_TYPE: dlg = new CustomInstallationTypeDlg(); break; case DialogType.DBMSType: dlg = new DBMSTypeDlg(); break; case DialogType.DBMSSettings: dlg = new DBMSSettingsDlg(); break; case DialogType.MPSettings: dlg = new MPSettingsDlg(); break; case DialogType.TvServerSettings: dlg = new TvServerSettingsDlg(); break; case DialogType.Installation: dlg = new InstallDlg(); break; case DialogType.Finished: dlg = new FinishedDlg(); break; case DialogType.SkinChoice: dlg = new SkinChoice(); break; case DialogType.ExtensionChoice: dlg = new ExtensionChoice(); break; case DialogType.MysqlUpgrade: dlg = new MySQLChoice(); break; } if (dlg != null) { _dlgs.Add(dlg); } } else { dlg.UpdateUI(); } _currentDlgIndex++; return(dlg); }