public setupForm(string profilname) { InitializeComponent(); this.profilName = profilname; label1.Text = Projector.Properties.Resources.mysqlUserName; label2.Text = Projector.Properties.Resources.mysqlPassword; label3.Text = Projector.Properties.Resources.mysqlHost; label4.Text = Projector.Properties.Resources.mysqlSchema; okbtn.Text = Projector.Properties.Resources.btnOk; cancelbtn.Text = Projector.Properties.Resources.btnCancel; groupBox1.Text = Projector.Properties.Resources.mysqlSettings; tabPage1.Text = Projector.Properties.Resources.mysqlSettings; btnChk.Text = Projector.Properties.Resources.MysqlCheckConnetion; checkInput(); tableListBox.Visible = false; List <string> styles = StyleFormProps.getAllStyles(); foreach (string style in styles) { styleComboBox.Items.Add(style); mdiStyleComboBox.Items.Add(style); } }
public void composeStyle(string name) { List <string> possibles = StyleFormProps.getAllStyles(); this.changeStyle = false; if (possibles.Contains(name)) { this.currentStyle = name; this.changeStyle = true; switch (name) { case StyleFormProps.STYLE_DEFAULT: this.changeStyle = false; break; case StyleFormProps.STYLE_LIGHT_COLOR: this.composeFlatLight(); break; case StyleFormProps.STYLE_NIGHT: this.composeNight(); break; case StyleFormProps.STYLE_DARK_COLOR: this.composeFlatDark(); break; case StyleFormProps.STYLE_PAPER: this.composePaper(); break; case StyleFormProps.STYLE_PAPER_BLUE: this.composePaperWhite(); break; } } }