private void SaveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);

            SaveSTLData();

            STLData.SaveSTLData(m_STLData, m_STLData.FileName);
        }
        private void button4_Click(object sender, EventArgs e)
        {
            if (STLData.LoadSTLData(ref m_STLDataFile1, this.textBoxFile1.Text) == false)
            {
                MessageBox.Show(this.textBoxFile1.Text + "文件读取错误");
                return;
            }

            if (STLData.LoadSTLData(ref m_STLDataFile2, this.textBoxFile2.Text) == false)
            {
                MessageBox.Show(this.textBoxFile2.Text + "文件读取错误");
                return;
            }

            STLData.Language l_LanguageKeep1 = new STLData.Language();
            if (this.checkBox1.Checked == true)
            {
                l_LanguageKeep1 |= STLData.Language.Korean;
            }

            if (this.checkBox2.Checked == true)
            {
                l_LanguageKeep1 |= STLData.Language.English;
            }

            if (this.checkBox3.Checked == true)
            {
                l_LanguageKeep1 |= STLData.Language.Japanese;
            }

            if (this.checkBox4.Checked == true)
            {
                l_LanguageKeep1 |= STLData.Language.ChinaTaiwan;
            }

            if (this.checkBox5.Checked == true)
            {
                l_LanguageKeep1 |= STLData.Language.China;
            }

            if (STLData.CoalitionSTLData(ref m_STLDataSave, m_STLDataFile1, l_LanguageKeep1, m_STLDataFile2) == false)
            {
                MessageBox.Show("文件合并检测时产生错误: 可能文件不匹配!");
                return;
            }

            if (STLData.SaveSTLData(m_STLDataSave, this.textBoxSaveFile.Text) == false)
            {
                MessageBox.Show(this.textBoxSaveFile.Text + "文件保存错误");
                return;
            }

            MessageBox.Show("文件合并成功");
        }
        private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.saveFileDialog.FileName = m_strFileName;
            if (this.saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                this.dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);

                SaveSTLData();

                STLData.SaveSTLData(m_STLData, this.saveFileDialog.FileName);
            }
        }
        private void LoadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.openFileDialog.ShowDialog() == DialogResult.OK)
            {
                this.dataGridView.SuspendLayout();

                STLData.LoadSTLData(ref m_STLData, this.openFileDialog.FileName);
                m_strFileName = this.openFileDialog.FileName;

                this.Text = "Demo R.O.S.E.STL.Editor.Form" + "( " + this.openFileDialog.FileName + " )" + " - " + m_STLData.Length.ToString();

                this.dataGridView.DataSource            = m_STLData.DataTable;
                this.dataGridView.Columns[0].ReadOnly   = true;
                this.dataGridView.Columns[1].ReadOnly   = true;
                this.dataGridView.AllowUserToAddRows    = false;
                this.dataGridView.AllowUserToDeleteRows = false;

                this.dataGridView.ResumeLayout();

                this.CloseToolStripMenuItem.Enabled       = true;
                this.SaveToolStripMenuItem.Enabled        = true;
                this.SaveAsToolStripMenuItem.Enabled      = true;
                this.LanguageToolStripMenuItem.Enabled    = true;
                this.CommentToolStripMenuItem.Enabled     = true;
                this.OtherToolStripMenuItem.Enabled       = true;
                this.CommentToolStripMenuItem.Checked     = true;
                this.OtherToolStripMenuItem.Checked       = true;
                this.KoreanToolStripMenuItem.Checked      = true;
                this.EnglishToolStripMenuItem.Checked     = true;
                this.JapaneseToolStripMenuItem.Checked    = true;
                this.ChinaTaiwanToolStripMenuItem.Checked = true;
                this.ChinaToolStripMenuItem.Checked       = true;
                this.填充中文空字符串ToolStripMenuItem.Enabled    = true;

                // 为了方便修改
                this.KoreanToolStripMenuItem.Checked   = false;
                this.JapaneseToolStripMenuItem.Checked = false;
                this.OtherToolStripMenuItem.Checked    = false;

                CheckedDataTable();
            }
        }