Beispiel #1
0
 public void SetTitles(MeasurementTitles titles)
 {
     _speed.SetTitle(titles.Speed);
     _altitude.SetTitle(titles.Altitude);
     _glideRatio.SetTitle(titles.GlideRatio);
     _gforce.SetTitle(titles.GForce);
 }
 public MetersViewModel()
 {
     _data   = new MeasurementViewData();
     _titles = new MeasurementTitles {
         Speed      = "Speed",
         Altitude   = "Altitude",
         GlideRatio = "Glide Ratio",
         GForce     = "G-Force"
     };
 }
 public void SetLanguage(LanguageTable languageTable)
 {
     _titles = new MeasurementTitles {
         Speed      = languageTable.Table["air_speed"],
         Altitude   = languageTable.Table["altitude"],
         GlideRatio = languageTable.Table["glide_ratio"],
         GForce     = languageTable.Table["g_force"]
     };
     if (TitlesUpdated != null)
     {
         TitlesUpdated(_titles);
     }
 }