Beispiel #1
0
        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            var date = (DateTime)(sender as Button).DataContext;

            LocalDataStorage.Note(date);

            calendar.Refresh();
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is DateTime date)
            {
                return(LocalDataStorage.GetWeather(date));
            }

            return("");
        }