private void blockIPToolStripMenuItem_Click(object sender, EventArgs e) { if (SelectedUserId == 0) { return; } DialogResult dr = MessageForm.Confirm(this.ParentForm, MsgE.ConfirmBlockIp, SelectedUserName); if (dr == DialogResult.Yes) { SocketClient.BlockIP(SelectedUserId); } }