Ejemplo n.º 1
0
        public AboutViewModel(IApplicationVersion applicationVersion,
                              IDatabaseProvider databaseProvider,
                              IDbcStore dbcStore,
                              IConfigureService settings,
                              ICurrentCoreVersion coreVersion,
                              IRemoteConnectorService remoteConnectorService)
        {
            this.applicationVersion     = applicationVersion;
            this.databaseProvider       = databaseProvider;
            this.dbcStore               = dbcStore;
            this.remoteConnectorService = remoteConnectorService;

            ConfigurationChecks.Add(new ConfigurationCheckup(coreVersion.Current is not UnspecifiedCoreVersion,
                                                             "Core version compatibility mode",
                                                             "WoW Database Editor supports multiple world of warcraft server cores. In order to achieve maximum compatibility, choose version that matches best.\nYou are using: " + coreVersion.Current.FriendlyName + " compatibility mode now."));

            ConfigurationChecks.Add(new ConfigurationCheckup(dbcStore.IsConfigured,
                                                             "DBC settings",
                                                             "DBC is DataBaseClient files provided with WoW client. Those contain a lot of useful stuff for scripting like spells data. For maximum features you have to provide DBC files path. All WoW servers require those files to work so if you have working core, you must have DBC files already."));

            ConfigurationChecks.Add(new ConfigurationCheckup(databaseProvider.IsConnected,
                                                             "Database connection",
                                                             "WoW Database Editor is database editor by design. It stores all data and loads things from wow database. Therefore to activate all features you have to provide wow compatible database connection settings."));

            ConfigurationChecks.Add(new ConfigurationCheckup(remoteConnectorService.IsConnected,
                                                             "Remote SOAP connection",
                                                             "WDE can invoke reload commands for you for faster work. To enable that, you have to enable SOAP connection in your worldserver configuration and provide details in the settings."));

            AllConfigured = ConfigurationChecks.All(s => s.Fulfilled);

            OpenSettingsCommand = new DelegateCommand(settings.ShowSettings);
        }
 public MetaColumnsSupportService(ITableEditorPickerService tableEditorPickerService,
                                  ITableDefinitionProvider definitionProvider,
                                  IRemoteConnectorService remoteConnectorService)
 {
     this.tableEditorPickerService = tableEditorPickerService;
     this.definitionProvider       = definitionProvider;
     this.remoteConnectorService   = remoteConnectorService;
 }
 public SolutionTasksService(ITaskRunner taskRunner,
                             ISolutionItemSqlGeneratorRegistry sqlGenerator,
                             ISolutionItemRemoteCommandGeneratorRegistry remoteCommandGenerator,
                             IMySqlExecutor sqlExecutor,
                             ISolutionItemNameRegistry solutionItemNameRegistry,
                             IRemoteConnectorService remoteConnectorService,
                             IDatabaseProvider databaseProvider,
                             IStatusBar statusBar)
 {
     this.taskRunner               = taskRunner;
     this.sqlGenerator             = sqlGenerator;
     this.remoteCommandGenerator   = remoteCommandGenerator;
     this.sqlExecutor              = sqlExecutor;
     this.solutionItemNameRegistry = solutionItemNameRegistry;
     this.remoteConnectorService   = remoteConnectorService;
     this.databaseProvider         = databaseProvider;
     this.statusBar = statusBar;
 }