Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        virtual public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            MainPage    = new MainPage(app, platform);
            ModulesPage = new ModulesPage(app, platform);
        }
Exemplo n.º 4
0
        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"];
        }