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