private void resetBackToTableForm() { FormFrontPage.finalizeBill = false; //pop FormPayment FormLoginMenu.getBackStack().Peek().Hide(); FormLoginMenu.getBackStack().Pop(); //Reset FormOrder FormOrderPage orderForm; FormTableLayout tableLayout; orderForm = (FormOrderPage)FormLoginMenu.getBackStack().Peek(); orderForm.resetFormOrderPage(); //Reset current table FormLoginMenu.getBackStack().Pop(); tableLayout = (FormTableLayout)FormLoginMenu.getBackStack().Peek(); // tableLayout.Show(); tableLayout.changeOrderImage(); tableLayout.resetTable(); //Pop to front page FormLoginMenu.getBackStack().Pop(); FormFrontPage frontPage = (FormFrontPage)FormLoginMenu.getBackStack().Peek(); frontPage.Show(); }
private void resetBackToFrontPage() { //pop FormPayment FormLoginMenu.getBackStack().Peek().Hide(); FormLoginMenu.getBackStack().Pop(); //Reset FormOrder FormOrderPage orderForm; orderForm = (FormOrderPage)FormLoginMenu.getBackStack().Peek(); orderForm.resetFormOrderPage(); //Pop to front page FormLoginMenu.getBackStack().Pop(); FormFrontPage frontPage = (FormFrontPage)FormLoginMenu.getBackStack().Peek(); frontPage.Show(); }