Beispiel #1
0
 public void Save(string Path)
 {
     try{
         Serializition.SaveToFile(this, Path + ConfigName);
     }
     catch (Exception ex) {
         throw new Exception(ex.ToString());
     }
 }
Beispiel #2
0
 /// <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);
     }
 }