コード例 #1
0
 public void Save(DecoupledStorage storage)
 {
   storage.WriteBoolean(STR_Preferences, STR_ShowBeacon, ShowBeacon);
   storage.WriteColor(STR_Preferences, STR_BeaconColor, BeaconColor);
   storage.WriteInt32(STR_Preferences, STR_BeaconDuration, BeaconDuration);
   storage.WriteBoolean(STR_Preferences, STR_RollOverOnPrevNext, RollOverOnPrevNext);
   storage.WriteBoolean(STR_Preferences, STR_SkipSelectionMarkers, SkipSelectionMarkers);
 }
コード例 #2
0
 public void Save(DecoupledStorage storage)
 {
     storage.WriteBoolean(STR_Preferences, STR_ShowBeacon, ShowBeacon);
     storage.WriteColor(STR_Preferences, STR_BeaconColor, BeaconColor);
     storage.WriteInt32(STR_Preferences, STR_BeaconDuration, BeaconDuration);
     storage.WriteBoolean(STR_Preferences, STR_RollOverOnPrevNext, RollOverOnPrevNext);
     storage.WriteBoolean(STR_Preferences, STR_SkipSelectionMarkers, SkipSelectionMarkers);
 }
コード例 #3
0
        void saveSettings()
        {
            try
            {
                _fullWidth = _fullWidthChk.Checked;
                _lineWidth = int.Parse(_lineWidthLst.Text);
                _lineColor = _lineColorBtn.BackColor;
                _drawLineAtStartOfMethod = _drawLineAtStartChk.Checked;
                _drawLineAtEndOfMethod   = _drawLineAtEndChk.Checked;
                _drawShadow       = _drawShadowChk.Checked;
                _enableOnClass    = _enableOnMemberCheckList.GetItemChecked(0);
                _enableOnProperty = _enableOnMemberCheckList.GetItemChecked(1);
                _enableOnMethod   = _enableOnMemberCheckList.GetItemChecked(2);
                _enableOnEnum     = _enableOnMemberCheckList.GetItemChecked(3);
                _enabled          = _enabledChk.Checked;
                _lineSpacer       = (int)_lineSpaceNUD.Value;
                _shadowHeight     = (int)_shadowHeightNUD.Value;

                using (DecoupledStorage storage = OptDrawLinesBetweenMethods.Storage)
                {
                    storage.WriteBoolean("DrawLinesBetweenMethods", "FullWidth", _fullWidth);
                    storage.WriteInt32("DrawLinesBetweenMethods", "LineWidth", _lineWidth);
                    storage.WriteColor("DrawLinesBetweenMethods", "LineColor", _lineColor);
                    storage.WriteBoolean("DrawLinesBetweenMethods", "DrawLineAtStartOfMethod", _drawLineAtStartOfMethod);
                    storage.WriteBoolean("DrawLinesBetweenMethods", "DrawLineAtEndOfMethod", _drawLineAtEndOfMethod);
                    storage.WriteBoolean("DrawLinesBetweenMethods", "DrawShadow", _drawShadow);
                    storage.WriteBoolean("DrawLinesBetweenMethods", "EnableOnClass", _enableOnClass);
                    storage.WriteBoolean("DrawLinesBetweenMethods", "EnableOnProperty", _enableOnProperty);
                    storage.WriteBoolean("DrawLinesBetweenMethods", "EnableOnMethod", _enableOnMethod);
                    storage.WriteBoolean("DrawLinesBetweenMethods", "EnableOnEnum", _enableOnEnum);
                    storage.WriteBoolean("DrawLinesBetweenMethods", "Enabled", _enabled);
                    storage.WriteInt32("DrawLinesBetweenMethods", "LineSpacer", _lineSpacer);
                    storage.WriteInt32("DrawLinesBetweenMethods", "ShadowHeight", _shadowHeight);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }