Ejemplo n.º 1
0
 public MainForm()
 {
     InitializeComponent();
     client = new ClientService();
     fileAttachmentService = new FileAttachmentService();
     chat     = client.GetGlobalChat();
     isForAll = true;
     client.Subscribe(UpdateChatInvoker);
     fileAttachmentService.SubscribeHandler(UpdateFilesList);
 }
Ejemplo n.º 2
0
        private void UpdateChat()
        {
            lbChat.Items.Clear();

            if (isForAll)
            {
                chat = client.GetGlobalChat();
            }
            else
            {
                try
                {
                    chat = client.Conversations[(client.UserID, client.ReceiverID)];