コード例 #1
0
        async Task <BreakfastItem> HashBrowns(int timeinm1secs)
        {
            await Task.Delay(8000);//milliseconds wait to start

            BreakfastItem myitem = new BreakfastItem("Hash Browns", timeinm1secs, progressBar6, TaskCallBack);

            return(myitem);
        }
コード例 #2
0
        async Task <BreakfastItem> PourOJ(int timeinm1secs)
        {
            await Task.Delay(2600);

            BreakfastItem myitem = new BreakfastItem("Pour OJ", timeinm1secs, progressBar5, TaskCallBack);

            return(myitem);
        }
コード例 #3
0
        async Task <BreakfastItem> FryEggsAsync(int timeinmlsecs)
        {
            //this makes this item wait a little since you want all the food ready at the end
            await Task.Delay(8000);//milliseconds wait to start

            BreakfastItem myitme = new BreakfastItem("Fried Eggs", timeinmlsecs, progressBar2, TaskCallBack);

            return(myitme);
        }
コード例 #4
0
        async Task <BreakfastItem> MakeToastWithButterAndJamAsync(int timeinmlsecs)
        {
            //this makes this item wait a little since you want all the food ready at the end
            await Task.Delay(7000);//milliseconds wait to start

            BreakfastItem myitme = new BreakfastItem("Toast", timeinmlsecs, progressBar4, TaskCallBack);

            return(myitme);
        }
コード例 #5
0
        async Task <BreakfastItem> PourCoffee(int timeinmlsecs)
        {
            BreakfastItem myitem = new BreakfastItem("Pour Cofffee", timeinmlsecs, progressBar3, TaskCallBack);

            return(myitem);
        }
コード例 #6
0
        async Task <BreakfastItem> FryBaconAsync(int timeinmlsecs)
        {
            BreakfastItem myitme = new BreakfastItem("Bacon", timeinmlsecs, progressBar1, TaskCallBack);

            return(myitme);
        }