Exemplo n.º 1
0
 private void OnDataContextPropertyChanged(HistogramChartView instance, EventPattern<PropertyChangedEventArgs> handler)
 {
     if (handler.EventArgs.PropertyName == "DataSource")
         AdjustLabelsAndTicks(instance.HistogramChart, (ChartBase) DataContext);
     if (handler.EventArgs.PropertyName == "BellCurveData")
         OnPropertyChanged("BellCurvePeak");
 }
Exemplo n.º 2
0
 private void UpdatePoints(HistogramChartView instance, EventPattern<PropertyChangedEventArgs> handler)
 {
     if (((ChartBase)instance.DataContext).DataSource.Count > 0)
     {
         if (handler.EventArgs.PropertyName == "LSL")
         {
             instance.LslData = PerSampleControlLimitsHelper.BuildHistogramControlLimit(((ChartBase)instance.DataContext).ParentPanel.LSL);
             OnPropertyChanged("LslData");
         }
         if (handler.EventArgs.PropertyName == "USL")
         {
             instance.UslData = PerSampleControlLimitsHelper.BuildHistogramControlLimit(((ChartBase)instance.DataContext).ParentPanel.USL);
             OnPropertyChanged("UslData");    
         }
         if (handler.EventArgs.PropertyName.Contains("Show"))
             OnPropertyChanged("ShowSpecsCheckbox");
     }
 }