Exemple #1
0
        private void mnuPreferencesOnClick(object sender, EventArgs e)
        {
            DelegatesPool dp = DelegatesPool.Instance();

            if (dp.StopPlaying != null && dp.DeactivateKeyboardHandler != null)
            {
                dp.StopPlaying();
                dp.DeactivateKeyboardHandler();
            }

            FormPreferences2 fp = new FormPreferences2(-1);

            fp.ShowDialog();
            fp.Dispose();

            if (dp.ActivateKeyboardHandler != null)
            {
                dp.ActivateKeyboardHandler();
            }

            // Refresh Preferences
            PreferencesManager pm = PreferencesManager.Instance();

            log.Debug("Setting current ui culture.");
            Thread.CurrentThread.CurrentUICulture = pm.GetSupportedCulture();
            RefreshUICulture();
        }
Exemple #2
0
        private void NotificationCenter_PreferenceTabAsked(object sender, PreferenceTabEventArgs e)
        {
            FormPreferences2 fp = new FormPreferences2(e.Tab);

            fp.ShowDialog();
            fp.Dispose();

            Thread.CurrentThread.CurrentUICulture = PreferencesManager.GeneralPreferences.GetSupportedCulture();
            PreferencesUpdated();
        }
Exemple #3
0
        private void mnuPreferencesOnClick(object sender, EventArgs e)
        {
            FormPreferences2 fp = new FormPreferences2();

            fp.ShowDialog();
            fp.Dispose();

            // Refresh Preferences
            log.Debug("Setting current ui culture.");
            Thread.CurrentThread.CurrentUICulture = PreferencesManager.GeneralPreferences.GetSupportedCulture();
            PreferencesUpdated();
        }