public void Backup(SystemConfig sys_conf, UserConfig user_conf, LanguageConfig lang_conf) { sys_conf.AutoTimeStamp.Trigger.Value = AutoTimeStampTrigger; sys_conf.AutoTimeStamp.Value_LastRecvPeriod.Value = AutoTimeStampValue_LastRecvPeriod; sys_conf.AutoPacketSave.SaveDirectory.Value = AutoSaveDirectory; sys_conf.AutoPacketSave.SavePrefix.Value = AutoSavePrefix; sys_conf.AutoPacketSave.SaveFormat.Value = AutoSaveFormat; sys_conf.AutoPacketSave.SaveTarget.Value = AutoSaveTarget; sys_conf.AutoPacketSave.SaveTimming.Value = AutoSaveTimming; sys_conf.AutoPacketSave.SaveValue_Interval.Value = AutoSaveValue_Interval; sys_conf.AutoPacketSave.SaveValue_FileSize.Value = AutoSaveValue_FileSize; sys_conf.AutoPacketSave.SaveValue_PacketCount.Value = AutoSaveValue_PacketCount; sys_conf.ApplicationCore.RawPacketCountLimit.Value = RawPacketCountLimit; sys_conf.ApplicationCore.Packet_ViewPacketCountLimit.Value = Packet_ViewPacketCountLimit; user_conf.PacketView_Packet_MsgColor.Value = Packet_MsgColor; user_conf.PacketView_Packet_RecvColor.Value = Packet_RecvColor; user_conf.PacketView_Packet_SendColor.Value = Packet_SendColor; sys_conf.ApplicationCore.Sequential_WinApiMode.Value = Sequential_WinApiMode; sys_conf.ApplicationCore.Sequential_ViewCharCountLimitEnable.Value = Sequential_ViewCharCountLimitEnable; sys_conf.ApplicationCore.Sequential_ViewCharCountLimit.Value = Sequential_ViewCharCountLimit; sys_conf.ApplicationCore.Sequential_LineNoVisible.Value = Sequential_LineNoVisible; sys_conf.MailList.Value.Clear(); foreach (var config in MailList) { sys_conf.MailList.Value.Add(ClassUtil.Clone(config)); } }
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)); } }
public override void OnInputPacket(PacketObject input, ref List <PacketObject> output) { /* パケットを複製 */ var packet = ClassUtil.Clone(input); /* パラメータを変更 */ packet.Alias = value_; output.Add(packet); }
private void ApplySelectFileFormatOption() { /* 表示中のオプション値を保存 */ if (select_file_format_option_editor_ != null) { select_file_format_option_editor_.BackupOption(select_file_format_option_); } /* 選択中のファイルに設定を適用 */ foreach (ListViewItem item in LView_OpenFileList.SelectedItems) { if (item.Tag is FileControlParam file) { file.Format = select_file_format_; file.Option = (select_file_format_option_ != null) ? (ClassUtil.Clone(select_file_format_option_)) : (null); UpdateOpenFileListItem(item); } } LView_OpenFileList.Update(); }
public override DeviceProperty Clone() { return(ClassUtil.Clone <DevicePropertyImpl>(this)); }
public override PacketViewProperty Clone() { return(ClassUtil.Clone <PacketViewPropertyImpl>(this)); }
public override PacketConverterProperty Clone() { return(ClassUtil.Clone(this)); }
public NotifyMailConfigDialog(MailConfig config) : this() { Config = ClassUtil.Clone(config); LoadConfig(); }