/// <summary>
        /// Handles the Click event of the BackButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
        private void BackButton_Click(object sender, RoutedEventArgs e)
        {
            BaseController.PreviousPage = this;
            VendingPage page = new VendingPage();

            this.NavigationService.Navigate(page);
        }
        /// <summary>
        /// Handles the RunWorkerCompleted event of the TransactionQueueSend control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RunWorkerCompletedEventArgs" /> instance containing the event data.</param>
        private void TransactionQueueSend_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            BetteryBusyIndicator.IsBusy = false;

            VendingPage page = new VendingPage();

            this.NavigationService.Navigate(page);
        }
Example #3
0
        private void OpenVendingPage(object sender, VendingPageViewModel viewModel)
        {
            viewModel.OnOpenKeyManagementPage  += OpenKeyManagementPage;
            viewModel.OnOpenUserManagementPage += OpenUserManagementPage;
            viewModel.OnOpenLogPage            += OpenLogPage;
            var page = new VendingPage(viewModel);

            NavigationPage.SetHasBackButton(page, true);
            MainPage.Navigation.PushAsync(page);
        }