Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            OleDbManager manager = new OleDbManager();

            List<Ticket> tickets = manager.GetTickets();

            foreach (Ticket ticket in tickets)
            {
            List<TicketResponse> responses = manager.GetTicketResponses(ticket.TicketNumber);
            ticket.Responses = responses;

            Console.Write(ticket.ToString());
            Console.WriteLine(ticket.GetResponseOverview());
            }
            Console.WriteLine("--------------------------------------------------------------------------------");

            SqlClientManager sqlmanager = new SqlClientManager();

            List<Ticket> sqltickets = sqlmanager.GetTickets();

            foreach (Ticket ticket in sqltickets)
            {
            List<TicketResponse> responses = sqlmanager.GetTicketResponses(ticket.TicketNumber);
            ticket.Responses = responses;

            Console.Write(ticket.ToString());
            Console.WriteLine(ticket.GetResponseOverview());
            }
            Console.ReadLine();
        }
Ejemplo n.º 2
0
 static void Main()
 {
     IDbManager dbManager = new OleDbManager();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new Form1(dbManager));
 }