Exemple #1
0
        private void CustomTheme_Load(object sender, EventArgs e)
        {
            c1FlexGrid1.DataSource = DemoDataSource("Products");

            // load and apply custom theme
            C1Theme customTheme = new C1Theme();

            customTheme.Load(_themePath);
            customTheme.ApplyThemeToControlTree(this);
        }
        private void AppyTheme()
        {
            string  fileName    = THEME_PATH;
            C1Theme customTheme = new C1Theme();

            customTheme.Load(fileName);
            customTheme.ApplyThemeToControlTree(this, (x) => x != connectionPropertyGrid);
            customTheme.ApplyThemeToObject(connectionPropertyGrid);
            customTheme.ApplyThemeToObject(connectionPropertyGrid.C1ScrollBar);
        }