private void UpdateView() { var text = TBox_FilterValue.Text; var filter_enable = (ChkBox_FilterEnable.Checked) && (text != null) && (text.Length > 0); var filter_check = PacketConverterInstance.CheckFilter(text); TBox_FilterValue.ForeColor = (text != Instance.Property.TargetFilterValue.Value) ? (Color.Gray) : (Color.Black); if ((text != null) && (text.Length > 0)) { TBox_FilterValue.BackColor = (filter_check) ? (Ratatoskr.Resource.AppColors.Ok) : (Ratatoskr.Resource.AppColors.Ng); } else { TBox_FilterValue.BackColor = Color.White; } if (filter_enable) { Btn_Filter.Image = (filter_check) ? (Ratatoskr.Resource.Images.target_ok_22x22) : (Ratatoskr.Resource.Images.target_ng_22x22); } else { Btn_Filter.Image = Ratatoskr.Resource.Images.target_22x22; } panel_.UpdateView(); }
public ConvertMethodClassImpl(PacketConverterInstance instance, PacketConverterPropertyImpl prop) : base(instance, prop) { InitializeComponent(); Num_Value.Value = prop.DataLengthMatchProperty.Length.Value; Apply(); }
public ConvertMethodClassImpl(PacketConverterInstance instance, PacketConverterPropertyImpl prop) : base(instance, prop) { InitializeComponent(); Num_Value.Value = (int)prop.MSecPassingFromPrevPacketProperty.Interval.Value; Apply(); }
public AlgorithmObjectImpl(PacketConverterInstance instance, PacketConverterPropertyImpl prop) : base(instance, prop) { InitializeComponent(); TBox_Value.Text = prop.ChangeAliasProperty.Value.Value; Apply(); }
public ConvertMethodClassImpl(PacketConverterInstance instance, PacketConverterPropertyImpl prop) : base(instance, prop) { InitializeComponent(); TBox_Value.Text = prop.DataContentsMatchProperty.Pattern.Value; Apply(); }
public AlgorithmObjectImpl(PacketConverterInstance instance, PacketConverterPropertyImpl prop) : base(instance, prop) { InitializeComponent(); Num_ExtCode.Value = prop.CodeExtentionDecodeProperty.ExtCode.Value; Num_ExtMask.Value = prop.CodeExtentionDecodeProperty.ExtMask.Value; Apply(); }
public AlgorithmObjectImpl(PacketConverterInstance instance, PacketConverterPropertyImpl prop) : base(instance, prop) { InitializeComponent(); Num_DataOffset.Value = prop.FileProperty.DataOffset.Value; Num_DataLength.Value = prop.FileProperty.DataLength.Value; Apply(); }
public AlgorithmObjectImpl(PacketConverterInstance instance, PacketConverterPropertyImpl prop) : base(instance, prop) { InitializeComponent(); TBox_Target.Text = prop.DataChangeProperty.TargetPattern.Value.Trim(); TBox_Replace.Text = prop.DataChangeProperty.ReplacePattern.Value.Trim(); Apply(); }
public MainWindow_PacketConverter(MainWindow_PacketConverterPanel panel, PacketConverterInstance pcvti) : this() { panel_ = panel; Instance = pcvti; Instance.Dock = DockStyle.Fill; Panel_Contents.Controls.Add(Instance); ChkBox_Enable.Checked = Instance.Property.ConverterEnable.Value; Label_Name.Text = Instance.Class.Name; ChkBox_FilterEnable.Checked = Instance.Property.TargetFilterEnable.Value; TBox_FilterValue.Text = Instance.Property.TargetFilterValue.Value.Trim(); UpdatePacketCount(); init_complete_ = true; }
public AlgorithmObject(PacketConverterInstance instance, PacketConverterPropertyImpl prop) { Instance = instance; Property = prop; }
public static void SetPacketConverterIndex(PacketConverterInstance pcvti, int index) { PacketConvertManager.Instance.SetInstanceIndex(pcvti, index); }
public static void RemovePacketConverter(PacketConverterInstance pcvti) { PacketConvertManager.Instance.RemoveInstance(pcvti); }
public ConvertMethodClass(PacketConverterInstance instance, PacketConverterPropertyImpl prop) { Instance = instance; Property = prop; }