Exemple #1
0
        public float changeTemp(float deltaT)
        {
            this.temp += deltaT;
            TempArgs t = new TempArgs(deltaT);

            TemperatureChanged(this, t);
            return(this.temp);
        }
Exemple #2
0
 private void ShowAlert(object sender, TempArgs s)
 {
     MessageBox.Show(String.Format(@"Temperature changed by {0}{1}C!", s.DeltaT.ToString("0.##"), '\u2070'));
 }