Exemplo n.º 1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length == 0 && textBox2.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa boshluqlari doldurun!!");
            }
            else if (textBox1.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa abonent kodunu qeyd edin!!");
            }
            else if (textBox1.Text.Length < 12)
            {
                MessageBox.Show("Zehmet olmasa abonent kodunu duzgun qeyd edin!!!");
            }
            else if (textBox2.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa meblegi qeyd edin!!!");
            }
            else
            {
                string mebleg = Convert.ToString(textBox2.Text + " AZN");
                label3.Text = mebleg.ToString();

                KomunalOdenish ode = new KomunalOdenish(label3.Text);
                ode.Show();
                this.Hide();
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length == 0 && textBox2.Text.Length == 0 && textBox3.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa boshluqlari doldurun!!!");
            }
            else if (textBox1.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa musteri kodunu qeyd edin!!!");
            }
            else if (textBox3.Text.Length == 0)
            {
                MessageBox.Show("Kredit hesab nomresini qeyd edin!!!");
            }
            else if (textBox2.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa meblegi qeyd edin!!!");
            }
            else
            {
                string mebleg = Convert.ToString(textBox2.Text + " AZN");
                label3.Text = mebleg.ToString();

                KomunalOdenish button = new KomunalOdenish(label3.Text);
                button.Show();
                this.Hide();
            }
        }
Exemplo n.º 3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            if (textBox1.TextLength == 0 && textBox2.TextLength == 0 && comboBox1.SelectedIndex == -1)
            {
                MessageBox.Show("Zehmet olmasa boshluqari doldurun!!!");
            }
            else if (textBox1.TextLength == 0)
            {
                MessageBox.Show("Zehmet olmasa nomreni qeyd edin!!!");
            }
            else if (textBox2.TextLength == 0)
            {
                MessageBox.Show("Zehmet olmasa meblegi qeyd edin!!!");
            }
            else if (comboBox1.SelectedIndex != 0 && comboBox1.SelectedIndex != 1 && comboBox1.SelectedIndex != 2)
            {
                MessageBox.Show("Zehmet olmasa Regionu secin!!!");
            }
            else
            {
                string mebleg = Convert.ToString(textBox2.Text + "AZN");
                label3.Text = mebleg.ToString();

                KomunalOdenish odenish = new KomunalOdenish(label3.Text);
                odenish.Show();
                this.Hide();
            }
        }
Exemplo n.º 4
0
        private void Button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length == 0 && textBox2.Text.Length == 0 && comboBox1.SelectedIndex == -1)
            {
                MessageBox.Show("Zehmet olmasa boshluqlari doldurun!!");
            }
            else if (comboBox1.SelectedIndex != 0)
            {
                MessageBox.Show("Zehmet olmasa login tipini secin!!");
            }
            else if (textBox1.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa istifadeci adi ve ya nomreni qeyd edin!!");
            }
            else if (textBox1.Text.Length < 10)
            {
                MessageBox.Show("Zehmet olmasa duzgun istifadeci adi ve ya nomreni qeyd edin!!!");
            }
            else if (textBox2.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa meblegi qeyd edin!!!");
            }
            else
            {
                string mebleg = Convert.ToString(textBox2.Text + " AZN");
                label3.Text = mebleg.ToString();

                KomunalOdenish ode = new KomunalOdenish(label3.Text);
                ode.Show();
                this.Hide();
            }
        }
Exemplo n.º 5
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (button1.Enabled == true)
            {
                if (textBox1.Text.Length == 0 && textBox2.Text.Length == 0 && textBox3.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa boshluqlari doldurun!!!");
                }
                else if (textBox1.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa hesab nomresini qeyd edin!!!");
                }
                else if (textBox3.Text.Length == 0)
                {
                    MessageBox.Show("S/V seriya nomresini qeyd edin!!!");
                }
                else if (textBox3.Text.Length < 11)
                {
                    MessageBox.Show("S/V seriya nomresini duzgun qeyd edin!!!");
                }
                else if (textBox2.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa meblegi qeyd edin!!!");
                }
                else
                {
                    string mebleg = Convert.ToString(textBox2.Text + " AZN");
                    label3.Text = mebleg.ToString();

                    KomunalOdenish button = new KomunalOdenish(label3.Text);
                    button.Show();
                    this.Hide();
                }
            }
        }
Exemplo n.º 6
0
        private void button4_Click(object sender, EventArgs e)
        {
            if (button2.Enabled == true)
            {
                if (textBox2.Text.Length == 0 && textBox4.Text.Length == 0 && textBox5.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa boshluqlari doldurun!!!");
                }
                else if (textBox5.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa musteri kodunu qeyd edin!!!");
                }
                else if (textBox4.Text.Length == 0)
                {
                    MessageBox.Show("Dogum tarixini qeyd edin!!!");
                }
                else if (textBox4.Text.Length < 10)
                {
                    MessageBox.Show("Dogum tarixini duzgun qeyd edin!!!");
                }
                else if (textBox2.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa meblegi qeyd edin!!!");
                }
                else
                {
                    string mebleg = Convert.ToString(textBox2.Text + " AZN");
                    label3.Text = mebleg.ToString();

                    KomunalOdenish button = new KomunalOdenish(label3.Text);
                    button.Show();
                    this.Hide();
                }
            }
        }
Exemplo n.º 7
0
        private void Button4_Click(object sender, EventArgs e)
        {
            if (button2.Enabled == true)
            {
                if (textBox3.Text.Length == 0 && textBox4.Text.Length == 0 && textBox5.Text.Length == 0 && textBox6.Text.Length == 0 && textBox7.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa boshluqlari doldurun!!");
                }
                else if (textBox3.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa protokol seriyasini qeyd edin!!!");
                }
                else if (textBox4.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa protokol nomresini qeyd edin!!!");
                }
                else if (textBox5.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa suruculuk vesiqesi seriyasini qeyd edin!!!");
                }
                else if (textBox6.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa suruculuk vesiqesi nomresini qeyd edin!!!");
                }
                else if (textBox7.Text.Length == 0)
                {
                    MessageBox.Show("Zehmet olmasa meblegi qeyd edin!!!");
                }
                else if (textBox4.Text.Length < 10)
                {
                    MessageBox.Show("Zehmet olmasa duzgun protokol nomrensini qeyd edin!!!");
                }
                else
                {
                    string mebleg = Convert.ToString(textBox2.Text + textBox7.Text + " AZN");
                    label3.Text = mebleg.ToString();

                    KomunalOdenish ode = new KomunalOdenish(label3.Text);
                    ode.Show();
                    this.Hide();
                }
            }

            /*string mebleg = Convert.ToString(textBox2.Text + textBox7.Text + " AZN");
             * label3.Text = mebleg.ToString();
             *
             * KomunalOdenish ode = new KomunalOdenish(label3.Text);
             * ode.Show();
             * this.Hide();*/
        }
Exemplo n.º 8
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length == 0 && textBox2.Text.Length == 0 && textBox3.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa boshluqlari doldurun!!!");
            }
            else if (textBox1.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa S/V seriya nomresini qeyd edin!!!");
            }
            else if (textBox3.Text.Length == 0)
            {
                MessageBox.Show("Dogum tarixini qeyd edin!!!");
            }
            else if (comboBox1.SelectedIndex != 0 && comboBox1.SelectedIndex != 1)
            {
                MessageBox.Show("Zehmet olmasa tipi qeyd edin!!!");
            }
            else if (textBox3.Text.Length < 10)
            {
                MessageBox.Show("Dogum tarixini duzgun qeyd edin!!!");
            }
            else if (textBox2.Text.Length == 0)
            {
                MessageBox.Show("Zehmet olmasa meblegi qeyd edin!!!");
            }
            else
            {
                string mebleg = Convert.ToString(textBox2.Text + " AZN");
                label3.Text = mebleg.ToString();

                KomunalOdenish button = new KomunalOdenish(label3.Text);
                button.Show();
                this.Hide();
            }
        }