Ejemplo n.º 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 NewNumberSetToolBarItem_Clicked(object sender, EventArgs e)
 {
     _numberSetPage = new NumberSetPage(new NumberSet(), false);
     await NavigationManager.PushAsyncPage(Navigation, _numberSetPage);
 }