Ejemplo n.º 1
0
 private void is_time_to_close()
 {
     try
     {
         //descarga el reporte automaticamente 2 minutos antes de cerrar
         if (Comunes.is_time(DateTime.Now, 2))
         {
             get_report(true);
         }
     }
     catch (Exception e) { }
 }
Ejemplo n.º 2
0
        private void add_customer()
        {
            try
            {
                if (Comunes.is_time(time_to_arrive_people))
                {
                    Customers customer_group = restaurant.add_customer();
                    show_add_persons(customer_group);
                    generate_new_arrival();

                    string conversation = @"Host: Hi, How many you are?" + Environment.NewLine +
                                          "Customer: Hi, we are " + customer_group.Amount_Of_People + Environment.NewLine +
                                          "Host: Ok let me search a table. Your wait number is # " + customer_group.Id_Wait_Ticket;
                    show_host_new_message(conversation);
                }
            }
            catch (Exception exp) { }
        }