public static void CreateInitialAppSettings() { IAppSettingsService svc = ServiceContainer.Instance.GetService <IAppSettingsService>(); ApplicationSettings settings = svc.LoadSettings(); // Don't initialize the profile if it already exists. if (settings.RegistryVersion == 0.0) { settings.MainWindowLocation = new System.Windows.Point(100.0, 100.0); settings.ActivityWindowLocation = new System.Windows.Point(100.0, 100.0); settings.ActivityWindowSize = new System.Windows.Point(480.0, 540.0); settings.RegistryVersion = Globals.RegistryVersion; svc.SaveSettings(settings); } }