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