Esempio n. 1
0
        private void btn2_Click(object sender, EventArgs e)
        {
            switch (type)
            {
            case "ban":
                if (CheckTime())
                {
                    Ban b = new Ban(name);
                    b.ForTimeBanHendler(Convert.ToInt32(tb.Text.ToString()), client.GetStream(), request);
                    MessageBox.Show(name + "has been banned for " + tb.Text.ToString() + "seconds");
                    this.Close();
                }
                break;

            case "unban":

                this.Close();
                break;

            case "createroom":
                this.Close();
                break;
            }
        }