public void Save(string Path) { try{ Serializition.SaveToFile(this, Path + ConfigName); } catch (Exception ex) { throw new Exception(ex.ToString()); } }
/// <summary> /// 加载配置 /// </summary> /// <returns></returns> public static CameraLightPara Load(string Path) { try { CameraLightPara obj = (CameraLightPara)Serializition.LoadFromFile(typeof(CameraLightPara), Path + ConfigName); return(obj); } catch (Exception ex) { throw new LoadException(Path + ConfigName, ex.Message); } }