private void frm_VDCMain_Load(object sender, EventArgs e) { //Initialization network SDK //disConnect = new fDisConnect(DisConnectEvent); //if (VDCClient.VDCInit(disConnect, IntPtr.Zero)==true) //{ //} //else //{ // MessageBox.Show("Network SDK initialization failed!", pMsgTitle); // return; //} #region << Image process >> //Start button btnStartPlay.Enabled = false; //Pause button btnPause.Enabled = false; btnPause.Tag = "1"; btnPause.Text = "Pause play"; //Stop button btnStop.Enabled = false; #endregion #region << Initialize decode card device >> if (VDC.VDCInitDecDevice(ref ChannelCount) == 0) { //MessageBox.Show("Initialize decoder card successfully!", "Prompt"); blnInitDevDevice = true; } else { //MessageBox.Show("Failed to initialize decoder card!", "Prompt"); blnInitDevDevice = false; return; } #endregion #region << Initialization DirectDraw >> if (VDC.VDCInitDirectDraw(picMain.Handle, (uint)Color.Blue.ToArgb()) == 0) { //MessageBox.Show("Initialization DirectDraw successfully!", "Prompt"); blnInitDraw = true; } else { //MessageBox.Show("Initialization DirectDraw failed!", "Prompt"); blnInitDraw = false; return; } #endregion }
private void checkBoxVDC2_CheckedChanged(object sender, EventArgs e) { vdc = checkBoxVDC2.Checked ? emu.VDC2 : emu.VDC1; UpdateValues(); }
private void CheckBoxVDC2_CheckedChanged(object sender, EventArgs e) { _vdc = checkBoxVDC2.Checked ? Emu.VDC2 : Emu.VDC1; GeneralUpdate(); }