Ejemplo n.º 1
0
        static void Main()
        {
            IFestivalService serv = new ProxyServer("127.0.0.1", 1234);
            ClientCtrl       ctrl = new ClientCtrl(serv);
            LoginForm        form = new LoginForm(ctrl);

            Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(form);
        }
Ejemplo n.º 2
0
 public MainApp(ClientCtrl server)
 {
     this.server = server;
     InitializeComponent();
     concerts = new List <ConcertDTO>();
     try
     {
         concerts = server.getAllConcerts();
         dataGridView1.DataSource = concerts;
         server.updateEvent      += userUpdate;
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }
Ejemplo n.º 3
0
 public LoginForm(ClientCtrl ctrl)
 {
     InitializeComponent();
     server = ctrl;
 }
Ejemplo n.º 4
0
 public void setServer(ClientCtrl ctrl)
 {
     server = ctrl;
 }