Exemple #1
0
        /// <summary>
        /// 获取默认学分;
        /// </summary>
        /// <returns>学分</returns>
        public static decimal GetDefaultCredit()
        {
            decimal credit =
                Convert.ToDecimal(RegistryService.GetValue("CourseCreditDefault"));

            return(credit);
        }
Exemple #2
0
 /// <summary>
 /// 设置默认学分;
 /// </summary>
 /// <param name="credit">学分</param>
 public static void SetDefaultCredit(decimal credit)
 {
     RegistryService.SetValue("CourseCreditDefault", credit);
 }