public MainFrm() { InitializeComponent(); _connected = Connected; _disconnected = Disconnected; _toRemoveList = new List <IDataHandler>(); _dataHandlers = new List <IDataHandler>(); Connection = new HConnection(); Connection.Connected += Connected; Connection.Disconnected += Disconnected; Connection.DataOutgoing += DataOutgoing; Connection.DataIncoming += DataIncoming; AboutPg = new AboutPage(this, AboutTab); ToolboxPg = new ToolboxPage(this, ToolboxTab); InjectionPg = new InjectionPage(this, InjectionTab); ExtensionsPg = new ExtensionsPage(this, ExtensionsTab); ConnectionPg = new ConnectionPage(this, ConnectionTab); PacketLoggerUI = new PacketLoggerFrm(this); AttachDataHandlers(); }
public MainFrm() { InitializeComponent(); _connected = Connected; _disconnected = Disconnected; _haltables = new List <IHaltable>(); _receivers = new List <IReceiver>(); GameData = new HGameData(); Connection = new HConnection(); Connection.Connected += Connected; Connection.Disconnected += Disconnected; Connection.DataOutgoing += DataOutgoing; Connection.DataIncoming += DataIncoming; ConnectionPg = new ConnectionPage(this, ConnectionTab); InjectionPg = new InjectionPage(this, InjectionTab); ToolboxPg = new ToolboxPage(this, ToolboxTab); ModulesPg = new ModulesPage(this, ModulesTab); AboutPg = new AboutPage(this, AboutTab); PacketLoggerUI = new PacketLoggerFrm(this); _haltables.Add(ModulesPg); _haltables.Add(PacketLoggerUI); _haltables.Add(InjectionPg.FiltersPg); _haltables.Add(InjectionPg.SchedulerPg); _receivers.Add(ModulesPg); _receivers.Add(InjectionPg.FiltersPg); _receivers.Add(ConnectionPg.HandshakeMngr); _receivers.Add(PacketLoggerUI); }
public MainFrm() { InitializeComponent(); _connected = Connected; _disconnected = Disconnected; _haltables = new List <IHaltable>(); _receivers = new List <IReceiver>(); _actions = new Dictionary <Keys, Action>(); _avatarCache = new Dictionary <string, Bitmap>(); _profileCache = new Dictionary <HHotel, Dictionary <string, HProfile> >(); GameData = new HGameData(); Connection = new HConnection(); Connection.Connected += Connected; Connection.DataOutgoing += HandleData; Connection.DataIncoming += HandleData; Connection.Disconnected += Disconnected; Hook = new KeyboardHook(); Hook.HotkeyActivated += Hook_HotkeyActivated; InjectionPg = new InjectionPage(this, InjectionTab); ToolboxPg = new ToolboxPage(this, ToolboxTab); ModulesPg = new ModulesPage(this, ModulesTab); AboutPg = new AboutPage(this, AboutTab); PacketLoggerUI = new PacketLoggerFrm(this); LoadHaltables(); LoadReceivers(); AssignMasters(); }
public MainFrm() { InitializeComponent(); _connected = Connected; _disconnected = Disconnected; _haltables = new List <IHaltable>(); _receivers = new List <IReceiver>(); _actions = new Dictionary <Keys, Action>(); _avatarCache = new Dictionary <string, Bitmap>(); _userCache = new Dictionary <HHotel, Dictionary <string, HUser> >(); In = new Incoming(); Out = new Outgoing(); GameData = new HGameData(); Connection = new HConnection(); Connection.Connected += Connected; Connection.DataOutgoing += HandleData; Connection.DataIncoming += HandleData; Connection.Disconnected += Disconnected; Hook = new KeyboardHook(); Hook.HotkeyActivated += Hook_HotkeyActivated; ConnectionPg = new ConnectionPage(this, ConnectionTab); InjectionPg = new InjectionPage(this, InjectionTab); ToolboxPg = new ToolboxPage(this, ToolboxTab); ModulesPg = new ModulesPage(this, ModulesTab); AboutPg = new AboutPage(this, AboutTab); PacketLoggerUI = new PacketLoggerFrm(this); _haltables.Add(ModulesPg); _haltables.Add(PacketLoggerUI); _haltables.Add(InjectionPg.FiltersPg); _haltables.Add(InjectionPg.SchedulerPg); _receivers.Add(ModulesPg); _receivers.Add(InjectionPg.FiltersPg); _receivers.Add(ConnectionPg); _receivers.Add(PacketLoggerUI); Connection.ListenPort = (int)Program.Settings["ConnectionListenPort"]; }