public UserService(IConfiguration configuration) { _configuration = configuration; //Initialize use options once as they are from Config //Not expected to change for the lifetime of the object _userOptions = GetUserOptions(); }
public static async Task <bool> Logging() { var user = UserOptions.GetUser(); if (string.IsNullOrEmpty(user)) { return(false); } var model = new LoginModel { email = user, password = UserOptions.GetPassword(), }; UIFunc.ShowLoading(U.StandartLoggingText); var result = await WebServiceFunc.SubmitLogin(model); UIFunc.HideLoading(); if (!result.Item1) { return(false); } var aspxauth = result.Item4; UserOptions.SetAspxauth(aspxauth); return(true); }
public object SetOptions(object _uo) { UserOptions uo = (UserOptions)_uo; this.Division = uo.Division; return(this.Clone()); }
public void Action(OptionsContentAction action) { switch (action) { case OptionsContentAction.Show: if (!alreadyShown) { languageSelect.SelectedItem = PascalABCCompiler.StringResourcesLanguage.CurrentLanguageName; cbSaveFilesIfComilationOk.Checked = MainForm.UserOptions.SaveSourceFilesIfComilationOk; cbPauseInRunModeIfConsole.Checked = MainForm.UserOptions.PauseInRunModeIfConsole; cbAutoInsertCodeIsEnabledOnStartup.Checked = MainForm.UserOptions.AutoInsertCodeIsEnabledOnStartup; addErrorStrategyComboBox(); cbShowDebugPlayPauseButtons.Checked = MainForm.PlayPauseButtonsVisibleInPanel; alreadyShown = true; } break; case OptionsContentAction.Ok: UserOptions UsOpt = MainForm.UserOptions; UsOpt.SaveSourceFilesIfComilationOk = cbSaveFilesIfComilationOk.Checked; UsOpt.AutoInsertCodeIsEnabledOnStartup = cbAutoInsertCodeIsEnabledOnStartup.Checked; MainForm.ErrorsManager.Strategy = (ErrorsStrategy)cbErrorsStrategy.Items.IndexOf(cbErrorsStrategy.SelectedItem); switch (cbErrorsStrategy.Items.IndexOf(cbErrorsStrategy.SelectedItem)) { case 0: MainForm.ErrorsManager.Strategy = ErrorsStrategy.FirstOnly; break; case 1: MainForm.ErrorsManager.Strategy = ErrorsStrategy.FirstSemanticAndSyntax; break; } /*switch (cbErrorsStrategy.Items.IndexOf(cbErrorsStrategy.SelectedItem)) * { * case 0: * MainForm.ErrorsManager.Strategy = ErrorsStrategy.All; * break; * case 1: * MainForm.ErrorsManager.Strategy = ErrorsStrategy.FirstOnly; * break; * case 2: * MainForm.ErrorsManager.Strategy = ErrorsStrategy.FirstSemanticAndSyntax; * break; * } */ UsOpt.PauseInRunModeIfConsole = cbPauseInRunModeIfConsole.Checked; MainForm.UpdateUserOptions(); MainForm.PlayPauseButtonsVisibleInPanel = cbShowDebugPlayPauseButtons.Checked; alreadyShown = false; WorkbenchServiceFactory.OptionsService.SaveOptions(); //this.Enabled = true; break; case OptionsContentAction.Cancel: alreadyShown = false; break; } }
public IdentityOptions() { ClaimsIdentity = new ClaimsIdentityOptions(); User = new UserOptions(); Password = new PasswordOptions(); Lockout = new LockoutOptions(); }
public object Clone() { UserOptions uo = new UserOptions(); uo.Division = this.Division; return(uo); }
private UserOptions ApplyDefaultValue(UserOptions options) { var baseUriOptions = _baseUriOptions.Value; options.PinyinFeature ??= new PinyinFeature { Enabled = false, BaseUrl = baseUriOptions.PinyinApi }; options.CloudBkFeature ??= new CloudBkFeature { Enabled = false, BaseUrl = baseUriOptions.CloudBkApi }; options.HotTagsFeature ??= new HotTagsFeature { Enabled = true, ListCount = 10 }; options.ApplicationInsightFeature ??= new ApplicationInsightFeature { Enabled = false }; options.OmniboxSuggestFeature ??= new OmniboxSuggestFeature { Enabled = true, SuggestCount = Consts.Omnibox.SuggestDefault }; return(options); }
public ActionResult <int[]> GetUserShards([FromBody] UserOptions options) { if (options == null) { return(BadRequest()); } if (!_options.ApiKey.Equals(options.ApiKey, StringComparison.OrdinalIgnoreCase)) { return(Unauthorized()); } if ("shire".Equals(options?.Customer, StringComparison.OrdinalIgnoreCase) && "*****@*****.**".Equals(options.Name, StringComparison.OrdinalIgnoreCase)) { return(new int[] { 1, 2, 3 }); } else if ("mordor".Equals(options.Customer, StringComparison.OrdinalIgnoreCase) && "*****@*****.**".Equals(options.Name, StringComparison.OrdinalIgnoreCase)) { return(new int[] { 666 }); } else if ("portland".Equals(options.Customer, StringComparison.OrdinalIgnoreCase) && "Dane Vinson".Equals(options.Name, StringComparison.OrdinalIgnoreCase)) { return(new int[] { 23, 24 }); } else { return(Array.Empty <int>()); } }
private static void userOptToUser(UserOptions userOptions, User user) { user.FirstName = userOptions.FirstName; user.LastName = userOptions.LastName; user.Email = userOptions.Email; user.Password = userOptions.Password; }
public IdentityOptions() { ClaimsIdentity = new ClaimsIdentityOptions(); User = new UserOptions(); Password = new PasswordOptions(); Lockout = new LockoutOptions(); }
public object Clone() { UserOptions uo = new UserOptions((Moment)mStart.Clone(), (Moment)mEnd.Clone()); uo.Divisions = (Division[])this.Divisions.Clone(); return(uo); }
private void PopulateOptionsInit(Division dtype) { DivisionPosition dp = h.getPosition(mBody).toDivisionPosition(this.dtypeRasi); Longitude foundLon = new Longitude(0); bool bForward = true; ut_lower = cs.TransitSearch(mBody, h.info.tob, false, new Longitude(dp.cusp_lower), foundLon, ref bForward); ut_higher = cs.TransitSearch(mBody, h.info.tob, true, new Longitude(dp.cusp_higher), foundLon, ref bForward); double ut_span = (ut_higher - ut_lower) / (double)Basics.numPartsInDivision(dtype) * 5.0; double ut_curr = h.baseUT; ut_lower = ut_curr - (ut_span / 2.0); ut_higher = ut_curr + (ut_span / 2.0); //double ut_extra = (ut_higher-ut_lower)*(1.0/3.0); //ut_lower -= ut_extra; //ut_higher += ut_extra; //ut_lower = h.baseUT - 1.0/24.0; //ut_higher = h.baseUT + 1.0/24.0; this.opts = new UserOptions(this.utToMoment(ut_lower), this.utToMoment(ut_higher), dtype); }
private void buttonScan_Click(object sender, RoutedEventArgs e) { bool canContinue; if (_scanBase.Options.OnlySelectedDrives.GetValueOrDefault()) { if (_scanBase.Options.Drives.Count == 0) { MessageBox.Show(Application.Current.MainWindow, "There seems to have been an error detecting drives to scan", Utils.ProductName, MessageBoxButton.OK, MessageBoxImage.Error); return; } canContinue = _scanBase.Options.Drives.Any(drive => drive.IsChecked.GetValueOrDefault()); if (!canContinue) { MessageBox.Show(Application.Current.MainWindow, "You must select at least one drive in order to start the scan", Utils.ProductName, MessageBoxButton.OK, MessageBoxImage.Error); return; } } else if (_scanBase.Options.OnlySelectedFolders.GetValueOrDefault()) { canContinue = _scanBase.Options.IncFolders.Count != 0 && _scanBase.Options.IncFolders.Any(dir => dir.IsChecked.GetValueOrDefault()); if (!canContinue) { MessageBox.Show(Application.Current.MainWindow, "You must select at least one folder in order to start the scan", Utils.ProductName, MessageBoxButton.OK, MessageBoxImage.Error); return; } } if (_scanBase.Options.CompareMusicTags.GetValueOrDefault()) { if (!_scanBase.Options.MusicTagAlbum.GetValueOrDefault() && !_scanBase.Options.MusicTagArtist.GetValueOrDefault() && !_scanBase.Options.MusicTagBitRate.GetValueOrDefault() && !_scanBase.Options.MusicTagDuration.GetValueOrDefault() && !_scanBase.Options.MusicTagGenre.GetValueOrDefault() && !_scanBase.Options.MusicTagTitle.GetValueOrDefault() && !_scanBase.Options.MusicTagTrackNo.GetValueOrDefault() && !_scanBase.Options.MusicTagYear.GetValueOrDefault()) { MessageBox.Show(Application.Current.MainWindow, "You must select at least one music tag to compare in order to start the scan", Utils.ProductName, MessageBoxButton.OK, MessageBoxImage.Error); return; } } UserOptions.StoreUserOptions(_scanBase.Options); _scanBase.MoveNext(); }
public IActionResult Index(int userID) { string loginID = User.Identity.Name.ToString(); User user = UserOptions.GetUser(loginID); return(View(user)); }
public void SaveFile(string filename) { if (tabset.SelectedTab == textPage) { textpad.SaveFile(filename); } else if (tabset.SelectedTab == gridPage) { Notepad pad = new Notepad(); ResultFormat format = (ResultFormat)UserOptions.GetEnumeration( "results/general/format", typeof(ResultFormat)); if (format == ResultFormat.ColumnAligned) { ReportText((Database.Query)grid.Tag, pad); } else { ReportDelimitedText((Database.Query)grid.Tag, format, pad); } pad.SaveFile(filename); } }
public void SetUserPolicy(UserOptions opts) { lock (_lock) { PolicyOptions.User = opts; } }
/// <summary> /// Initializes a new instance of the OptionsViewModel class. /// </summary> public OptionsViewModel(IMessenger msngr) { MessengerInstance = msngr; SaveOptions = new RelayCommand( () => { if (UserOptions != null && Options != null) { if (SelectedCP != null) { if (Options.CurrentConnection != SelectedCP) { Options.CurrentConnection = SelectedCP; MessengerInstance.Send <ExecuteAction>(Action.DisconnectRepositories); MessengerInstance.Send <NavigateToPage>(Page.Connections); } } UserOptions.setOptions(Options); } }, () => { return(Options.Error == null); }); }
/// <summary> /// Creates a new user under the authenticated account. Makes both a POST and a GET request to the People resource. /// </summary> /// <param name="email">The user's email address</param> /// <param name="firstName">The user's first name</param> /// <param name="lastName">The user's last name</param> /// <param name="isActive">The status of the user</param> /// <param name="timezone">The user's timezone</param> /// <param name="isAdmin">Whether the user should be made an admin</param> /// <param name="telephone">The user's telephone number</param> /// <param name="department">The department the user belongs to</param> /// <param name="isContractor">Whether the user should be flagged as a contractor</param> /// <param name="hasAccessToAllFutureProjects">Whether the user should be automatically added to future projects created</param> /// <param name="wantsNewsletter">Whether the user should receive the newsletter</param> /// <param name="wantsWeeklyDigest">Whether the user should receive a weekly digest</param> /// <param name="defaultHourlyRate">The user's default hourly rate</param> /// <param name="costRate">The user's cost rate</param> public User CreateUser(string email, string firstName, string lastName, bool isActive = true, string timezone = null, bool?isAdmin = null, string telephone = null, string department = null, bool?isContractor = null, bool?hasAccessToAllFutureProjects = null, bool?wantsNewsletter = null, bool?wantsWeeklyDigest = null, decimal?defaultHourlyRate = null, decimal?costRate = null) { if (email == null) { throw new ArgumentNullException("email"); } if (firstName == null) { throw new ArgumentNullException("firstName"); } if (lastName == null) { throw new ArgumentNullException("lastName"); } var options = new UserOptions() { Email = email, FirstName = firstName, LastName = lastName, Department = department, Telephone = telephone, Timezone = timezone, IsActive = isActive, IsAdmin = isAdmin, IsContractor = isContractor, HasAccessToAllFutureProjects = hasAccessToAllFutureProjects, WantsNewsletter = wantsNewsletter, WantsWeeklyDigest = wantsWeeklyDigest, DefaultHourlyRate = defaultHourlyRate, CostRate = costRate }; return(CreateUser(options)); }
//// GET: /Admin/Reseller/Edit/5 public ActionResult Edit(int id) { var resellercontracts = _repository.Find(c => c.Reseller.ID == id && c.Reseller.SiteID == Site.ID).EagerLoad(c => c.Reseller, c => c.Reseller.Address, c => c.Contract).FirstOrDefault(); UserOptions _useroption = null; if (resellercontracts != null && resellercontracts.UserID > 0) { _useroption = _service.GetUserOptions(resellercontracts.UserID, resellercontracts.SiteID); } if (_useroption == null) { _useroption = new UserOptions(); _useroption.SiteID = resellercontracts.SiteID; _useroption.UserID = resellercontracts.UserID; _useroption.DateAdded = DateTimeWithZone.Now; } if (id > 0) { resellercontracts.Reseller.ConfirmPassword = resellercontracts.Reseller.PasswordHash; } BindDefaultValues(id); CusUserUserOption objData = new CusUserUserOption(); objData.objResContract = resellercontracts; objData.objUserOption = _useroption; //var _allData = new Tuple<ResellerContract, UserOptions>(resellercontracts, _useroption); return(View(objData)); }
private void connectToRepository() { this.RepositoryConnecting = true; var uOptions = UserOptions.getOptions(); uOptions.Username = UserName; UserOptions.setOptions(uOptions); string pass = Password; new Action(() => { if (uOptions.UseSqlAuthentification) { ConnectionManager.connectRepositorySqlAuth(uOptions.CurrentConnection, UserName, pass); } else { ConnectionManager.connectRepositoryWinAuth(uOptions.CurrentConnection); } RepositoryConnecting = false; }).BeginInvoke((res) => { }, null); }
public override async Task <PaginateUsersResponse> PaginateUsers(PaginateUsersRequest request, ServerCallContext context) { var options = new UserOptions { PageIndex = request.PageIndex, PageSize = request.PageSize, }; var roles = await _authorizationApp.GetUsersAsync(options); var items = roles.Items.Select(x => new PaginateUsersResponse.Types.User { Id = x.Id, UserName = x.UserName, Name = x.Name, DisplayName = x.DisplayName, IsEnabled = x.IsEnabled, }); var result = new PaginateUsersResponse { PageIndex = roles.PageIndex, PageSize = roles.PageSize, ItemCount = roles.ItemCount, }; result.Items.AddRange(items); return(result); }
private void DoExport(object sender, EventArgs e) { var translator = new Translator("ExplainPlan"); using (var dialog = new SaveFileDialog()) { dialog.DefaultExt = "htm"; dialog.Filter = translator.GetString("SavePlanDialogFilter"); dialog.InitialDirectory = UserOptions.GetString("general/queryPath"); dialog.Title = translator.GetString("SavePlanDialogTitle"); translator = null; DialogResult result = dialog.ShowDialog(this); if (result == DialogResult.OK) { using (var file = new StreamWriter(dialog.FileName, false)) { file.WriteLine(browser.DocumentText); file.Close(); } } } }
public static void Build() { var database = Current; //if (U.IsDebug) //{ // //database.TraceListener = new DBLogger(); // database.Trace = true; // database.Tracer = (q) => U.Log4("SQL=" + q); //} DB.CreateTable <UserOptions>(); UserOptions.Init(); //UserOptions.SetBusinessInfo(new Guid("1F19A836-DDC9-459B-B96F-10A5D7BA4446"), "ABC"); //DBCach.Init(); //database.Execute("update UserOptions set NetworkRestriction = 1 where NetworkRestriction is null"); //"Default" property in model class don't work normal //var aaa = DB.Table<StockItem>().Count(); //DBZDebugData.Run(database); Globalization.DbInit(); }
public async Task OpenDialogAsync(DialogToNavigate dialogToNavigate, UserOptions userOptions = null) { if (dialogToNavigate == DialogToNavigate.Setup) { await AppLocator.SetupViewModel.Initialize(); SetupDialog setupDialog = new SetupDialog(); setupDialog.DataContext = AppLocator.SetupViewModel; await setupDialog.ShowAsync(); } else { if (userOptions == null) { userOptions = new UserOptions(); } await AppLocator.SaveViewModel.Initialize(); SaveDialog saveDialog = new SaveDialog(); var saveVM = AppLocator.SaveViewModel; saveVM.UserOptions = userOptions; saveDialog.DataContext = saveVM; await saveDialog.ShowAsync(); } }
public override void OnInspectorGUI() { MapGenerator mapGen = (MapGenerator)target; GameObject userOpt = GameObject.Find("Options"); UserOptions userOptions = userOpt.GetComponent <UserOptions>(); UserAdvancedOptions userAdvancedOptions = userOpt.GetComponent <UserAdvancedOptions>(); if (DrawDefaultInspector()) { if (mapGen.autoUpdate) { mapGen.SetDrawMode(); userOptions.UpdateVariables(); userAdvancedOptions.UpdateVariables(); mapGen.GenerateMap(); } } if (GUILayout.Button("Generate")) { mapGen.SetDrawMode(); userOptions.UpdateVariables(); userAdvancedOptions.UpdateVariables(); mapGen.GenerateMap(); } if (GUILayout.Button("Generate Models")) { GameObject arcVeg = GameObject.Find("MapGenerator"); ArchitectureVegetationGenerator arcVegGen = arcVeg.GetComponent <ArchitectureVegetationGenerator>(); arcVegGen.GenerateArchitecture(); } }
public DetailsModel(RazorPagesKnowContext context, UserOptions uo) { _context = context; _uo = uo; msg = "..."; got_mark = 0; }
/// <summary> /// 配置服务方法。 /// </summary> /// <param name="services">服务集合实例。</param> public void ConfigureServices(IServiceCollection services) { services .Configure <IdentityOptions>(options => { //密码验证 var password = new PasswordOptions(); password.RequireDigit = false; password.RequireLowercase = false; password.RequireUppercase = false; password.RequireNonAlphanumeric = false; password.RequiredLength = 6; options.Password = password; //用户配置 var user = new UserOptions(); user.AllowedUserNameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"; user.RequireUniqueEmail = true; options.User = user; //需要激活电子邮件 options.SignIn.RequireConfirmedEmail = true; }) .AddScoped(service => service.GetRequiredService <IUserManager>().GetUser()) .AddScoped(service => { var userManager = service.GetRequiredService <IUserManager>(); var user = userManager.GetUser(); return(userManager.GetProfile(user)); }) .AddScoped(service => service.GetRequiredService <ISettingsManager>().GetSettings <SecuritySettings>()); }
public async Task <PaginationResult <UserSummary> > GetUsersAsync(UserOptions options) { var itemCount = await _userRepository.GetCountAsync(); var result = new PaginationResult <UserSummary>(options, itemCount); if (itemCount == 0) { return(result); } var roles = await _userRepository.GetUsersAsync(result.Offset, result.Limit); result.Items = roles .Select(x => new UserSummary { Id = x.Id, UserName = x.UserName, Name = x.Name, DisplayName = x.DisplayName, IsEnabled = x.IsEnabled, }) .ToList(); return(result); }
/// <summary> /// 命令执行 /// </summary> /// <param name="context"></param> public override void Execute(DataContext context) { byte[] cmdData = context.CmdData; if (cmdData.Length == 0) { context.Flush(RespondCode.CmdDataLack); return; } AppOptions options = cmdData.ProtoBufDeserialize <AppOptions>(); if (Compiled.Debug) { options.Debug("=== User.OptionsSet 上行数据==="); } UserOptions userOptions = new UserOptions { UserId = context.UserId, RemindPrivateMessage = options.RemindPrivateMessage, RemindGroupMessage = options.RemindGroupMessage, RemindBeFollowed = options.RemindBeFollowed, RemindTopicBeReply = options.RemindTopicBeReply, LastChangeDate = DateTime.Now }; UserBiz.SetUserAppOptions(userOptions); context.Flush(); }
public void UpdateUserOptions(UserOptions opts) { MySqlTransaction tx = null; try { using (var conn = DbHelper.OpenConnectionAndBeginTransaction(out tx)) { var cmd = new MySqlCommand { Connection = conn, CommandText = "UpdateUserOption", CommandType = CommandType.StoredProcedure, }; cmd.Parameters.AddWithValue("UserId", opts.UserId); cmd.Parameters.AddWithValue("PhoneVisible", opts.PhoneVisible); cmd.Parameters.AddWithValue("EmailVisible", opts.EmailVisible); var rows = cmd.ExecuteNonQuery(); if (rows == 0) { throw new ApplicationException("Error updating user options. Try again later."); } tx.Commit(); } } catch (Exception e) { if (tx != null) { try { tx.Rollback(); } catch (InvalidOperationException ignored) { } } Log.Error(e.Message, e); throw; } }
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { string secondDirPath = null; try { var dir = new DirectoryInfo(folderBrowserDialog2.SelectedPath); secondDirPath = dir.FullName; } catch (Exception) { Console.WriteLine($"Error: folderBrowserDialog2 don`t entered"); } var userOptions = new UserOptions(GetFolding(), GetTitle(), moveToFolderCheckBox.Checked, secondDirPath); var mp3Files = new DirectoryInfo(folderBrowserDialog1.SelectedPath) .GetFiles("*.mp3", SearchOption.AllDirectories); var fileOperator = new FileOperator(userOptions); for (int i = 0; i < mp3Files.Length; i++) { fileOperator.SetTarget(mp3Files[i]); fileOperator.DoStuff(); int percentage = (i + 1) * 100 / mp3Files.Length; backgroundWorker1.ReportProgress(percentage); } }
public PCapProcessor(Action<string> logAction, Action<string> packetDebugLogAction,Action<string> setStatusAction, Action<int> reportProgressAction) { if (logAction == null) throw new ArgumentNullException("logAction"); if (packetDebugLogAction == null) throw new ArgumentNullException("packetDebugLogAction"); if (setStatusAction == null) throw new ArgumentNullException("setStatusAction"); if (reportProgressAction == null) throw new ArgumentNullException("reportProgressAction"); Log = logAction; PacketDebugLogger=packetDebugLogAction; SetStatus = setStatusAction; ReportProgress = reportProgressAction; Options=new UserOptions(); }
public object Post(UserOptions request) { if (request.UserId == -1 || !IsLoggedIn) return UnauthorizedResponse(); Log.Debug(request.Dump()); UserDbProvider.Instance.UpdateUserOptions(request); return NoContentResponse(); }
/// <summary> /// Determines if application requires an update or patch. /// </summary> /// <returns> /// arSuccess - successfully determined if an update is required or not /// arFailure - failed to determine if updated is required or not /// arNotImplemented - not implemented by the developer /// </returns> protected override ApplicationResult LockUserOptions(UserOptions uoOptions) { return ApplicationResult.arNotImplemented; }
/// <summary> /// Used by GFN to disable certain user options that may impact their GFN experience. /// </summary> /// <returns> /// arSuccess - application successfully disabled specified user options /// arFailure - application failed to disable specified user options /// arNotImplemented /// </returns> ApplicationResult LockUserOptions(UserOptions uoOptions) { return arNotImplemented; }
public JSProcessor() { _UserOptions = CurrentContext.UserOptions; }
public object Get(UserOptions request) { if (request.UserId == -1 || !IsLoggedIn) return UnauthorizedResponse(); var currentUser = UserDbProvider.Instance[UserId]; request.UserId = UserId; request.PhoneVisible = currentUser.PhoneVisible; request.EmailVisible = currentUser.EmailVisible; return request; }
public RegexHtmlProcessor() { _UserOptions = CurrentContext.UserOptions; }
/// <summary> /// Determines if application requires an update or patch. /// </summary> /// <returns> /// arSuccess - successfully determined if an update is required or not /// arFailure - failed to determine if updated is required or not /// arNotImplemented - not implemented by the developer /// </returns> protected override ApplicationResult LockUserOptions(UserOptions uoOptions) { Console.WriteLine("Lock User Options {0}", uoOptions.ToString()); return ApplicationResult.arSuccess; }
private void CreateUserConfigFile(UserOptions userOptions, int businessDays) { var featuresNumber = CalcFeaturesNumber(Convert.ToInt32(userOptions.Open), Convert.ToInt32(userOptions.Close), Convert.ToInt32(userOptions.High), Convert.ToInt32(userOptions.Low)); var content = String.Format("kmeansCount {0} daysNumber {1} featuresNumber {2}", userOptions.ClusterNumber, businessDays, featuresNumber); //File.Create(USER_CONFIG_FILE_PATH); File.WriteAllText(USER_CONFIG_FILE_PATH, content); }