//Constructor public Earthquake(string id, double latitude, double longitude, DateTime date, EarthquakeType type, double depth, double magnitude, EarthquakeMagnitudeType magnitudeType) { this.id = id; this.latitude = latitude; this.longitude = longitude; this.date = date; this.type = type; this.depth = depth; this.magnitude = magnitude; this.magnitudeType = magnitudeType; }
public void SetEarthquake(EarthquakeType type) { CurrentType = type; OnEarthquakeChange.Invoke(); }