示例#1
0
        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();
                }
            }
        }
示例#2
0
        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();
                    }
                }
            }
        }
示例#3
0
 private void btnHinh2_Click(object sender, EventArgs e)
 {
     _hinh = 2;
     PlayCapFactory.Capture();
     btnHinh2.Enabled = false;
 }