示例#1
0
        private async void OnClicked(object sender, EventArgs e)
        {
            MultipleChoiceAssignment mpAssignment = new MultipleChoiceAssignment();
            string s = await qrScanner.ScanAndGetOutputString();

            Assignment currentassignment = await assignmentLoader.GetAssignment("/GetAssignment/" + s);

            SolvePage nextPage = new SolvePage(currentassignment as MultipleChoiceAssignment);
            await Navigation.PushAsync(nextPage);
        }
示例#2
0
        private async void OnScanButtonClicked(object sender, EventArgs e)
        {
            ScanButton.IsEnabled = false;
            Assignment currentassignment = await assignmentLoader.GetAssignment("/GetAssignment/6");

            SolvePage nextPage = new SolvePage(currentassignment as MultipleChoiceAssignment);
            await Navigation.PushAsync(nextPage);

            ScanButton.IsEnabled = true;
        }