private void SetAccessType(Program.GlobalAccessType type) { Program.GLOBAL_ACCESS_TYPE = type; CommonTasks.WriteValueToConfigurationFile("globals", "globalAccessType", ((int)type).ToString()); Program.logEvent("Access Type changed to " + type.ToString()); }
private void buttonAdminConfig3_Click(object sender, EventArgs e) { try { string result = getResult(Program.CONFIG_ADMIN_PWORD_3); Program.CONFIG_ADMIN_PWORD_3 = result; textBoxAdminConfig3.Text = result; CommonTasks.WriteValueToConfigurationFile("configurableadminpasswords", "adminpassword3", result); Program.logEvent("Configurable Admin Password 3 Set: " + result); } catch (Exception ex) { Program.logDebug("ChangeAdminPassWordForm:buttonAdminConfig3_Click exception " + ex.Message); throw new Exception("ChangeAdminPassWordForm:buttonAdminConfig3_Click exception " + ex.Message); } }
private void buttonChangeTextMsgNumber_Click(object sender, EventArgs e) { TimeOutOff(); LongNameEntryForm buttonChangeAdminTextMsg = new LongNameEntryForm(10, false, false, LanguageTranslation.NEW_ADMIN_TXT_NUMBER); buttonChangeAdminTextMsg.InitialString = Program.TEXTTO_ADDRESS.Split('@')[0]; buttonChangeAdminTextMsg.ShowDialog(); resetTimer(); if (buttonChangeAdminTextMsg.Ok) { string result = buttonChangeAdminTextMsg.Description; Program.TEXTTO_ADDRESS = result; CommonTasks.WriteValueToConfigurationFile("textmsg", "textToAddress", result + "@vtext.com"); } }
private void buttonSrvMngNumber_Click(object sender, EventArgs e) { TimeOutOff(); LongNameEntryForm numberNameDlg = new LongNameEntryForm(SERVICE_NUMBER_MAX_SIZE, false, false); numberNameDlg.DialogTitle = LanguageTranslation.SERVICE_MGR_PHONE_NUMBER; numberNameDlg.InitialString = Program.SERVICE_MANAGER_NUMBER; numberNameDlg.UseSpaceBar = true; numberNameDlg.ShowDialog(); resetTimer(); string result = numberNameDlg.Description; Program.SERVICE_MANAGER_NUMBER = result; CommonTasks.WriteValueToConfigurationFile("globals", "serviceManagerPhone", result); }
private void buttonChangeAdminEmail_Click(object sender, EventArgs e) { TimeOutOff(); LongNameEntryForm buttonChangeAdminEmail = new LongNameEntryForm(250, false, false, LanguageTranslation.NEW_ADMIN_EMAIL); buttonChangeAdminEmail.InitialString = Program.TO_ADDRESS; buttonChangeAdminEmail.UseAtSign = true; buttonChangeAdminEmail.UsePeriod = true; buttonChangeAdminEmail.ShowDialog(); resetTimer(); if (buttonChangeAdminEmail.Ok) { string result = buttonChangeAdminEmail.Description; Program.TO_ADDRESS = result; CommonTasks.WriteValueToConfigurationFile("email", "emailToAddress", result); } }