Exemple #1
0
        private void mnu_changeCulture(object sender, EventArgs e)
        {
            string   curLanguageName = _resman.DesignerLanguageName;
            MenuItem m = (MenuItem)sender;

            _resman.DesignerLanguageName = (string)(m.Tag);
            OnLanguageChanged();
            if (string.CompareOrdinal(curLanguageName, _resman.DesignerLanguageName) != 0)
            {
                _resman.NotifyLanguageChange();
            }
        }
Exemple #2
0
 protected override void OnClosing(CancelEventArgs e)
 {
     if (string.CompareOrdinal(_curLanguageName, _resman.DesignerLanguageName) != 0)
     {
         _resman.NotifyLanguageChange();
     }
     if (_rootTreeNode != null)
     {
         if (_rootTreeNode.ResourceManager.Save())
         {
             this.DialogResult = DialogResult.OK;
         }
     }
     base.OnClosing(e);
 }