Пример #1
0
        private void EnterTestingView(object sender, List <MemoryPictureItem> items, GroupTestInfo groupTestInfo)
        {
            var memoryTestView = new MemoryTestView(items, groupTestInfo);

            memoryTestView.Tag = sender;
            memoryTestView.TestingCompleted += MemoryTestView_TestingCompleted;
            TraingViewCotnentControl.Content = memoryTestView;
            QuitButton.Visibility            = Visibility.Visible;
        }
 public MemoryTestView(List <MemoryPictureItem> items, GroupTestInfo groupTestInfo)
 {
     InitializeComponent();
     _memoryPictureItems = items;
     _groupTestInfo      = groupTestInfo;
     Loaded += async(s, e) =>
     {
         await StartLearning(true);
     };
 }