示例#1
0
        /// <summary>
        /// This function is called when the user clicks on the save-button in the settings menu.
        /// This function saves the settings in the Settings.Default Object.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_save_Click(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.Save();

            GUIViewModel t = new GUIViewModel();

            foreach (Window w in App.Current.Windows)
            {
                w.DataContext = t;
            }

            ((App)App.Current).UpdateNotifyLanguage();
        }
        /// <summary>
        /// This function is called when the user clicks on the save-button in the settings menu.
        /// This function saves the settings in the Settings.Default Object.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_save_Click(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.Save();

                GUIViewModel t = new GUIViewModel();

                foreach (Window w in App.Current.Windows)
                {
                    w.DataContext = t;
                }

                ((App)App.Current).UpdateNotifyLanguage();
        }