Example #1
0
        private void ListBoxHander(object sender, RoutedEventArgs e)
        {
            var button = sender as Button;

            var dc = DataContext as GradebookViewModel;

            dc.ShowConcreteLesson(new TestKey
            {
                UnitName   = ButtonAttachedProperty.GetUnitName(button),
                LessonName = ButtonAttachedProperty.GetLessonName(button)
            });
        }
Example #2
0
        private void ListBoxHander(object sender, RoutedEventArgs e)
        {
            var button = sender as Button;

            var st = ButtonAttachedProperty.GetUnitName(button);

            var dc = DataContext as TestListViewModel;

            dc.StartTest(new TestKey
            {
                UnitName   = st,
                LessonName = (string)button.Content
            });
        }