private static void StoreManagerIntoFile(FrmMain uiform)
        {
            LocalStorage store = new LocalStorage();
            store.LogLevelFlags = uiform.ButtonStatusToLevelFlags();
            store.DomainList = DomainManager.DomainList;
            store.CurrentTaskManager = m_tms;
            store.CurrentTransmissionManager = m_ttm;
            store.ServerTcpPort = ServerPort;
            store.LogReservedDays = LogReservedDays;
            store.LogLoadingLimit = LogLoadingLimit;
            store.IsMinToSystemTray = IsMinToSystemTray;
            store.IsServerModeLocal = !IsServerModeRemote;
            store.MessagePeriod = MessagePeriod;
            store.IsUsingFetion = IsUsingFetion;
            store.FetionNumber = FetionNumber;
            store.FetionPsd = FetionPsd;
            store.FetionSendingTime = FetionSendingTime;
            store.ADSLEntryName = ADSLEntry;
            store.ADSLUserName = ADSLUserName;
            store.ADSLPassword = ADSLPassword;

            IFormatter formatter = new BinaryFormatter();
            try
            {
                Stream stream = new FileStream("SlowAndSteadyParser.store", FileMode.Create, FileAccess.Write, FileShare.None);
                formatter.Serialize(stream, store);
                stream.Close();
                
            }
            catch (Exception e)
            {
                MessageBox.Show("写入本地数据文件失败,当前任务信息无法保存", "严重错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
                log.Error("写入本地数据文件失败", e);
            }
            finally
            {
                
            }
        }
 private static void StoreManagerIntoFile(FrmMain uiform)
 {
     LocalStorage store = new LocalStorage();           
     store.DomainList = DomainManager.DomainList;
     store.CurrentTaskManager = ms_tmc;
     store.Configuration = ms_c;
     IFormatter formatter = new BinaryFormatter();
     try
     {
         Stream stream = new FileStream("SlowAndSteadyParser.store", FileMode.Create, FileAccess.Write, FileShare.None);
         formatter.Serialize(stream, store);
         stream.Close();
         
     }
     catch (Exception e)
     {
         MessageBox.Show("写入本地数据文件失败,客户端信息无法保存", "严重错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
         log.Error("写入本地数据文件失败", e);
     }
     finally
     {
         
     }
 }