コード例 #1
0
        public int Vypocitej()
        {
            pisekVA = pisekCelkem;
            pisekVB = 0;
            Cas     = 0;
            KdyMuzuZacitNakladat = -1;
            kalendar             = new Kalendar();

            new Auto(this, 60, 2, 120, 0);
            //new Auto(this, 60, 2, 120, 10);
            //new Auto(this, 60, 2, 120, 10);
            //new Auto(this, 120, 2, 240, 15);

            while (pisekVB < pisekCelkem)
            {
                Udalost udalost = kalendar.NajdiAOdstranAVratPrvni();
                Cas = udalost.kdy;
                udalost.ZpracujSe();
            }
            return(Cas);
        }
コード例 #2
0
        public int Vypocitej()
        {
            pisekVA = pisekCelkem;
            pisekVB = 0;
            Cas = 0;
            KdyMuzuZacitNakladat = -1;
            kalendar = new Kalendar();

            new Auto(this, 60, 2, 120, 0);
            //new Auto(this, 60, 2, 120, 10);
            //new Auto(this, 60, 2, 120, 10);
            //new Auto(this, 120, 2, 240, 15);

            while (pisekVB < pisekCelkem)
            {
                Udalost udalost = kalendar.NajdiAOdstranAVratPrvni();
                Cas = udalost.kdy;
                udalost.ZpracujSe();
            }
            return Cas;
        }