private void SimpleFireButton_Click(object sender, EventArgs e)
        {
            if (InputFormRef.IsPleaseWaitDialog(this))
            {//2重割り込み禁止
                return;
            }

            //翻訳言語
            string from    = U.InnerSplit(Translate_from.Text, "=", 0);
            string to      = U.InnerSplit(Translate_to.Text, "=", 0);
            string fromrom = SimpleTranslateFromROMFilename.Text;
            string torom   = SimpleTranslateToROMFilename.Text;

            if (from == to)
            {
                return;
            }

            ToolTranslateROM trans = new ToolTranslateROM();

            trans.ApplyTranslatePatch(to);

            Undo.UndoData undodata = Program.Undo.NewUndoData("Import TransFile Simple");

            //翻訳データがある場合は適用する.
            string translateDataFilename = SimpleTranslateToTranslateDataFilename.Text;

            if (SIMPLE_OVERRAIDE_JPFONT.Checked)
            {
                trans.WipeJPClassReelFont(undodata);
                trans.WipeJPTitle(undodata);
                trans.WipeJPFont(this, undodata);
            }

            if (File.Exists(translateDataFilename))
            {
                trans.ImportAllText(this, translateDataFilename, undodata);
            }

            //それ以外のデータの翻訳
            {
                string writeTextFileName = Path.GetTempFileName();

                trans.ExportallText(this, writeTextFileName, from, to, fromrom, torom, false, false);
                trans.ImportAllText(this, writeTextFileName, undodata);

                trans.ImportFont(this, torom, true, FontAutoGenelateCheckBox.Font, undodata);

                File.Delete(writeTextFileName);
            }
            trans.BlackOut(undodata);
            Program.Undo.Push(undodata);

            R.ShowOK("完了");
            this.Close();
        }
        private void ImportFontButton_Click(object sender, EventArgs e)
        {
            if (InputFormRef.IsPleaseWaitDialog(this))
            {//2重割り込み禁止
                return;
            }

            Undo.UndoData undodata = Program.Undo.NewUndoData("ImportFont");

            ToolTranslateROM trans = new ToolTranslateROM();

            trans.ImportFont(this, this.FontROMTextBox.Text, FontAutoGenelateCheckBox.Checked, UseFontNameTextEdit.Font, undodata);
            trans.BlackOut(undodata);
            Program.Undo.Push(undodata);
        }
        private void ImportAllTextButton_Click(object sender, EventArgs e)
        {
            if (InputFormRef.IsPleaseWaitDialog(this))
            {//2重割り込み禁止
                return;
            }

            ToolTranslateROM trans = new ToolTranslateROM();

            trans.CheckTextImportPatch(true);


            Undo.UndoData undodata = Program.Undo.NewUndoData("Import Translate file");
            if (X_OVERRAIDE_JPFONT.Checked)
            {
                trans.WipeJPTitle(undodata);
                trans.WipeJPFont(this, undodata);
            }
            trans.ImportAllText(this, undodata);

            trans.BlackOut(undodata);
            Program.Undo.Push(undodata);
        }