Пример #1
0
        public override int GetHashCode()
        {
            var hashCode = 156220204;

            hashCode = hashCode * -1521134295 + CoreClockDefault.GetHashCode();
            hashCode = hashCode * -1521134295 + CoreClockMax.GetHashCode();
            hashCode = hashCode * -1521134295 + CoreClockMin.GetHashCode();
            hashCode = hashCode * -1521134295 + MemoryClockDefault.GetHashCode();
            hashCode = hashCode * -1521134295 + MemoryClockMax.GetHashCode();
            hashCode = hashCode * -1521134295 + MemoryClockMin.GetHashCode();
            hashCode = hashCode * -1521134295 + VoltageDefault.GetHashCode();
            hashCode = hashCode * -1521134295 + VoltageMax.GetHashCode();
            hashCode = hashCode * -1521134295 + VoltageMin.GetHashCode();
            return(hashCode);
        }
Пример #2
0
 void voltagePlot(List <TimeParameterPair> timeParameterPairs)
 {
     this.Dispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(delegate(Object state)
     {
         if (voltageGraph != null)
         {
             VoltagePlot.Children?.Remove(voltageGraph);
         }
         Rect rectangular           = new Rect(0, 0, VoltagePlot.ActualWidth, VoltagePlot.ActualHeight);
         FurnacesInHandViewModel vm = (FurnacesInHandViewModel)this.DataContext;
         //Установить верхние и нижние границы значений, отображаеиых на графике
         VoltageMax.GetBindingExpression(TextBox.TextProperty).UpdateSource();
         VoltageMin.GetBindingExpression(TextBox.TextProperty).UpdateSource();
         voltageGraph = new VoltageGraph(timeParameterPairs, rect: rectangular, startTime: this.startTime, finishTime: this.finishTime, vm: vm);
         VoltagePlot.Children.Add(voltageGraph);
         return(null);
     }
                                                                                                ), null);
 }