private void btnSettings_Click(object sender, EventArgs e)
 {
     if (_isExiting)
     {
         return;
     }
     using (frmSettings settingsForm = new frmSettings()) {
         settingsForm.ShowDialog(this);
     }
 }
Ejemplo n.º 2
0
        private void btnSettings_Click(object sender, EventArgs e)
        {
            using (frmSettings settingsForm = new frmSettings()) {
                settingsForm.WriteOffset          = _writeOffset;
                settingsForm.PreserveHTOA         = _preserveHTOA;
                settingsForm.AutoCorrectFilenames = _autoCorrectFilenames;
                settingsForm.FLACCompressionLevel = _flacCompressionLevel;
                settingsForm.FLACVerify           = _flacVerify;
                settingsForm.WVCompressionMode    = _wvCompressionMode;
                settingsForm.WVExtraMode          = _wvExtraMode;

                CenterSubForm(settingsForm);
                settingsForm.ShowDialog();

                _writeOffset          = settingsForm.WriteOffset;
                _preserveHTOA         = settingsForm.PreserveHTOA;
                _autoCorrectFilenames = settingsForm.AutoCorrectFilenames;
                _flacCompressionLevel = settingsForm.FLACCompressionLevel;
                _flacVerify           = settingsForm.FLACVerify;
                _wvCompressionMode    = settingsForm.WVCompressionMode;
                _wvExtraMode          = settingsForm.WVExtraMode;
            }
        }
Ejemplo n.º 3
0
        private void toolStripButtonSettings_Click(object sender, EventArgs e)
        {
            using (frmSettings settingsForm = new frmSettings())
            {
                settingsForm.IconMgr = m_icon_mgr;
                settingsForm.ReducePriority = _reducePriority;
                settingsForm.Config = _profile._config;

                DialogResult res = settingsForm.ShowDialog(this);

                if (res == DialogResult.Cancel)
                    return;

                if (Thread.CurrentThread.CurrentUICulture != CultureInfo.GetCultureInfo(_profile._config.language))
                {
                    Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(_profile._config.language);
                    ComponentResourceManager resources = new ComponentResourceManager(typeof(frmCUETools));
                    int savedWidth = Width;
                    Width = MinimumSize.Width;
                    ChangeCulture(this, resources);
                    Width = savedWidth;
                    PerformLayout();
                }

                _reducePriority = settingsForm.ReducePriority;
                SelectedOutputAudioType = SelectedOutputAudioType;
                SetupScripts();
                SaveSettings();
            }
        }
 private void btnSettings_Click(object sender, EventArgs e)
 {
     if (_isExiting) return;
     using (frmSettings settingsForm = new frmSettings()) {
         GUI.CenterChildForm(this, settingsForm);
         settingsForm.ShowDialog(this);
     }
     niTrayIcon.Visible = Settings.MinimizeToTray ?? false;
     tmrBackupThreadList.Interval = (Settings.BackupEvery ?? 1) * 60 * 1000;
     UpdateWindowTitle(GetMonitoringInfo());
 }
 private void btnSettings_Click(object sender, EventArgs e)
 {
     if (_isExiting) return;
     using (frmSettings settingsForm = new frmSettings()) {
         settingsForm.ShowDialog(this);
     }
 }
Ejemplo n.º 6
0
 private void btnSettings_Click(object sender, EventArgs e)
 {
     if (_isExiting) return;
     using (frmSettings settingsForm = new frmSettings()) {
         settingsForm.ShowDialog(this);
     }
     _appIcon.Visible = Settings.MinimizeToTray ?? false;
 }