Exemple #1
0
 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();
         }
     }
 }
Exemple #2
0
        public void centerMenu_Click(object sender, EventArgs e)
        {
            colorDialog dia = new colorDialog("centerMenu", "CenterMenu");

            if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
            }
        }
Exemple #3
0
        private void sideMenu_Click(object sender, EventArgs e)
        {
            colorDialog dia = new colorDialog("sideMenu", "SideMenu");

            if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
            }
        }
Exemple #4
0
 private void upMenu_Click(object sender, EventArgs e)
 {
     using (colorDialog dia = new colorDialog("upMenu", "UpMenu"))
     {
         if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
         }
     }
 }
Exemple #5
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (colorDialog dia = new colorDialog("buttonColor", "ButtonColor"))
     {
         if (dia.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
         }
     }
 }
Exemple #6
0
        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();
                }
            }
        }