Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            logView      = new LogView();
            logView.Dock = DockStyle.Fill;
            logPanel.Controls.Add(logView);
            logView.Log("Application running", LogView.LogType.Information);

            AutobotDisconnected();
            Form form = this;

            HIDDLLInterface.ConnectToHID(ref form);

            clientDataMany = new ClientData[] { };

            CreateDropDownButton();
            CreateDropDownButtonCombinations();

            trayToolStripMenuItem.Checked             = Settings.Default.Settings_Tray;
            topToolStripMenuItem.Checked              = Settings.Default.Settings_Top;
            lastToolStripMenuItem.Checked             = Settings.Default.Settings_Last;
            showReceivedDataToolStripMenuItem.Checked = Settings.Default.Settings_Show_Keys;
            this.TopMost = Settings.Default.Settings_Top;

            tcp = new TCPThread();
            tcp.OnChangeStatus       += Tcp_OnChangeStatus;
            tcp.OnTriggerServerAction = ClientAction;

            logView.Log("IP : " + tcp.LocalAddress, LogView.LogType.Information);
            logView.Log("Port : " + tcp.Port, LogView.LogType.Information);
            logView.Last = Settings.Default.Settings_Last;

            Bot.Instance.OnPingTrigger += Instance_OnPingTrigger;

            tcp.Run();

            botQueue = new BotQueue();
            botQueue.OnErrorOccured += BotQueue_OnErrorOccured;
        }