public SearchByDateViewModel()
 {
     theDaysBetween = 0;
     today          = DateTime.Today;
     mod            = new Model.data();
     items          = new NamedayData();
     onSearchByName = new Command(onSearchByNameClicked);
     todaysNameday  = new Command(onTodaysNamedayClicked);
     onSearchByDate = new Command(onSearchByDateClicked);
 }
        public TodaysNameDayViewModel()
        {
            mod   = new Model.data();
            items = new NamedayData();

            onSearchToday();

            onSearchByDate = new Command(onSearchByDateClicked);
            onSearchByName = new Command(onSearchByNameClicked);
            searchToday    = new Command(onSearchToday);
        }
 private void getData()
 {
     json  = new WebClient().DownloadString("https://api.abalin.net/get/today?country=cz");
     items = JsonConvert.DeserializeObject <NamedayData>(json);
 }
 private void getData()
 {
     json  = new WebClient().DownloadString("https://api.abalin.net/get/namedays?day=" + Day + "&month=" + Month + "&country=cz");
     items = JsonConvert.DeserializeObject <NamedayData>(json);
 }