private void comboBox1_Click(object sender, EventArgs e) { using (colorDialog dia = new colorDialog("comboboxTextColor", "Combo Box Text Color")) { if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK) { using (colorDialog die = new colorDialog("comboboxBackColor", "Combo Box Background Color")) { if (die.ShowDialog() == System.Windows.Forms.DialogResult.OK) { read.saveChanges(); die.Close(); } else { die.Close(); } } dia.Close(); } else { dia.Close(); } } }
public void centerMenu_Click(object sender, EventArgs e) { colorDialog dia = new colorDialog("centerMenu", "CenterMenu"); if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } }
private void sideMenu_Click(object sender, EventArgs e) { colorDialog dia = new colorDialog("sideMenu", "SideMenu"); if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } }
private void upMenu_Click(object sender, EventArgs e) { using (colorDialog dia = new colorDialog("upMenu", "UpMenu")) { if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } } }
private void button2_Click(object sender, EventArgs e) { using (colorDialog dia = new colorDialog("buttonColor", "ButtonColor")) { if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } } }
private void button2_Click(object sender, EventArgs e) { colorDialog dia = new colorDialog("buttonColor", "ButtonColor"); colorDialog die = new colorDialog("buttonBackColor", "ButtonBackColor"); if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (die.ShowDialog() == System.Windows.Forms.DialogResult.OK) { read.saveChanges(); } } }