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