Esempio n. 1
0
 public Table(int id)
 {
     try
     {
         chairs  = Comunes.get_random(2, 11, id);
         this.id = id;
     }
     catch (Exception e) { }
 }
Esempio n. 2
0
 public Customers(int id_wait)
 {
     try
     {
         amount_of_people = Comunes.get_random(1, 11);
         id_wait_ticket   = id_wait;
     }
     catch (Exception e) { }
 }
Esempio n. 3
0
        public Restaurant()
        {
            customers = new ConcurrentQueue <Customers>();
            diners    = new List <Customers>();
            tables    = new List <Table>();
            int num_of_tables = Comunes.get_random(5, 10);

            for (int j = 1; j < num_of_tables; j++)
            {
                tables.Add(new Table(j));
            }
            tables = tables.OrderBy(x => x.Chairs).ToList();
        }
Esempio n. 4
0
 private int noap; //number of attended people
 public Table()
 {
     chairs = Comunes.get_random(2, 11);
 }