protected override void OnBackupProperty() { prop_ = Property as PacketViewPropertyImpl; prop_.ShiftBit.Value = Num_ShiftBit.Value; prop_.EchoBack.Value = ChkBox_EchoBack.Checked; prop_.DrawType.Value = (DrawDataType)CBox_DrawType.SelectedItem; prop_.BoundaryText.Value = TBox_BoundaryText.Text; prop_.EndLinePattern.Value = TBox_LFCode.Text; }
public PacketViewInstanceImpl(PacketViewManager viewm, PacketViewClass viewd, PacketViewProperty viewp, Guid id) : base(viewm, viewd, viewp, id) { prop_ = Property as PacketViewPropertyImpl; WINAPI_MODE = ConfigManager.System.ApplicationCore.Sequential_WinApiMode.Value; VIEW_DATA_LIMIT = (WINAPI_MODE && ConfigManager.System.ApplicationCore.Sequential_ViewCharCountLimitEnable.Value); VIEW_DATA_LIMIT_SIZE = (int)ConfigManager.System.ApplicationCore.Sequential_ViewCharCountLimit.Value; VIEW_LINE_NUMBER_VISIBLE = (WINAPI_MODE && ConfigManager.System.ApplicationCore.Sequential_LineNoVisible.Value); InitializeComponent(); InitializeDrawType(); InitializeLineNumberPanel(); Num_ShiftBit.Value = prop_.ShiftBit.Value; ChkBox_EchoBack.Checked = prop_.EchoBack.Value; CBox_DrawType.SelectedItem = prop_.DrawType.Value; TBox_BoundaryText.Text = prop_.BoundaryText.Value.TrimEnd(new char[] { '\r', '\n' }); TBox_LFCode.Text = prop_.EndLinePattern.Value.Trim(); /* TODO: 未実装なので今は非表示 */ Splitter_Main.Panel2Collapsed = true; UpdateViewLineNumber(); }