Esempio n. 1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     if (CheckSave())
     {
         NewLanguageDialog newlanguage = new NewLanguageDialog(_languageList);
         if (newlanguage.ShowDialog() == DialogResult.OK)
         {
             _languageList.Add(newlanguage.Selected);
             DrawLanguageList(newlanguage.Selected.Name);
             _targetStrings = new StringFile();
             _targetStrings._languageName = newlanguage.Selected.Name;
             _targetStrings._sections     = new List <StringSection>();
             cbLanguages_SelectedIndexChanged(this, new EventArgs());
         }
     }
 }
Esempio n. 2
0
 private void btnNew_Click(object sender, EventArgs e)
 {
   if (CheckSave())
   {
     NewLanguageDialog newlanguage = new NewLanguageDialog(_languageList);
     if (newlanguage.ShowDialog() == DialogResult.OK)
     {
       _languageList.Add(newlanguage.Selected);
       DrawLanguageList(newlanguage.Selected.Name);
       _targetStrings = new StringFile();
       _targetStrings._languageName = newlanguage.Selected.Name;
       _targetStrings._sections = new List<StringSection>();
       cbLanguages_SelectedIndexChanged(this, new EventArgs());
     }
   }
 }