// loads theme from the specified file. private void appLoad_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { C1Theme theme = new C1Theme(); theme.Load(openFileDialog1.FileName); Helper.SetTheme(theme); } }
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); }