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;

namespace Burcumu_Söyle_Bana
{
    public partial class Form1 : Form
    {
        DateTime dt1;

        public void burc(DateTime dt1)
        {
            int ay = dt1.Month;

            int gun = dt1.Day;

            if ((ay == 1 && gun > 20) || (ay == 2 && gun < 20))
                label4.Text = "Kova";
            else if ((ay == 2 && gun > 18) || (ay == 3 && gun < 21))
                label4.Text = "Balık";
            else if ((ay == 3 && gun > 20) || (ay == 4 && gun < 21))
                label4.Text = "Koç";
            else if ((ay == 4 && gun > 20) || (ay == 5 && gun < 22))
                label4.Text = "Boğa";
            else if ((ay == 5 && gun > 21) || (ay == 6 && gun < 22))
                label4.Text = "İkizler";
            else if ((ay == 6 && gun > 21) || (ay == 7 && gun < 24))
                label4.Text = "Yengeç";
            else if ((ay == 7 && gun > 23) || (ay == 8 && gun < 24))
                label4.Text = "Aslan";
            else if ((ay == 8 && gun > 23) || (ay == 9 && gun < 24))
                label4.Text = "Başak";
            else if ((ay == 9 && gun > 23) || (ay == 10 && gun < 24))
                label4.Text = "Terazi";
            else if ((ay == 10 && gun > 23) || (ay == 11 && gun < 23))
                label4.Text = "Akrep";
            else if ((ay == 11 && gun > 22) || (ay == 12 && gun < 23))
                label4.Text = "Yay";
            else if ((ay == 12 && gun > 22) || (ay == 1 && gun < 21))
                label4.Text = "Oğlak"; 
        }

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            dt1 = dateTimePicker1.Value;

            burc(dt1);
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}

 

 

Proje Dosyasını Github Hesabımdan İndirebilirsiniz


muratbilginer