Example #1
0
        public async Task RefreshStepsAsync()
        {
            StepRcp.Clear();

            var stepList = await App.cabeMgr.RefreshStepsAsync(currentRecipeID);

            foreach (var item in stepList)
            {
                StepRcp.Add(item);
            }
        }
Example #2
0
        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);
            }
        }