SetValue() 공개 메소드

public SetValue ( float _value ) : void
_value float
리턴 void
예제 #1
0
        public override void TimerCallback(object state)
        {
            Debug.Print("Temperature Callback");
            TempData tempData = new TempData();

            // get current temperature
            tempData.SetValue(CalculateTemperature());

            Debug.Print("Temperature = " + tempData.GetValue().ToString());
            //Timer Callbacks receive a Delegate in the state object
            InputDataAvailable ida = (InputDataAvailable)state;

            // call out to the delegate with expected value
            ida(tempData);
        }
        public override void TimerCallback(object state)
        {
            Debug.Print("Temperature Callback");
            TempData tempData = new TempData();
            // get current temperature
            tempData.SetValue(CalculateTemperature());

            Debug.Print("Temperature = "+tempData.GetValue().ToString());
            //Timer Callbacks receive a Delegate in the state object
            InputDataAvailable ida = (InputDataAvailable)state;

            // call out to the delegate with expected value
            ida(tempData);
        }