Пример #1
0
 /// <summary>
 /// 获取任务列表
 /// </summary>
 public static void getTaskInfo()
 {
     try
     {
         InfoDeserialize(FileOperating_Util.LoadInfo(Conf.config.infoPath));
     }
     catch (FileNotFoundException)
     {
         Li = null;
         return;
     }
 }
Пример #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();
     }
 }