public SetupWizardViewModel(WizardModel model, IUIVisualizerService uiVisualizerService, IPleaseWaitService pleaseWaitService, IMessageService messageService) : this(uiVisualizerService, pleaseWaitService, messageService) { Wizard = model; }
private void ShowWizard(bool exit = false) { var set = Settings.Default; Version ver = Assembly.GetExecutingAssembly().GetName().Version; var wm = new WizardModel { ConnectLocally = (ServerType)set.ServerType == ServerType.Local, ConnectRemotely = (ServerType)set.ServerType == ServerType.RemoteAccess, ServerFolderLocation = set.ServerFolder, Host = set.RAHost, Port = set.RAPort, Username = set.RAUsername, Password = String.Empty, MySQLHost = set.DBHost, MySQLPort = set.DBPort, MySQLUsername = set.DBUsername, MySQLPassword = String.Empty, SelectedAuthDB = set.DBAuthName, SelectedCharDB = set.DBCharName, SelectedWorldDB = set.DBWorldName, //TCMVersion = string.Format("v{0}.{1}", ver.Major, ver.Minor) }; var wizardView = new SetupWizardViewModel(wm, _uiVisualizerService, _pleaseWaitService, _messageService); var result = _uiVisualizerService.ShowDialog(wizardView); if (result.HasValue && result.Value) { } else if (exit) { Application.Current.Shutdown(); } }