public void Load(SystemConfig sys_conf, UserConfig user_conf, LanguageConfig lang_conf) { AutoTimeStampTrigger = sys_conf.AutoTimeStamp.Trigger.Value; AutoTimeStampValue_LastRecvPeriod = sys_conf.AutoTimeStamp.Value_LastRecvPeriod.Value; AutoSaveDirectory = sys_conf.AutoPacketSave.SaveDirectory.Value; AutoSavePrefix = sys_conf.AutoPacketSave.SavePrefix.Value; AutoSaveFormat = sys_conf.AutoPacketSave.SaveFormat.Value; AutoSaveTarget = sys_conf.AutoPacketSave.SaveTarget.Value; AutoSaveTimming = sys_conf.AutoPacketSave.SaveTimming.Value; AutoSaveValue_Interval = sys_conf.AutoPacketSave.SaveValue_Interval.Value; AutoSaveValue_FileSize = sys_conf.AutoPacketSave.SaveValue_FileSize.Value; AutoSaveValue_PacketCount = sys_conf.AutoPacketSave.SaveValue_PacketCount.Value; RawPacketCountLimit = sys_conf.ApplicationCore.RawPacketCountLimit.Value; Packet_ViewPacketCountLimit = sys_conf.ApplicationCore.Packet_ViewPacketCountLimit.Value; Packet_MsgColor = user_conf.PacketView_Packet_MsgColor.Value; Packet_RecvColor = user_conf.PacketView_Packet_RecvColor.Value; Packet_SendColor = user_conf.PacketView_Packet_SendColor.Value; Sequential_WinApiMode = sys_conf.ApplicationCore.Sequential_WinApiMode.Value; Sequential_ViewCharCountLimitEnable = sys_conf.ApplicationCore.Sequential_ViewCharCountLimitEnable.Value; Sequential_ViewCharCountLimit = sys_conf.ApplicationCore.Sequential_ViewCharCountLimit.Value; Sequential_LineNoVisible = sys_conf.ApplicationCore.Sequential_LineNoVisible.Value; MailList.Clear(); foreach (var config in sys_conf.MailList.Value) { MailList.Add(ClassUtil.Clone(config)); } }
private void SelectSaveTimming(AutoPacketSaveTimmingType type) { switch (type) { case AutoPacketSaveTimmingType.NoSave: RBtn_Timing_None.Checked = true; break; case AutoPacketSaveTimmingType.Interval: RBtn_Timing_Interval.Checked = true; break; case AutoPacketSaveTimmingType.FileSize: RBtn_Timing_FileSize.Checked = true; break; case AutoPacketSaveTimmingType.PacketCount: RBtn_Timing_PacketCount.Checked = true; break; default: RBtn_Timing_None.Checked = true; break; } }
private static void UpdatePoll() { if ((timming_type_ != ConfigManager.System.AutoPacketSave.SaveTimming.Value) || (target_type_ != ConfigManager.System.AutoPacketSave.SaveTarget.Value) ) { timming_type_ = ConfigManager.System.AutoPacketSave.SaveTimming.Value; target_type_ = ConfigManager.System.AutoPacketSave.SaveTarget.Value; Restart(); } }
private static AutoLogObject LoadOutputModule(AutoPacketSaveTimmingType type) { var obj = (AutoLogObject)null; switch (timming_type_) { case AutoPacketSaveTimmingType.Interval: obj = new AutoLogObject_Interval(); break; case AutoPacketSaveTimmingType.FileSize: obj = new AutoLogObject_FileSize(); break; case AutoPacketSaveTimmingType.PacketCount: obj = new AutoLogObject_PacketCount(); break; } return(obj); }