private void SaveAsKoreaToolStripMenuItem_Click(object sender, EventArgs e) { this.saveFileDialog.FileName = m_strFileName; if (this.saveFileDialog.ShowDialog() == DialogResult.OK) { this.dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit); STBData.SaveSTBDataKorea(ref m_STBData, this.saveFileDialog.FileName); } }
private void SaveToolStripMenuItem_Click(object sender, EventArgs e) { this.dataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit); if (m_SaveLanguage == SaveLanguage.Korea) { STBData.SaveSTBDataKorea(ref m_STBData, m_STBData.FileName); } else if (m_SaveLanguage == SaveLanguage.China) { STBData.SaveSTBDataChina(ref m_STBData, m_STBData.FileName); } }