Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     client = new ClientService();
     client.Subscribe(UpdateGUI);
     lbUsers.SelectedIndexChanged += lbUsers_SelectedIndexChanged;
 }
Ejemplo n.º 2
0
 public MainForm()
 {
     InitializeComponent();
     client = new ClientService();
     fileAttachmentService = new FileAttachmentService();
     chat     = client.GetGlobalChat();
     isForAll = true;
     client.Subscribe(UpdateChatInvoker);
     fileAttachmentService.SubscribeHandler(UpdateFilesList);
 }