namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            radioButton1.Checked = true;  //burada radiobutton1 in seçili gelmesini sağladım
        }

        private void button5_Click(object sender, EventArgs e)
        {
            if(radioButton1.Checked==true)
            {
                int renk1,renk2,renk3,renk4;
                double deger;
                renk1 = comboBox1.SelectedIndex;
                renk2 = comboBox2.SelectedIndex;
                renk3 = comboBox3.SelectedIndex;
                renk4 = comboBox4.SelectedIndex;

                string top = renk1 + renk2.ToString();
                deger = (Convert.ToDouble(top) * Math.Pow(10, renk3));
                label7.Text = deger.ToString();
                ////////////////////////////////////////////////////////////////////////////////
                if (comboBox4.Text == "Siyah")
                {
                    label8.Text = "YOK";
                }
                else if (comboBox4.Text == "Kahverengi")
                {
                    label8.Text = "% 1";
                }
                else if (comboBox4.Text == "Kırmızı")
                {
                    label8.Text = "% 2";
                }
                else if (comboBox4.Text == "Turuncu")
                {
                    label8.Text = "YOK";
                }
                else if (comboBox4.Text == "Sarı")
                {
                    label8.Text = "YOK";
                }
                else if (comboBox4.Text == "Yeşil")
                {
                    label8.Text = "% 0,5";
                }
                else if (comboBox4.Text == "Mavi")
                {
                    label8.Text = "% 0,25";
                }
                else if (comboBox4.Text == "Mor")
                {
                    label8.Text = "% 0,1";
                }
                else if (comboBox4.Text == "Gri")
                {
                    label8.Text = "% 0,05";
                }
                else if (comboBox4.Text == "Beyaz")
                {
                    label8.Text = "YOK";
                }
                else if (comboBox4.Text == "Altın")
                {
                    label8.Text = "% 5";
                }
                else if (comboBox4.Text == "Gümüş")
                {
                    label8.Text = "% 10";
                }
                else if (comboBox4.Text == "Renksiz")
                {
                    label8.Text = "% 20";
                }

            }
            if (radioButton2.Checked == true)
            {
                int renk1, renk2, renk3, renk4, renk5;
                double deger;
                renk1 = comboBox1.SelectedIndex;
                renk2 = comboBox2.SelectedIndex;
                renk3 = comboBox3.SelectedIndex;
                renk4 = comboBox4.SelectedIndex;
                renk5 = comboBox5.SelectedIndex;

                string top = renk1 + renk2.ToString() + renk3.ToString();
                deger = (Convert.ToDouble(top) * Math.Pow(10, renk4));
                label7.Text = deger.ToString();
                if (comboBox5.Text == "Siyah")
                {
                    label8.Text = "YOK";
                }
                else if (comboBox5.Text == "Kahverengi")
                {
                    label8.Text = "% 1";
                }
                else if (comboBox5.Text == "Kırmızı")
                {
                    label8.Text = "% 2";
                }
                else if (comboBox5.Text == "Turuncu")
                {
                    label8.Text = "YOK";
                }
                else if (comboBox5.Text == "Sarı")
                {
                    label8.Text = "YOK";
                }
                else if (comboBox5.Text == "Yeşil")
                {
                    label8.Text = "% 0,5";
                }
                else if (comboBox5.Text == "Mavi")
                {
                    label8.Text = "% 0,25";
                }
                else if (comboBox5.Text == "Mor")
                {
                    label8.Text = "% 0,1";
                }
                else if (comboBox5.Text == "Gri")
                {
                    label8.Text = "% 0,05";
                }
                else if (comboBox5.Text == "Beyaz")
                {
                    label8.Text = "YOK";
                }
                else if (comboBox5.Text == "Altın")
                {
                    label8.Text = "% 5";
                }
                else if (comboBox5.Text == "Gümüş")
                {
                    label8.Text = "% 10";
                }
                else if (comboBox5.Text == "Renksiz")
                {
                    label8.Text = "% 20";
                }

            }

        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox1.Text == "Siyah")
                button1.BackColor = Color.Black;
            else if (comboBox1.Text == "Kahverengi")
                button1.BackColor = Color.Brown;
            else if (comboBox1.Text == "Kırmızı")
                button1.BackColor = Color.Red;
            else if (comboBox1.Text == "Turuncu")
                button1.BackColor = Color.Orange;
            else if (comboBox1.Text == "Sarı")
                button1.BackColor = Color.Yellow;
            else if (comboBox1.Text == "Yeşil")
                button1.BackColor = Color.Green;
            else if (comboBox1.Text == "Mavi")
                button1.BackColor = Color.Blue;
            else if (comboBox1.Text == "Mor")
                button1.BackColor = Color.Purple;
            else if (comboBox1.Text == "Gri")
                button1.BackColor = Color.Gray;
            else if(comboBox1.Text == "Beyaz")
                button1.BackColor = Color.White;
            else if (comboBox1.Text == "Altın")
                button1.BackColor = Color.Gold;
            else if (comboBox1.Text == "Gümüş")
                button1.BackColor = Color.Silver;
            else if (comboBox1.Text == "Renksiz")
                button1.BackColor = Color.Transparent;
        }

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox2.Text == "Siyah")
                button2.BackColor = Color.Black;
            else if (comboBox2.Text == "Kahverengi")
                button2.BackColor = Color.Brown;
            else if (comboBox2.Text == "Kırmızı")
                button2.BackColor = Color.Red;
            else if (comboBox2.Text == "Turuncu")
                button2.BackColor = Color.Orange;
            else if (comboBox2.Text == "Sarı")
                button2.BackColor = Color.Yellow;
            else if (comboBox2.Text == "Yeşil")
                button2.BackColor = Color.Green;
            else if (comboBox2.Text == "Mavi")
                button2.BackColor = Color.Blue;
            else if (comboBox2.Text == "Mor")
                button2.BackColor = Color.Purple;
            else if (comboBox2.Text == "Gri")
                button2.BackColor = Color.Gray;
            else if (comboBox2.Text == "Beyaz")
                button2.BackColor = Color.White;
            else if (comboBox2.Text == "Altın")
                button2.BackColor = Color.Gold;
            else if (comboBox2.Text == "Gümüş")
                button2.BackColor = Color.Silver;
            else if (comboBox2.Text == "Renksiz")
                button2.BackColor = Color.Transparent;
        }
        private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox3.Text == "Siyah")
                button3.BackColor = Color.Black;
            else if (comboBox3.Text == "Kahverengi")
                button3.BackColor = Color.Brown;
            else if (comboBox3.Text == "Kırmızı")
                button3.BackColor = Color.Red;
            else if (comboBox3.Text == "Turuncu")
                button3.BackColor = Color.Orange;
            else if (comboBox3.Text == "Sarı")
                button3.BackColor = Color.Yellow;
            else if (comboBox3.Text == "Yeşil")
                button3.BackColor = Color.Green;
            else if (comboBox3.Text == "Mavi")
                button3.BackColor = Color.Blue;
            else if (comboBox3.Text == "Mor")
                button3.BackColor = Color.Purple;
            else if (comboBox3.Text == "Gri")
                button3.BackColor = Color.Gray;
            else if (comboBox3.Text == "Beyaz")
                button3.BackColor = Color.White;
            else if (comboBox1.Text == "Altın")
                button1.BackColor = Color.Gold;
            else if (comboBox1.Text == "Gümüş")
                button1.BackColor = Color.Silver;
            else if (comboBox1.Text == "Renksiz")
                button1.BackColor = Color.Transparent;
        }

        private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox4.Text == "Siyah")
            {
                button4.BackColor = Color.Black;
            }
            else if (comboBox4.Text == "Kahverengi")
            {
                button4.BackColor = Color.Brown;
            }
            else if (comboBox4.Text == "Kırmızı")
            {
                button4.BackColor = Color.Red;
            }
            else if (comboBox4.Text == "Turuncu")
            {
                button4.BackColor = Color.Orange;
            }
            else if (comboBox4.Text == "Sarı")
            {
                button4.BackColor = Color.Yellow;
            }
            else if (comboBox4.Text == "Yeşil")
            {
                button4.BackColor = Color.Green;
            }
            else if (comboBox4.Text == "Mavi")
            {
                button4.BackColor = Color.Blue;
            }
            else if (comboBox4.Text == "Mor")
            {
                button4.BackColor = Color.Purple;
            }
            else if (comboBox4.Text == "Gri")
            {
                button4.BackColor = Color.Gray;
            }
            else if (comboBox4.Text == "Beyaz")
            {
                button4.BackColor = Color.White;
            }
            else if (comboBox4.Text == "Altın")
            {
                button4.BackColor = Color.Gold;
            }
            else if (comboBox4.Text == "Gümüş")
            {
                button4.BackColor = Color.Silver;
            }
            else if (comboBox4.Text == "Renksiz")
            {
                button4.BackColor = Color.Transparent;
            }
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            label10.Visible = false;
            comboBox5.Visible = false;
            button6.Visible = false;

        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            label10.Visible = true;
            comboBox5.Visible = true;
            button6.Visible = true;
        }

        private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox5.Text == "Siyah")
                button6.BackColor = Color.Black;
            else if (comboBox5.Text == "Kahverengi")
                button6.BackColor = Color.Brown;
            else if (comboBox5.Text == "Kırmızı")
                button6.BackColor = Color.Red;
            else if (comboBox5.Text == "Turuncu")
                button6.BackColor = Color.Orange;
            else if (comboBox5.Text == "Sarı")
                button6.BackColor = Color.Yellow;
            else if (comboBox5.Text == "Yeşil")
                button6.BackColor = Color.Green;
            else if (comboBox5.Text == "Mavi")
                button6.BackColor = Color.Blue;
            else if (comboBox5.Text == "Mor")
                button6.BackColor = Color.Purple;
            else if (comboBox5.Text == "Gri")
                button6.BackColor = Color.Gray;
            else if (comboBox5.Text == "Beyaz")
                button6.BackColor = Color.White;
            else if (comboBox5.Text == "Altın")
                button6.BackColor = Color.Gold;
            else if (comboBox5.Text == "Gümüş")
                button6.BackColor = Color.Silver;
            else if (comboBox5.Text == "Renksiz")
                button6.BackColor = Color.Transparent;
        }
    }
}