private void btOffBot_Click(object sender, EventArgs e)
 {
     if (lvBots.SelectedItems.Count == 1)
     {
         ClientBot bot = (ClientBot)lvBots.SelectedItems[0].Tag;
         bot.OffBot(1, 0);
     }
 }
Exemple #2
0
        void OffBot(Socket sc, ClientBot bot)
        {
            int param, time;

            if (GetInt32(sc, out param))
            {
                if (GetInt32(sc, out time))
                {
                    bot.OffBot(param, time);
                }
            }
        }