Beispiel #1
0
        /// <summary>
        /// Save all parameters.
        /// </summary>
        private void SaveParameters()
        {
            SetCurrentKey();
            DiffUserSetting diffUserSetting = new DiffUserSetting
            {
                Key               = _currentKey,
                NewBaseDir        = NewBaseDir,
                OldBaseDir        = OldBaseDir,
                NewFile           = NewFile,
                OldFile           = OldFile,
                MinChars          = MinChars,
                MinLines          = MinLines,
                LimitCharacters   = LimitCharacters,
                LimitLines        = LimitLines,
                SubLineMatchLimit = SubLineMatchLimit,
                CompleteLines     = CompleteLines
            };

            _profileManager.DiffUserSettings.Persist(diffUserSetting);
        }
Beispiel #2
0
        /// <summary>
        /// Load all saved parameters.
        /// </summary>
        private void LoadParameters()
        {
            _profileManager.DiffUserSettings.Load(_profileManager.SystemProfile.DiffCurrentUserSettings, _profileManager.SystemProfile.DiffMasterUserSettings);
            DiffUserSetting diffUserSetting = new DiffUserSetting();

            if (_profileManager.DiffUserSettings.SelectedItem != null)
            {
                diffUserSetting = _profileManager.DiffUserSettings.SelectedItem;
            }
            NewBaseDir        = diffUserSetting.NewBaseDir;
            OldBaseDir        = diffUserSetting.OldBaseDir;
            NewFile           = diffUserSetting.NewFile;
            OldFile           = diffUserSetting.OldFile;
            MinChars          = diffUserSetting.MinChars;
            MinLines          = diffUserSetting.MinLines;
            LimitCharacters   = diffUserSetting.LimitCharacters;
            LimitLines        = diffUserSetting.LimitLines;
            SubLineMatchLimit = diffUserSetting.SubLineMatchLimit;
            CompleteLines     = diffUserSetting.CompleteLines;
            SetCurrentKey();
        }