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