Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            GameClient[] clients = GameClientFactory.GetActiveGameClients();
            if (clients.Length > 0)
            {
                game             = clients[0];
                statuslabel.Text = "attached";
                enablestuff(true);

                game.Initialized += Game_Initialized;
            }
            else
            {
                statuslabel.Text = "failed to attach";
            }
        }