Ejemplo n.º 1
0
        //HomeButton_Click
        private void CalendarApp_Click(object sender, RoutedEventArgs e)
        {
            var parameters = new CalendarMonths
            {
                Month = ((Button)sender).Name.ToString(),
                Year  = monthYear
            };

            //string something = clicked.Name;
            //JanMonth.Text = parameters.Name;
            //JanMonth.Content = ((Button)sender).Name.ToString();
            this.Frame.Navigate(typeof(CalendarApp), parameters);
        }
Ejemplo n.º 2
0
        private void DisplayMonths_Click(object sender, RoutedEventArgs e)
        {
            var parameters = new CalendarMonths
            {
                Name = cal.YearAsString()
            };

            //string something = clicked.Name;
            //JanMonth.Text = parameters.Name;
            //JanMonth.Content = ((Button)sender).Name.ToString();

            this.Frame.Navigate(typeof(CalendarMonths), parameters);
        }