Beispiel #1
0
 public WeeklyViewModel(string city)
 {
     weeklyModel   = new Model.WeeklyModel(city);
     UserCity      = city;
     weatherDB     = weeklyModel.getWeeklyForecast(city);
     SearchCommand = new Command.SearchCommand(this);
 }
Beispiel #2
0
 public WeeklyViewModel()
 {
     weeklyModel   = new Model.WeeklyModel(userCity);
     UserCity      = "jerusalem";
     weatherDB     = weeklyModel.getWeeklyForecast(UserCity);
     SearchCommand = new Command.SearchCommand(this);
 }