Esempio n. 1
0
 public LogInView(TeledonClientController ctrl)
 {
     InitializeComponent();
     this.ctrl     = ctrl;
     textBox1.Font = new Font(textBox1.Font.FontFamily, 12);
     textBox2.Font = new Font(textBox2.Font.FontFamily, 12);
 }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ITeledonServices        server = new TeledonServerProxy("127.0.0.1", 55555);
            TeledonClientController ctrl   = new TeledonClientController(server);
            LogInView logIn = new LogInView(ctrl);

            Application.Run(logIn);
        }
Esempio n. 3
0
        public TeledonView(TeledonClientController ctrl)
        {
            InitializeComponent();
            this.ctrl = ctrl;
            donatori  = ctrl.getNumeDonators();
            cazuri    = ctrl.getCazuriDTO();

            sincronizeazTabel(cazuri);
            listBox1.DataSource = donatori;
            ctrl.updateEvent   += userUpdate;
        }