Ejemplo n.º 1
0
 public static void HandleLoadRegistryKey(xServer.Core.Packets.ClientPackets.GetRegistryKeysResponse packet, Client client)
 {
     try
     {
         // Make sure that the client is in the correct state to handle the packet appropriately.
         if (client != null && client.Value.FrmRe != null && !client.Value.FrmRe.IsDisposed || !client.Value.FrmRe.Disposing)
         {
             if (!packet.IsError)
             {
                 client.Value.FrmRe.AddKeysToTree(packet.RootKey, packet.Matches);
             }
             else
             {
                 client.Value.FrmRe.ShowErrorMessage(packet.ErrorMsg);
                 //If root keys failed to load then close the form
                 if (packet.RootKey == null)
                 {
                     //Invoke a closing of the form
                     client.Value.FrmRe.PerformClose();
                 }
             }
         }
     }
     catch { }
 }
Ejemplo n.º 2
0
 public static void HandleLoadRegistryKey(xServer.Core.Packets.ClientPackets.GetRegistryKeysResponse packet, Client client)
 {
     try
     {
         // Make sure that we can use the packet.
         if (packet.Matches != null && packet.Matches.Length > 0)
         {
             // Make sure that the client is in the correct state to handle the packet appropriately.
             if (client != null && client.Value.FrmRe != null && !client.Value.FrmRe.IsDisposed || !client.Value.FrmRe.Disposing)
             {
                 client.Value.FrmRe.AddKeysToTree(packet.RootKey, packet.Matches);
             }
         }
     }
     catch
     { }
 }