Beispiel #1
0
 /// <summary>
 /// 获取任务列表
 /// </summary>
 public static void getTaskInfo()
 {
     try
     {
         InfoDeserialize(FileOperating_Util.LoadInfo(Conf.config.infoPath));
     }
     catch (FileNotFoundException)
     {
         Li = null;
         return;
     }
 }
Beispiel #2
0
 public static void getConf()
 {
     try
     {
         byte[] b = FileOperating_Util.LoadInfo(ConfigLocation);
         if (b != null && b.Length != 0)
         {
             config = ConfDeserialize(b);
         }
         else
         {
             config = Default();
             SaveConf();
         }
     }
     catch (FileNotFoundException)
     {
         config = Default();
         SaveConf();
     }
 }
Beispiel #3
0
 /// <summary>
 /// 供外部调用的保存配置文件方法
 /// </summary>
 public static void SaveConf()
 {
     FileOperating_Util.SaveInfo(ConfSerialize(), ConfigLocation);
 }