Пример #1
0
 public static void HandleCreateRegistryValue(xServer.Core.Packets.ClientPackets.GetCreateRegistryValueResponse 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.AddValueToList(packet.KeyPath, packet.Value);
             }
             else
             {
                 client.Value.FrmRe.ShowErrorMessage(packet.ErrorMsg);
             }
         }
     }
     catch { }
 }
Пример #2
0
 public static void HandleCreateRegistryValue(xServer.Core.Packets.ClientPackets.GetCreateRegistryValueResponse 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)
             {
                 QuasarServer.writeLog("Created Registry Key Value " + packet.Value, client.Value.PCName);
                 client.Value.FrmRe.CreateValue(packet.KeyPath, packet.Value);
             }
             else
             {
                 QuasarServer.writeLog("Could not create Registry Value " + packet.Value, client.Value.PCName);
                 client.Value.FrmRe.ShowErrorMessage(packet.ErrorMsg);
             }
         }
     }
     catch { }
 }