moel@151: /* moel@151: moel@151: Version: MPL 1.1/GPL 2.0/LGPL 2.1 moel@151: moel@151: The contents of this file are subject to the Mozilla Public License Version moel@151: 1.1 (the "License"); you may not use this file except in compliance with moel@151: the License. You may obtain a copy of the License at moel@151: moel@151: http://www.mozilla.org/MPL/ moel@151: moel@151: Software distributed under the License is distributed on an "AS IS" basis, moel@151: WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License moel@151: for the specific language governing rights and limitations under the License. moel@151: moel@151: The Original Code is the Open Hardware Monitor code. moel@151: moel@151: The Initial Developer of the Original Code is moel@151: Michael Möller . moel@151: Portions created by the Initial Developer are Copyright (C) 2009-2010 moel@151: the Initial Developer. All Rights Reserved. moel@151: moel@151: Contributor(s): moel@151: moel@151: Alternatively, the contents of this file may be used under the terms of moel@151: either the GNU General Public License Version 2 or later (the "GPL"), or moel@151: the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), moel@151: in which case the provisions of the GPL or the LGPL are applicable instead moel@151: of those above. If you wish to allow use of your version of this file only moel@151: under the terms of either the GPL or the LGPL, and not to allow others to moel@151: use your version of this file under the terms of the MPL, indicate your moel@151: decision by deleting the provisions above and replace them with the notice moel@151: and other provisions required by the GPL or the LGPL. If you do not delete moel@151: the provisions above, a recipient may use your version of this file under moel@151: the terms of any one of the MPL, the GPL or the LGPL. moel@151: moel@151: */ moel@151: moel@151: using System; moel@151: using System.Collections.Generic; moel@151: using OpenHardwareMonitor.Hardware; moel@151: moel@151: namespace OpenHardwareMonitor.GUI { moel@151: public class ResetMinMaxVisitor : IVisitor { moel@151: public void VisitComputer(IComputer computer) { moel@151: computer.Traverse(this); moel@151: } moel@151: moel@151: public void VisitHardware(IHardware hardware) { moel@151: hardware.Traverse(this); moel@151: } moel@151: moel@151: public void VisitSensor(ISensor sensor) { moel@151: sensor.ResetMin(); moel@151: sensor.ResetMax(); moel@151: } moel@151: moel@151: public void VisitParameter(IParameter parameter) { } moel@151: } moel@151: }