public async Task RefreshStepsAsync() { StepRcp.Clear(); var stepList = await App.cabeMgr.RefreshStepsAsync(currentRecipeID); foreach (var item in stepList) { StepRcp.Add(item); } }
public async Task RefreshStepsAsync() { StepRcp.Clear(); StepHeight = 15; var stepList = await App.cabeMgr.RefreshStepsAsync(currentRecipeID); foreach (var item in stepList) { StepRcp.Add(item); StepHeight += (Constants.rcpDispRowHeight * ((item.Instruction.Length / Constants.rcpStepCharsPerLine) + 1) + 10); } }