Ejemplo n.º 1
0
        private static void LineSeriesChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            ViewOxyPlotChart control = null;

            try
            {
                control = source as ViewOxyPlotChart;
                control.ConstructPlot();
            }
            catch (Exception ex)
            {
                DllEntryPoint.LogMessage(Xvue.MSOT.Services.Log.EnumLogType.Warning, "Exception", $"{control.Name}: Exception updating line series: '{ex.Message}'.");
            }
        }
Ejemplo n.º 2
0
        private static void OxyPlotViewAxesChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            ViewOxyPlotChart control = null;

            try
            {
                if (e.NewValue != null && e.NewValue != e.OldValue)
                {
                    control = source as ViewOxyPlotChart;
                    control.OxyPlotView.Axes.Clear();
                    control.ConstructPlot();
                }
            }
            catch (Exception ex)
            {
                DllEntryPoint.LogMessage(Xvue.MSOT.Services.Log.EnumLogType.Warning, "Exception", $"{control.Name}: Exception updating axes: '{ex.Message}'.");
            }
        }
Ejemplo n.º 3
0
        private static void PlotViewStyleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            ViewOxyPlotChart control = null;

            try
            {
                if (e.NewValue != e.OldValue)
                {
                    control = source as ViewOxyPlotChart;
                    control.OxyPlotView.Style = e.NewValue as Style;
                    //System.Diagnostics.Debug.WriteLine($"{control.Name}: PlotView Style updated.");
                }
            }
            catch (Exception ex)
            {
                DllEntryPoint.LogMessage(Xvue.MSOT.Services.Log.EnumLogType.Warning, "Exception", $"{control.Name}: Exception PlotView style: '{ex.Message}'.");
            }
        }