Ejemplo n.º 1
0
 public SwimLogin(SwimClientController ctrl)
 {
     InitializeComponent();
     this.ctrl             = ctrl;
     password.Text         = "";
     password.PasswordChar = '*';
     //this.mainSwimForm = mainSwimForm;
 }
Ejemplo n.º 2
0
 public SwimMainForm(SwimClientController sc)
 {
     this.ctrl = sc;
     InitializeComponent();
     InitializeDataGridColumn();
     participants = sc.findAllPart();
     dataGvParticipant.DataSource = participants;
     events = sc.findAllEvents();
     dataGvEvent.DataSource = events;
     ctrl.updateEvent      += userUpdate;
 }
Ejemplo n.º 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //IChatServer server=new ChatServerMock();
            ISwimServer          server = new SwimServerProxy("127.0.0.1", 55555);
            SwimClientController ctrl   = new SwimClientController(server);
            SwimLogin            win    = new SwimLogin(ctrl);

            Application.Run(win);
        }