示例#1
0
        private void AddItem_Clicked(object sender, EventArgs e)
        {
            int serves = 0;

            if (!int.TryParse(Serves.Text, out serves))
            {
                DisplayAlert("Alert", "Enter a valid number of serves", "OK");
            }
            else
            {
                _viewModel.AddOrderItem(serves);
            }
        }