Files
2026-08-27 11:23:13 -06:00

45 lines
1.3 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Server.Handlers.HandleHost
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
using Raton.Forms.ClientForms.Misc;
using Server.Connection;
using Stuff;
using System;
using System.Windows.Forms;
#nullable disable
namespace Server.Handlers;
internal class HandleHost
{
public HandleHost(SillyClient client, Unpack unpack)
{
ratonHosts ratonTelegram = (ratonHosts) Application.OpenForms["Host | Client ID: " + unpack.GetAsString("UID")];
if (ratonTelegram == null)
return;
try
{
string content = unpack.GetAsString("Content");
if (ratonTelegram.InvokeRequired)
ratonTelegram.Invoke((Delegate) (() =>
{
if (string.IsNullOrWhiteSpace(content))
ratonTelegram.textBox1.Text = "Nothing to see here...";
else
ratonTelegram.textBox1.Text = content;
}));
else if (string.IsNullOrWhiteSpace(content))
ratonTelegram.textBox1.Text = "Nothing to see here...";
else
ratonTelegram.textBox1.Text = content;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}