/// /// Deserializes and outputs the received object /// public void Done(DataPackage data, IAsyncResult result) { DataPackage send = data.DeSerialize(); //int pID = BitConverter.ToInt32(send.buffer, 0); byte t = send.content; Console.WriteLine(t.ToString()); updateForm = Handlers.UpdateFormHandler.GetInstance(); updateForm.Process(t); allDone.Set(); //signals thread to continue so it sends another message }