private void dlgAddKetQuaSieuAm_FormClosing(object sender, FormClosingEventArgs e) { if (this.DialogResult == System.Windows.Forms.DialogResult.OK) { if (CheckInfo()) { SaveInfoAsThread(); if (!Global.TVHomeConfig.SuDungSieuAm) { PlayCapFactory.KillPlayCapProcess(); } else { _watchingFolder.StopMoritoring(); } } else { e.Cancel = true; } } else { if (!Global.TVHomeConfig.SuDungSieuAm) { PlayCapFactory.KillPlayCapProcess(); } else { _watchingFolder.StopMoritoring(); } } }
private void dlgAddKetQuaSoiCTC_FormClosing(object sender, FormClosingEventArgs e) { if (this.DialogResult == System.Windows.Forms.DialogResult.OK) { if (CheckInfo()) { SaveInfoAsThread(); if (!Global.TVHomeConfig.SuDungSoiCTC) { PlayCapFactory.KillPlayCapProcess(); } else { _watchingFolder.StopMoritoring(); } } else { e.Cancel = true; } } else { if (_allowEdit && MsgBox.Question(this.Text, "Bạn có muốn lưu thông tin khám CTC ?") == System.Windows.Forms.DialogResult.Yes) { if (CheckInfo()) { this.DialogResult = System.Windows.Forms.DialogResult.OK; SaveInfoAsThread(); if (!Global.TVHomeConfig.SuDungSoiCTC) { PlayCapFactory.KillPlayCapProcess(); } else { _watchingFolder.StopMoritoring(); } } else { e.Cancel = true; } } else { if (!Global.TVHomeConfig.SuDungSoiCTC) { PlayCapFactory.KillPlayCapProcess(); } else { _watchingFolder.StopMoritoring(); } } } }
private void btnHinh2_Click(object sender, EventArgs e) { _hinh = 2; PlayCapFactory.Capture(); btnHinh2.Enabled = false; }