Ejemplo n.º 1
0
 //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;
 }
Ejemplo n.º 2
0
 public void SetEarthquake(EarthquakeType type)
 {
     CurrentType = type;
     OnEarthquakeChange.Invoke();
 }