private void btn_ban_Click(object sender, EventArgs e) { if (tb_cpukey.Text != "" && rtb_reason.Text != "" && tb_name.Text != "") { if (tb_cpukey.Text.Count() == 32) { cm.GetConsole(ref ce, tb_cpukey.Text); ce.ip = IPAddress.Parse("0.0.0.0"); cm.AddBannedConsole(tb_name.Text, tb_cpukey.Text, rtb_reason.Text); DialogResult = System.Windows.Forms.DialogResult.OK; } } }