// Burcunuzu Ögrenin | C# | www.aliakyildirim.com | Ali AKYILDIRIM
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
// Burcunuzu Ögrenin | C# | www.aliakyildirim.com | Ali AKYILDIRIM
namespace WindowsFormsApplication15
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                if (textBox1.Text != null && textBox2.Text != null)
                {
                    string burc; //Hangi degiskenleri kullanilacaksa, onlari tanitiyoruz:
                    int gun, ay;
                    gun = int.Parse(textBox1.Text); //Text kutularini gün ve ay olarak tanitiyoruz:
                    ay = int.Parse(textBox2.Text);
                    burc = lblSonuc.Text;
                    if (gun >= 21 && ay == 1) // Gün ve ay textlerine girilen tarihlere göre Burçlari yazdiriyor:
                        lblSonuc.Text = "Kova Burcu"; // Diger komutlar içinde geçerli:
                    else if (gun 
                        lblSonuc.Text = "Kova Burcu";
                    if (gun >= 20 && ay == 2)
                        lblSonuc.Text = "Balik Burcu";
                    else if (gun 
                        lblSonuc.Text = "Balik Burcu";
                    if (gun >= 21 && ay == 3)
                        lblSonuc.Text = "Koç Burcu";
                    else if (gun 
                        lblSonuc.Text = "Koç Burcu";
                    if (gun >= 21 && ay == 4)
                        lblSonuc.Text = "Boga Burcu";
                    else if (gun 
                        lblSonuc.Text = "Boga Burcu";
                    if (gun >= 22 && ay == 5)
                        lblSonuc.Text = "Ikizler Burcu";
                    else if (gun 
                        lblSonuc.Text = "Ikizler Burcu";
                    if (gun >= 22 && ay == 6)
                        lblSonuc.Text = "Yengeç Burcu";
                    else if (gun 
                        lblSonuc.Text = "Yengeç Burcu";
                    if (gun >= 24 && ay == 7)
                        lblSonuc.Text = "Aslan Burcu";
                    else if (gun 
                        lblSonuc.Text = "Aslan Burcu";
                    if (gun >= 22 && ay == 8)
                        lblSonuc.Text = "Basak Burcu";
                    else if (gun 
                        lblSonuc.Text = "Basak Burcu";
                    if (gun >= 24 && ay == 9)
                        lblSonuc.Text = "Terazi Burcu";
                    else if (gun 
                        lblSonuc.Text = "Terazi Burcu";
                    if (gun >= 24 && ay == 10)
                        lblSonuc.Text = "Akrep Burcu";
                    else if (gun 
                        lblSonuc.Text = "Akrep Burcu";
                    if (gun >= 24 && ay == 11)
                        lblSonuc.Text = "Yay Burcu";
                    else if (gun 
                        lblSonuc.Text = "Yay Burcu";
                    if (gun >= 23 && ay == 12)
                        lblSonuc.Text = "Oglak Burcu";
                    else if (gun 
                        lblSonuc.Text = "Oglak Burcu";
                    else
                    {
                        textBox1.Focus();
                    }
                }
                else
                {
                    MessageBox.Show("Text Alanlarina ’Gün’ ve ’Ay’ Degerleri Girmediniz..!", "Bilgi: www.aliakyildirim.com");
                    textBox1.Focus();
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Text Alanlarina ’Gün’ ve ’Ay’ Degerleri Girmediniz..!", "Bilgi: www.aliakyildirim.com");
                textBox1.Focus();
            }
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            textBox1.Focus();
        }
    }
}
// Burcunuzu Ögrenin | C# | www.aliakyildirim.com | Ali AKYILDIRIM