/// <summary>Fires the InviteeSelected event when an invitee is selected on the invitee list panel</summary> public void OnInviteeSelected(LocationUpdateEventArgs args) { var handler = InviteeSelected; if (handler != null) { handler(this, args); } }
/// <summary>Fires the CurrentLocationChanged event whenever the device's location changes</summary> public void OnCurrentLocationChanged(LocationUpdateEventArgs args) { var handler = CurrentLocationChanged; if (handler != null) { handler(this, args); } }
private static void Station_Updated(object source, LocationUpdateEventArgs e) { var station = source as MetarStation; Console.WriteLine($"Station: {station.GetStationInfo.Name}\n" + $"ICAO: {station.GetStationInfo.ICAO}\n" + $"Temperature: {station.Weather.Temperature} {station.Units.TemperatureUnit}\n" + $"Pressure: {station.Weather.Pressure} {station.Units.PressureUnit}\n" + $"Wind Speed: {station.Weather.WindSpeed} {station.Units.WindSpeedUnit}"); }