public SettingsP(MainWindow mw) { InitializeComponent(); LocUtil.LanguageChanged += LocUtil_LanguageChanged; LocUtil.SwitchLanguage(this, App.Language.ToString()); var general_button = new Button() { Content = (String)Resources.MergedDictionaries[0]["general_menu"], Style = (Style)Application.Current.FindResource("MaterialDesignRaisedButton") }; general_button.Click += General_button_Click; this.mw = mw; stp1.Children.Add(general_button); ar = new List <List <int> >(stp1.Children.Count); ar2 = new List <List <object> >(stp1.Children.Count); General_button_Click(null, null); }
private void LocUtil_LanguageChanged(object sender, LocUtil.LanguageChangedEventArgs e) { LocUtil.SwitchLanguage(this, e.infivechars); }