aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphSurface.cs
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphSurface.cs
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphSurface.cs')
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphSurface.cs21
1 files changed, 1 insertions, 20 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphSurface.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphSurface.cs
index 1a3015728..ebcff3472 100644
--- a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphSurface.cs
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphSurface.cs
@@ -40,20 +40,6 @@ namespace RealTimeGraphX.WPF
private Point _last_mouse_position;
private Grid _grid;
- #region Events
-
- /// <summary>
- /// Occurs when the surface size has changed.
- /// </summary>
- public event EventHandler SurfaceSizeChanged;
-
- /// <summary>
- /// Occurs when the surface zoom rectangle has changed.
- /// </summary>
- public event EventHandler ZoomRectChanged;
-
- #endregion
-
#region Properties
/// <summary>
@@ -191,8 +177,6 @@ namespace RealTimeGraphX.WPF
}
_zoom_rect = new System.Drawing.RectangleF((float)x, (float)y, _zoom_rect.Width, _zoom_rect.Height);
-
- ZoomRectChanged?.Invoke(this, new EventArgs());
}
_last_mouse_position = _current_mouse_position;
@@ -218,7 +202,6 @@ namespace RealTimeGraphX.WPF
_zoom_rect = new System.Drawing.RectangleF((float)Canvas.GetLeft(_selection_rectangle), (float)Canvas.GetTop(_selection_rectangle), (float)_selection_rectangle.Width, (float)_selection_rectangle.Height);
_selection_rectangle.Visibility = Visibility.Hidden;
_is_scaled = true;
- ZoomRectChanged?.Invoke(this, new EventArgs());
}
}
@@ -239,7 +222,6 @@ namespace RealTimeGraphX.WPF
{
_zoom_rect = new System.Drawing.RectangleF();
_is_scaled = false;
- ZoomRectChanged?.Invoke(this, new EventArgs());
}
else if (Keyboard.IsKeyDown(Key.LeftCtrl))
{
@@ -319,7 +301,7 @@ namespace RealTimeGraphX.WPF
/// <param name="points">The points.</param>
public void DrawSeries(WpfGraphDataSeries dataSeries, IEnumerable<System.Drawing.PointF> points)
{
- _g.DrawPolygon(dataSeries.GdiPen, points.ToArray());
+ _g.DrawCurve(dataSeries.GdiPen, points.ToArray());
}
/// <summary>
@@ -391,7 +373,6 @@ namespace RealTimeGraphX.WPF
{
_size = new System.Drawing.SizeF((float)e.NewSize.Width, (float)e.NewSize.Height);
_size_changed = true;
- SurfaceSizeChanged?.Invoke(this, new EventArgs());
}
#endregion