コード例 #1
0
ファイル: LogInView.cs プロジェクト: magraul/education
 public LogInView(TeledonClientController ctrl)
 {
     InitializeComponent();
     this.ctrl     = ctrl;
     textBox1.Font = new Font(textBox1.Font.FontFamily, 12);
     textBox2.Font = new Font(textBox2.Font.FontFamily, 12);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: magraul/education
        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);
        }
コード例 #3
0
ファイル: TeledonView.cs プロジェクト: magraul/education
        public TeledonView(TeledonClientController ctrl)
        {
            InitializeComponent();
            this.ctrl = ctrl;
            donatori  = ctrl.getNumeDonators();
            cazuri    = ctrl.getCazuriDTO();

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