/// <summary> /// Configures our application ready for use /// </summary> private async Task ApplicationSetupAsync() { // Set the default working directory Directory.SetCurrentDirectory(Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location) ?? Directory.GetCurrentDirectory()); // Setup the Dna Framework Framework.Construct<DefaultFrameworkConstruction>() .AddFileLogger() .AddClientDataStore() .AddClientServices() .AddApplicationViewModels() .Build(); await DI.SettingsManager.Initiate(); FileAssociations.EnsureAssociationsSet(); // Load settings DI.UIManager.UpdateDarkMode(DI.SettingsManager.IsDarkMode()); DI.UIManager.UpdateFontSize(DI.SettingsManager.GetFontSize()); // Ensure the client data store await ClientDataStore.EnsureDataStoreAsync(); }
/// <summary> /// Configures our application ready for use /// </summary> private async Task ApplicationSetupAsync() { // Setup the Dna Framework Framework.Construct <DefaultFrameworkConstruction>() .AddFileLogger() .AddClientDataStore() .AddFasettoWordViewModels() .AddFasettoWordClientServices() .Build(); // Ensure the client data store await ClientDataStore.EnsureDataStoreAsync(); // Load new settings TaskManager.RunAndForget(ViewModelSettings.LoadAsync); }
private async Task ApplicationSetupAsync() { // Setup the Quan Framework Framework.Construct <DefaultFrameworkConstruction>() .AddFileLogger("QuanLog.txt") .AddClientDataStore() .AddQuanWordViewModels() .AddQuanWordClientServices() .Build(); // Ensure the client data store await ClientDataStore.EnsureDataStoreAsync(); // Load new settings await SettingsVM.LoadAsync(); }
/// <summary> /// Configures our application ready for use /// </summary> private async Task ApplicationSetupAsync() { // Setup the Dna Framework Framework.Construct <DefaultFrameworkConstruction>() .AddFileLogger() .AddClientDataStore() .AddClientServices() .AddViewModels() .Build(); // Ensure the client data store await ClientDataStore.EnsureDataStoreAsync(); ViewModelApplication.GoToPage(ApplicationPage.Server); // Show the main window Current.MainWindow = new MainWindow(); Current.MainWindow.Show(); }
/// <summary> /// Configures our application ready for use /// </summary> private async Task ApplicationSetupAsync() { // Setup the Dna Framework Framework.Construct <DefaultFrameworkConstruction>() .AddFileLogger() .AddClientDataStore() .AddAppsViewModels() .AddAppsClientServices() .Build(); // Ensure the client data store await ClientDataStore.EnsureDataStoreAsync(); // Ensure the BaseList data store await BaseListItem.EnsureDataStoreAsync(); // Monitor for server connection status MonitorServerStatus(); // Load new settings TaskManager.RunAndForget(ViewModelSettings.LoadAsync); }
/// <summary> /// Configures our application ready for use /// </summary> private async Task ApplicationSetupAsync() { // Set database file name string fileName = "Dailylight.db"; // Set database path string dbPath = Path.Combine(System .Environment .GetFolderPath(System.Environment.SpecialFolder.Personal), fileName); // Setup the Dna Framework Framework.Construct <DefaultFrameworkConstruction>() .AddClientDataStore(dbPath) .Build(); // Ensure the client data store await ClientDataStore.EnsureDataStoreAsync(); // Set the first page SetContentView(Resource.Layout.user_setup); // TODO: Monitor for server connection status }
/// <summary> /// Configures our application ready for use /// </summary> private async Task ApplicationSetupAsync() { // Setup the Dna Framework Framework.Construct<DefaultFrameworkConstruction>() .AddFileLogger() .AddClientDataStore() .AddLoremIpsumViewModels() .AddLoremIpsumClientServices() .AddFluentValidators() .Build(); // Ensure the client data store await ClientDataStore.EnsureDataStoreAsync(); // Monitor for server connection status MonitorServerStatus(); //Load new settings TaskManager.RunAndForget(ViewModelSettings.LoadAsync); //Load the localization TaskManager.RunAndForget(() => ViewModelLocalization.LoadAsync(LanguageType.English)); }