Ejemplo n.º 1
0
        public void MakeDoughnuts(DougnutType dFlavor)
        {
            Flavor = dFlavor;
            switch (dFlavor)
            {
            case DougnutType.Chocolate:
                Inderval = 2000;
                break;

            case DougnutType.ChocoladeCake:
                Inderval = 10000;
                break;

            case DougnutType.Custard:
                Inderval = 8000;
                break;

            case DougnutType.Glazed:
                Inderval = 10000;
                break;

            case DougnutType.Grape:
                Inderval = 10000;
                break;

            case DougnutType.Lemon:
                Inderval = 8000;
                break;

            case DougnutType.PlainCake:
                Inderval = 10000;
                break;

            case DougnutType.Sugar:
                Inderval = 1000;
                break;

            case DougnutType.SugarCage:
                Inderval = 10000;
                break;
            }
            Enable = true;
        }
Ejemplo n.º 2
0
 public Dougnut(DougnutType Flavor)
 {
     mTimeofCreation = System.DateTime.Now;
     mFlavor         = Flavor;
 }