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(); }
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(); } } }