Esempio n. 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);
        }
Esempio n. 2
0
        async Task <BreakfastItem> PourOJ(int timeinm1secs)
        {
            await Task.Delay(2600);

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

            return(myitem);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 5
0
        async Task <BreakfastItem> PourCoffee(int timeinmlsecs)
        {
            BreakfastItem myitem = new BreakfastItem("Pour Cofffee", timeinmlsecs, progressBar3, TaskCallBack);

            return(myitem);
        }
Esempio n. 6
0
        async Task <BreakfastItem> FryBaconAsync(int timeinmlsecs)
        {
            BreakfastItem myitme = new BreakfastItem("Bacon", timeinmlsecs, progressBar1, TaskCallBack);

            return(myitme);
        }