コード例 #1
0
        private void OptionsMenuItem_Click(object sender, EventArgs e)
        {
            using (var optionsWindow = new OptionsWindow(m_configuration))
            {
                if (optionsWindow.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                m_configurationManager.Save(m_configuration);
                LoadTabSettings();
            }
        }
コード例 #2
0
        private void OptionsMenuItem_Click(object sender, EventArgs e)
        {
            var checkForUpdates = m_configuration.CheckForApplicationUpdates;

            using (var optionsWindow = new OptionsWindow(m_configuration))
            {
                if (optionsWindow.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                m_configurationStorage.Save(NFEPaths.SettingsFile, m_configuration);
                m_tabPages.ForEach(x => x.Initialize(this, m_configuration));

                if (checkForUpdates != m_configuration.CheckForApplicationUpdates)
                {
                    InitializeUpdatesChecking();
                }
            }
        }
コード例 #3
0
        private void OptionsMenuItem_Click(object sender, EventArgs e)
        {
            var checkForUpdates = m_configuration.CheckForApplicationUpdates;
            using (var optionsWindow = new OptionsWindow(m_configuration))
            {
                if (optionsWindow.ShowDialog() != DialogResult.OK) return;

                m_configurationManager.Save(m_configuration);
                m_tabPages.ForEach(x => x.Initialize(this, m_configuration));

                if (checkForUpdates != m_configuration.CheckForApplicationUpdates)
                {
                    InitializeUpdatesChecking();
                }
            }
        }