/// <summary>
 /// The send packet.
 /// </summary>
 /// <param name="packet">
 /// The packet.
 /// </param>
 /// <param name="net">
 /// The net.
 /// </param>
 private void SendPacket(Packet packet, Networking network)
 {
     network.SendMessage(packet);
     this.Dispatcher.BeginInvoke(
         System.Windows.Threading.DispatcherPriority.Normal,
         new UpdateUserInterfaceDelegate(this.UpdateUserInterface),
         packet);
 }