public static void setLeavePath(string path) { // MessageBox.Show(s); UpdateAppConfig ua = new UpdateAppConfig(); ua.updateAppConfig("LeavePath", path); }
public static void setRecordPath(string path) { // ConfigurationManager.AppSettings.Remove("RecordPath"); // ConfigurationManager.AppSettings.Add("RecordPath", path); // ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).Save(ConfigurationSaveMode.Modified); // ConfigurationManager.RefreshSection("appSettings"); UpdateAppConfig ua = new UpdateAppConfig(); ua.updateAppConfig("RecordPath", path); }