private void _MouseMoveEventLegend(Object sender, MouseEventArgs e)
{
try
{
if (mouseDownLegend)
{
Canvas _legend = (Canvas)sender;
Canvas _graph = (Canvas)_legend.Parent;
plotData _plotData = getPlotData((string)_graph.Tag);
_plotData.legendPosition += (e.GetPosition(_graph) - posLegend);
posLegend = e.GetPosition(_graph);
Canvas.SetLeft(_legend, offsetL + _plotData.legendPosition.X);
Canvas.SetTop(_legend, offsetT + _plotData.legendPosition.Y);
}
}
catch (Exception ex)
{
Utilities.OnError(Utilities.GetCurrentMethod(), ex);
}
}