public static void Load(string path) { var config = YUtil.GetJsonObjectFromFile <Dictionary <string, object> >(path); YUtil.SetStaticField(typeof(HmiConfig), config); bool isDevUserEnv = DevUser.ToLower().Contains(YUtil.GetWindowsUserName().ToLower()); var genDict = new Dictionary <string, object>(); genDict[nameof(IsDevUserEnv)] = isDevUserEnv; YUtil.SetStaticField(typeof(HmiConfig), genDict); YUtil.ValidRequiredConfig(typeof(HmiConfig)); CraftBomZhsDict = new Dictionary <string, string>(); }