Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void languageSelectionDialog1_Save(object sender, ModFormControls.LanguageSelectionDialogBoxSaveEventArgs e)
 {
     try
     {
         entry.ChangeLog.Add(new ModHistoryChangeLog(), e.Language);
         comboBoxLanguages.Items.Add(e.Language);
         comboBoxLanguages.SelectedIndex = comboBoxLanguages.Items.Count - 1;
     }
     catch (ArgumentException ex)
     {
         MessageBox.Show(this, "You already have an entry for this language", "Can't add language", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
         Console.WriteLine(ex.ToString());
     }
 }
Пример #2
0
 private void languageSelectionDialog1_Save(object sender, ModFormControls.LanguageSelectionDialogBoxSaveEventArgs e)
 {
     textLang.Add("", e.Language);
     UpdateDisplay();
     this.Parent.Select();
 }