예제 #1
0
 public bool LoadContent()
 {
     _contentLoaded = false;
     DxRendererOptionCfg.Load();
     LoadStyles();
     propertyGrid1.SelectedObject = DxRendererOptionCfg.Current;
     _contentLoaded = true;
     return(true);
 }
예제 #2
0
        private void LoadOptions()
        {
            DxRendererOptionCfg.Load();
            if (DxRendererOptionCfg.Current == null)
            {
                return;
            }

            DxRendererOption op = DxRendererOptionCfg.Current;

            grdView.OptionsCustomization.AllowFilter = op.AllowFilter;
            grdView.OptionsView.GroupDrawMode        = op.GroupDrawMode;
            grdView.OptionsView.ShowAutoFilterRow    = op.ShowAutoFilterRow;
            grdView.OptionsView.ShowFilterPanel      = op.ShowFilterPanel;
            grdView.OptionsView.ShowGroupPanel       = op.ShowGroupPanel;
            grdView.OptionsView.ColumnAutoWidth      = op.ColumnAutoWidth;
            grdView.OptionsView.RowAutoHeight        = op.RowAutoHeight;
            grd.UseEmbeddedNavigator = op.ShowNavigationBar;

            _loadingStyles    = true;
            cmbGridStyle.Text = op.CurrentStyleSchema;
            _loadingStyles    = false;
        }