private void displayDeviceIdUpDown_Leave(object sender, EventArgs e) { workplace.DisplayDeviceId = (byte)displayDeviceIdUpDown.Value; }