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

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

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