예제 #1
0
 public void SetData(WuLocation location)
 {
     currentImage.Hidden = !location.Current;
     nameLabel.Text      = location.Name;
     timeLabel.Text      = location?.LocalTimeString();
     tempLabel.Text      = location?.TempString(Settings.UomTemperature, true);
 }
예제 #2
0
        public void SetData(WuLocation location)
        {
            conditionLabel.Text = location?.Conditions?.weather;
            dayLabel.Text       = DateTime.Today.DayOfWeek.ToString();
            highTempLabel.Text  = location?.HighTempString(Settings.UomTemperature);
            locationLabel.Text  = location?.Name;
            lowTempLabel.Text   = location?.LowTempString(Settings.UomTemperature);
            precipLabel.Text    = location.ProbabilityPercipString();
            tempLabel.Text      = location?.TempString(Settings.UomTemperature, true);
            todayLabel.Text     = "Today";

            //precipIcon.Text = null;
            //wuIcon.Text = null;
        }
예제 #3
0
 public void SetData(WuLocation location)
 {
     nameLabel.Text = location.Name;
     timeLabel.Text = location?.LocalTimeString();
     tempLabel.Text = location?.TempString(Settings.UomTemperature, true);
 }