示例#1
0
        public async void AddClicked(object sender, EventArgs e)
        {
            saveCase.EventName        = nameOfEvent;
            saveCase.Name             = nameFld.Text;
            saveCase.Age              = HelperClass.HasValue(ageFld.Text);
            saveCase.SeenByMedic      = medicSwitch.IsToggled;
            saveCase.IncidentReported = reportSwitch.IsToggled;
            saveCase.ActionTaken      = actionFld.Text;
            saveCase.TimeInCare       = "have to implement";
            saveCase.VolunteerName    = Settings.VolunteerName;

            await azureService.AddCaseInfo(saveCase);

            MessagingCenter.Send <DataInputPage>(this, "SaveValue");
            await Navigation.PopAsync();
        }