Example #1
0
 public NumberSetNumberTabbedPage(NumberSetPage numberSetPage, NumberSetNumbersPage numberSetNumbersPage)
 {
     InitializeComponent();
     _numberSetPage        = numberSetPage;
     _numberSetNumbersPage = numberSetNumbersPage;
     GenerateContent();
 }
        private async void EditNumberSet(NumberSet numberSet)
        {
            CurrentNumberSet        = numberSet;
            _numberSetNumberCounter = 0;
            _numberSetNumbersViewModel.LoadNumberSetNumbersData(numberSet);
            _numberSetNumbersPage = new NumberSetNumbersPage();
            _numberSetNumbersPage.BindingContext = _numberSetNumbersViewModel;
            _numberSetPage       = new NumberSetPage(numberSet, editMode: true);
            _numberSetPage.Title = "Edit Number Set";
            //so that the duplicate name is not an issue when we load it.
            _numberSetPage.NumberSetViewModel.NumberSetNameError = false;
            NumberSetNumberTabbedPage numberSetNumbersTabbedPage = new NumberSetNumberTabbedPage(_numberSetPage, _numberSetNumbersPage);

            await NavigationManager.PushAsyncPage(Navigation, numberSetNumbersTabbedPage);
        }
 private async void ManageNumberSetNumberButton_Clicked(object sender, EventArgs e)
 {
     _numberSetNumbersPage = new NumberSetNumbersPage();
     await NavigationManager.PushAsyncPage(Navigation, _numberSetNumbersPage);
 }
 private async void ShuffleAndPickFromNumberSet(NumberSet numberSet)
 {
     _numberSetNumbersPage = new NumberSetNumbersPage();
     await NavigationManager.PushAsyncPage(Navigation, _numberSetNumbersPage);
 }