コード例 #1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (toolStripComboBox1.SelectedIndex != -1)
     {
         Transletors.saveToFile();
     }
     ErrorWord.close();
 }
コード例 #2
0
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            flag = false;
            Configuration config = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath);

            config.AppSettings.Settings["patch"].Value = FilelistBox.SelectedItem.ToString();
            config.Save();
            translators.closing();
            ErrorWord.close();
            TrainingWords.SaveBadKmow();
        }