private void btnConfirm_Click(object sender, EventArgs e) { int returnValue = DMSDK.DM_SetEncodingInfo_Minor(tempConnect, Minor_BitrateType, Minor_Resolution, Minor_Bitrate, 25); returnValue = DMSDK.DM_SetEncodingInfo_Major(tempConnect, Major_BitrateType, Major_Resolution, Major_Bitrate, 25); if (returnValue > 0) { MessageBox.Show("设置成功!"); } else { MessageBox.Show("设置失败!请重试"); } MessageBox.Show("设置完成!"); }