예제 #1
0
 public static void HandleDeleteRegistryKey(xServer.Core.Packets.ClientPackets.GetDeleteRegistryKeyResponse 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.RemoveKeyFromTree(packet.ParentPath, packet.KeyName);
             }
             else
             {
                 client.Value.FrmRe.ShowErrorMessage(packet.ErrorMsg);
             }
         }
     }
     catch { }
 }
예제 #2
0
 public static void HandleDeleteRegistryKey(xServer.Core.Packets.ClientPackets.GetDeleteRegistryKeyResponse 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("Deleted Registry Key at " + packet.ParentPath + packet.KeyName, client.Value.PCName);
                 client.Value.FrmRe.RemoveKey(packet.ParentPath, packet.KeyName);
             }
             else
             {
                 QuasarServer.writeLog("Error Deleting Registry Key at " + packet.ParentPath + packet.KeyName + " (" + packet.ErrorMsg + ")", client.Value.PCName);
                 client.Value.FrmRe.ShowErrorMessage(packet.ErrorMsg);
             }
         }
     }
     catch { }
 }