diff options
| author | Matthew Strasiotto <[email protected]> | 2021-05-01 20:21:14 +1000 |
|---|---|---|
| committer | Matthew Strasiotto <[email protected]> | 2021-05-01 20:21:14 +1000 |
| commit | b43383c07df3a84bdad1d29a7082b5916cbaacc6 (patch) | |
| tree | b8814d5456d9d83dcc6d3eb957144e30ffa80c05 | |
| parent | Add streamingMode option to constructors down the chain (diff) | |
| download | rawaccel-b43383c07df3a84bdad1d29a7082b5916cbaacc6.tar.xz rawaccel-b43383c07df3a84bdad1d29a7082b5916cbaacc6.zip | |
implement event handlers for streaming mode click
| -rw-r--r-- | grapher/Models/Charts/AccelCharts.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/grapher/Models/Charts/AccelCharts.cs b/grapher/Models/Charts/AccelCharts.cs index 9069886..7682120 100644 --- a/grapher/Models/Charts/AccelCharts.cs +++ b/grapher/Models/Charts/AccelCharts.cs @@ -47,6 +47,8 @@ namespace grapher EnableLastValue.CheckedChanged += new System.EventHandler(OnEnableLastMouseMoveCheckStateChange); + EnableStreamingMode.CheckedChanged += new System.EventHandler(OnEnableStreamingModeCheckStateChange); + ChartState = ChartStateManager.InitialState(); ChartState.Activate(); HideVelocityAndGain(); @@ -179,6 +181,10 @@ namespace grapher HideVelocityAndGain(); } } + private void OnEnableStreamingModeCheckStateChange(object sender, EventArgs e) + { + ChartState.SetStreaming(EnableStreamingMode.Checked); + } private void OnEnableLastMouseMoveCheckStateChange(object sender, EventArgs e) { |