Exemple #1
0
        public void UpdateSource(Double temp, Double pressr, Double humid)
        {
            SourceEventArgs e = new SourceEventArgs(temp, pressr, humid);

            OnUpdateSource(e);
        }
Exemple #2
0
 private void PutDisplay(Object sender, SourceEventArgs sourceEventArgs)
 {
     Console.WriteLine("This is display2 where Temperature={0}, Pressure={1},Humidity={2}",
                       sourceEventArgs.Temperature, sourceEventArgs.Pressure, sourceEventArgs.Humidity);
 }