Ejemplo n.º 1
0
        /// <summary>
        /// 重新分析
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridSearchResult_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex != 6 || this.gridSearchResult[e.ColumnIndex, e.RowIndex].Value == null)
            {
                return;
            }

            // 打开新的窗口
            DataGridViewCellCollection lineCollection = this.gridSearchResult.Rows[e.RowIndex].Cells;
            SingleFileResult           reFenxi        = new SingleFileResult(
                lineCollection[0].Value.ToString(),
                Convert.ToInt32(lineCollection[5].Value),
                lineCollection[2].Value.ToString(),
                lineCollection[3].Value.ToString());

            reFenxi.Show();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 查看已经保存的结果
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnLook_Click(object sender, EventArgs e)
        {
            SingleFileResult reFenxi = new SingleFileResult();

            reFenxi.Show();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 文本编辑菜单事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void txtEditorMenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            this.txtEditorMenu.Visible = false;
            string strFolder = string.Empty;

            switch (e.ClickedItem.Name)
            {
            case "btnTxtSearch":
                Fenxi fenxiForm = new Fenxi();
                fenxiForm.Show(this);
                break;

            case "btnTxtView":
                SingleFileResult reFenxi = new SingleFileResult();
                reFenxi.Show();
                break;

            case "btnBio0Tool":
                //string strFolder = @"E:\My\Hanhua\testFile\Biohazard_0\Cn";
                strFolder = @"D:\game\iso\wii\生化危机0汉化\Wii版";
                //string strFolder = @"D:\game\iso\wii\生化危机0汉化\Ngc版\A\root";
                Bio0TextEditor bio0MoveEditor = new Bio0TextEditor(strFolder);
                bio0MoveEditor.Show();
                break;

            case "btnBio1Tool":
                //string strFolder = @"E:\游戏汉化\NgcBio1\IsoA\root_cn";
                strFolder = @"E:\My\Hanhua\testFile\bio1Text";
                Bio1TextEditor bio1TextEditor = new Bio1TextEditor(strFolder);
                bio1TextEditor.Show();
                break;

            case "btnBio2Tool":
                Bio2TextEditor bio2TextEdit = new Bio2TextEditor();
                bio2TextEdit.Show();
                break;

            case "btnBio3Tool":
                Bio3TextEditor bio3TextEdit = new Bio3TextEditor();
                bio3TextEdit.Show();
                break;

            case "btnBioCvTool":
                BioCvTextEditor bioCvTextEditor = new BioCvTextEditor();
                bioCvTextEditor.Show();
                break;

            case "btnViewtifulTool":
                ViewtifulJoeTextEditor viewtifulTool = new ViewtifulJoeTextEditor();
                viewtifulTool.Show();
                break;

            case "btnTos":
                TalesOfSymphoniaTextEditor tosTool = new TalesOfSymphoniaTextEditor();
                tosTool.Show();
                break;

            case "btnChkCnChar":
                this.baseFile = Util.SetOpenDailog("翻译文件(*.xlsx)|*.xlsx", string.Empty);
                if (string.IsNullOrEmpty(this.baseFile))
                {
                    return;
                }
                this.Do(this.CheckCnCharCount, new object[] { this.Text });
                break;
            }
        }