private void TrackMax_Scroll(object sender, EventArgs e) { PPLmax.Clear(); PPLmax.Add(TrackMax.Value, ZedSignal.GraphPane.YAxis.Scale.Min); PPLmax.Add(TrackMax.Value, ZedSignal.GraphPane.YAxis.Scale.Max); //LineItem LImax = ZedSignal.GraphPane.AddCurve("LImax", PPLmax, Color.Orange); lmax = ZedSignal.GraphPane.AddCurve("LImax", PPLmax, Color.Orange); //LImax.Label.IsVisible = false; lmax.Label.IsVisible = false; ZedSignal.AxisChange(); ZedSignal.Update(); ZedSignal.Invalidate(); Bar2Label.Text = TrackMax.Value.ToString(); }
private void TrackMin_Scroll(object sender, EventArgs e)// Z jakegos dziwnego powodu tak działa lepiej. { PPLmin.Clear(); PPLmin.Add(TrackMin.Value, ZedSignal.GraphPane.YAxis.Scale.Min); PPLmin.Add(TrackMin.Value, ZedSignal.GraphPane.YAxis.Scale.Max); // LineItem LImin = ZedSignal.GraphPane.AddCurve("LImin", PPLmin, Color.Orange); lmin = ZedSignal.GraphPane.AddCurve("min", PPLmin, Color.Orange); //LImin.Label.IsVisible = false; lmin.Label.IsVisible = false; ZedSignal.AxisChange(); ZedSignal.Update(); ZedSignal.Invalidate(); Bar1Label.Text = TrackMin.Value.ToString(); }
private void DataSlider_MouseUp(object sender, MouseEventArgs e) { if (userdoneupdater) { userdoneupdater = false; FrameLabel.Text = "Frame Number: " + DataSlider.Value.ToString(); CurrentWave.Clear(); CurrentWave = measurements.SingleLineReader(loadpath, DataSlider.Value); TrackMin.Maximum = CurrentWave.Count(); TrackMax.Maximum = CurrentWave.Count(); PPLsignal.Clear(); for (int i = int.Parse(IgnoredColumsForData.Text); i < CurrentWave.Count; i++) { PPLsignal.Add(i, CurrentWave[i]); } ZedSignal.GraphPane.CurveList.Clear(); ZedSignal.GraphPane.AddCurve("", PPLsignal, Color.Blue, SymbolType.None); ZedSignal.AxisChange(); ZedSignal.Update(); ZedSignal.Invalidate(); } }