Ejemplo n.º 1
0
        public async void PriceFromPick_Clicked(object sender, EventArgs e)
        {
            SelectPricePage selectPricePage = new SelectPricePage(viewModel.PostModel.PriceFrom, viewModel.PostModel.PriceFromUnit);

            selectPricePage.SetSaveEvent(async(object sSender, EventArgs sE) =>
            {
                viewModel.PostModel.PriceFromUnit   = (short)selectPricePage.SelectedOption.Id;
                viewModel.PostModel.PriceFromText   = DecimalHelper.DecimalToText(selectPricePage.Price) + " " + selectPricePage.SelectedOption.Name.ToLower();
                viewModel.PostModel.PriceFrom       = DecimalHelper.TextToDecimal(selectPricePage.Text);
                viewModel.PostModel.PriceFromQuyDoi = selectPricePage.Price * selectPricePage.SelectedOption.QuyDoi;
                await Navigation.PopAsync();
            });
            await Navigation.PushAsync(selectPricePage);
        }