Пример #1
0
 public MainWindow()
 {
     InitializeComponent();
     vm = new MainView(this);
     this.DataContext = vm;
     //WindowState = WindowState.Maximized;
     Loaded += MainWindow_Loaded;
     AppGlobal.SetLanguage((LangEnum)Convert.ToInt32(Common.SetConfig("Lang")));
     base.RefreshMultiLanguage();
     base.InitMultiTraverseVisualTree();
 }
Пример #2
0
        private void combobox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var item = sender as ComboBox;

            if (item != null)
            {
                var selected = item.SelectedItem as cmbox;
                if (selected != null)
                {
                    AppGlobal.SetLanguage((LangEnum)Convert.ToInt32(selected.Id));
                    base.InitMultiTraverseVisualTree();
                }
            }
        }