private void FileReceived(int id, string path)
 {
     Model.Client client = _clientVM.ClientList.First(x => x.Id == id);
     client.Read("File/Folder has been received and stored at path " + path + ".");
 }
 private void MessageSubmitted(int id, bool close)
 {
     Model.Client client = _clientVM.ClientList.First(x => x.Id == id);
     client.Read("Message submitted to client.");
 }
        //*****Begin Events************///


        private void MessageReceived(int id, string msg)
        {
            Model.Client client = _clientVM.ClientList.First(x => x.Id == id);
            client.Read("MESSAGE" + ": " + msg);
        }
 private void ClientDisconnected(int id)
 {
     Model.Client client = _clientVM.ClientList.First(x => x.Id == id);
     client.Connected = false;
     client.Read("Client has disconnected from the server.");
 }
Example #5
0
        //*****Begin Events************///

        private void CustomHeaderReceived(int id, string msg, string header)
        {
            Model.Client client = _clientVM.ClientList.First(x => x.Id == id);
            client.Read(header + ": " + msg);
        }
Example #6
0
 private void MessageFailed(int id, byte[] messageData, string exceptionMessage)
 {
     Model.Client client = _clientVM.ClientList.First(x => x.Id == id);
     client.Read("Message has failed to send." + Environment.NewLine + exceptionMessage);
 }