Пример #1
0
        private void Lang_Click(object sender, RoutedEventArgs e)
        {
            MenuItem item = (MenuItem)sender;

            if (item != null)
            {
                International.SetCurrentLanguage(item.Name.Replace('_', '-'));
            }
            e.Handled = true;
        }
Пример #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            International.SetCurrentLanguage();
        }