예제 #1
0
        public bool Next()
        {
            if (this.ManageStockViewModel.StockAction == ManageStockAction.Issue)
            {
                FragmentTransaction ft = FragmentManager.BeginTransaction();
                var fragment           = new FragmentProductsInStock();
                ft.Replace(Resource.Id.main_content, fragment, ManageStockView.MainContentFragmentTag);
                ft.Commit();
            }
            else
            {
                FragmentTransaction ft = FragmentManager.BeginTransaction();
                var fragment           = new FragmentReasonsForReturn();
                ft.Replace(Resource.Id.main_content, fragment, ManageStockView.MainContentFragmentTag);
                ft.Commit();
            }

            return(true);
        }
예제 #2
0
        public bool Previous()
        {
            if (this.ManageStockViewModel.StockAction == ManageStockAction.Issue)
            {
                FragmentTransaction ft   = FragmentManager.BeginTransaction();
                Fragment            frag = new FragmentSelectUnits();
                ft.Replace(Resource.Id.main_content, frag, ManageStockView.MainContentFragmentTag);
                ft.Commit();

                this.ManageStockViewModel.DsrDetails.Remove(this._selectedUnits);
            }
            else
            {
                this.ManageStockViewModel.ShowCheckBoxOnConfirmationScreen(true);
                FragmentTransaction ft   = FragmentManager.BeginTransaction();
                Fragment            frag = new FragmentReasonsForReturn();
                ft.Replace(Resource.Id.main_content, frag, ManageStockView.MainContentFragmentTag);
                ft.Commit();
            }

            return(true);
        }