コード例 #1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="RawObservations"/> class.
        /// </summary>
        public RawObservations()
        {
            this.version   = 3;
            this.location  = string.Empty;
            this.date      = string.Empty;
            this.notes     = string.Empty;
            this.length    = ObservationLength.Unspecified;
            this.intensity = ObservationIntensity.NotRecorded;
            this.timeOfDay = ObservationTimeOfDay.NotRecorded;
            this.weather   = ObservationWeather.NotRecorded;

            this.habitats = new RawHabitats();
            this.species  = new TypeString();
            this.heard    = new TypeString();
        }
コード例 #2
0
ファイル: ObservationManager.cs プロジェクト: abs508/asland
 /// <summary>
 /// Set a new weather in the model.
 /// </summary>
 /// <param name="newWeather">new weather</param>
 public void SetWeather(ObservationWeather newWeather)
 {
     this.observations.Weather = newWeather;
 }
コード例 #3
0
 /// <summary>
 /// Set the new observation weather.
 /// </summary>
 /// <param name="newWeather">new weather</param>
 private void NewObservationWeather(ObservationWeather newWeather)
 {
     this.observations.SetWeather(newWeather);
 }