public PacketViewInstanceImpl(PacketViewManager viewm, PacketViewClass viewd, PacketViewProperty viewp, Guid id) : base(viewm, viewd, viewp, id) { prop_ = viewp as PacketViewPropertyImpl; InitializeComponent(); GCPanel_Main.LoadConfig(prop_); Disposed += OnDisposed; disp_update_timer_.Interval = 1000; disp_update_timer_.Tick += OnDispUpdateTimer; UpdateModule(); UpdateLayerParam(); }
public void LoadConfig(PacketViewPropertyImpl prop) { CBox_DataFormat.SelectedItem = prop.DataFormat.Value; CBox_DataEndian.SelectedItem = prop.DataEndian.Value; Num_DataChannel.Value = prop.DataChannelNum.Value; CBox_DataCollectMode.SelectedItem = prop.DataCollectMode.Value; Num_SamplingPoint.Value = prop.SamplingPoint.Value; Num_SamplingInterval.Value = prop.SamplingInterval.Value / 1000; Num_DisplayPoint.Value = prop.DisplayPoint.Value; Num_AxisY_ValueMax.Value = prop.AxisY_ValueMax.Value; Num_AxisY_ValueMin.Value = prop.AxisY_ValueMin.Value; CBox_ChSet_Channel.SelectedItem = prop.CurrentChannel.Value; prop_ = prop; }