public static void Main()
Coordinate c = new Coordinate(69, -112, DateTime.Now);
double moonAge = c.CelestialInfo.MoonIllum.Phase * 29.53;
Console.WriteLine(c.GeoDate + "\tPHASE: " + c.CelestialInfo.MoonIllum.Phase + "\tAGE: " + moonAge);
c.CoordinateChanged += CoordinateChanged;
c.GeoDate = DateTime.Now.AddDays(6);
public static void CoordinateChanged(object sender, EventArgs e)
Coordinate c = (Coordinate)sender;
double moonAge = c.CelestialInfo.MoonIllum.Phase * 29.53;
Console.WriteLine(c.GeoDate + "\tPHASE: " + c.CelestialInfo.MoonIllum.Phase + "\tAGE: " + moonAge);