Ejemplo n.º 1
0
 public bool LoadContent()
 {
     _contentLoaded = false;
     DxRendererOptionCfg.Load();
     LoadStyles();
     propertyGrid1.SelectedObject = DxRendererOptionCfg.Current;
     _contentLoaded = true;
     return(true);
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public bool SaveContent()
 {
     DxRendererOptionCfg.Save();
     return(true);
 }