private void ConfirmBtn_BtnClick(object sender, EventArgs e)
        {
            isNormalClose = true;

            Common.RepeatMethod = FunctionSelectCombox.SelectedValue;
            IniFileHelper.WriteValue(Environment.CurrentDirectory + "\\GameListInfo.ini", "Game" + Common.GameID,
                                     "RepeatMethod", FunctionSelectCombox.SelectedValue);//保存去重方法,之后可能会用到
            Common.TransMode = 1;
            Common.TextractorHandle.SetSettingsOutPutform(null);
            TransLangSettingForm tlsf = new TransLangSettingForm();

            tlsf.Show();
            this.Close();
        }
예제 #2
0
        private void OCRConfirmBtn_BtnClick(object sender, EventArgs e)
        {
            Common.OCRdelay = int.Parse(delaySetBox.InputText);
            if (Common.OCRdelay <= 0)
            {
                MessageBox.Show("延时不能小于等于0,将自动设置为1000", "提示");
                Common.OCRdelay = 1000;
            }
            Common.TransMode      = 2;
            Common.OCRWinHwnd     = (IntPtr)SelectedHwnd;
            Common.OCRsrcLangCode = srcLangCombox.SelectedValue;

            TransLangSettingForm tlsf = new TransLangSettingForm();

            tlsf.Show();
            this.Close();
        }
        private void ConfirmBtn_BtnClick(object sender, EventArgs e)
        {
            isNormalClose = true;

            Common.RepeatMethod = FunctionSelectCombox.SelectedValue;

            SQLiteHelper sqliteH = new SQLiteHelper(Environment.CurrentDirectory + "\\settings\\GameList.sqlite");

            sqliteH.ExecuteSql(string.Format("UPDATE gamelist SET RepeatMethod = '{0}' WHERE gameID = {1};", FunctionSelectCombox.SelectedValue, Common.GameID));

            Common.TransMode = 1;
            Common.TextractorHandle.SetSettingsOutPutform(null);
            TransLangSettingForm tlsf = new TransLangSettingForm();

            tlsf.Show();
            this.Close();
        }
예제 #4
0
        private void OCRConfirmBtn_BtnClick(object sender, EventArgs e)
        {
            Common.OCRdelay = int.Parse(delaySetBox.InputText);
            if (Common.OCRdelay <= 0)
            {
                MessageBox.Show("延时不能小于等于0,将自动设置为1000", "提示");
                Common.OCRdelay = 1000;
            }
            Common.TransMode      = 2;
            Common.OCRWinHwnd     = (IntPtr)SelectedHwnd;
            Common.OCRsrcLangCode = srcLangCombox.SelectedValue;

            if (srcLangCombox.SelectedValue == "JAP")
            {
                TesseractOCR.srcLangCode = "jpn";
            }
            else if (srcLangCombox.SelectedValue == "ENG")
            {
                TesseractOCR.srcLangCode = "eng";
            }

            if (PreHandleCheckBox.Checked == true)
            {
                TesseractOCR.thresh = (int)threshTrackBar.Value;
            }
            else
            {
                TesseractOCR.thresh = -1;
            }


            TransLangSettingForm tlsf = new TransLangSettingForm();

            tlsf.Show();
            this.Close();
        }