private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { UIStyle style = (UIStyle)comboBox1.SelectedIndex; Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(style); Config.UIStyle = style; previewControl1.UIStyle = style; Refresh(); }
private void CmbShowType_SelectedIndexChanged(object sender, EventArgs e) { UIStyle style = (UIStyle)btnChangeSkin.SelectedIndex; Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(style); Config.UIStyle = style; previewControl1.UIStyle = style; Refresh(); }
public void UpdateUIStyle() { FControlContainer.ColorSchemeStyle = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle); FControlContainer.Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(Designer.UIStyle); Color color = UIStyleUtils.GetControlColor(Designer.UIStyle); FStructure.BackColor = color; FHorzRuler.BackColor = color; FVertRuler.BackColor = color; FWorkspace.BackColor = UIStyleUtils.GetAppWorkspaceColor(Designer.UIStyle); BackColor = color; }