private async Task NextAsync() { Message = null; if (Validate()) { int?interval = string.IsNullOrEmpty(Interval) ? new int?() : new int?(Convert.ToInt32(Interval)); PlanificationBuilder.SetInterval(StartTime, interval, Days); await NavigationService.NavigateAsync("PlanificationActionPage"); } }
private async Task NextAsync() { if (Validate()) { PlanificationBuilder.SetType((PlanificationType)Periodicity.Id); PlanificationBuilder.SetPill(Pill); PlanificationBuilder.SetStartDate(StartDate); PlanificationBuilder.SetCriticalStock(string.IsNullOrEmpty(CriticalStock) ? 0 : Convert.ToInt32(CriticalStock)); PlanificationBuilder.SetQtyToDispense(Convert.ToInt32(QtyToDispense)); await NavigationService.NavigateAsync(Periodicity.NextPage); } }
private Task Next() { PlanificationBuilder.SetInterval(StartTime, DailyPeriodicity.Id, null); return(NavigationService.NavigateAsync("PlanificationActionPage")); }