using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace MainTemplate
{
    class Class_Day_Lists
    {
        private String DayName;
        private String MonthName;
        private String CompleteShamsiDate;

        public Class_Day_Lists()
        {
            DateTime dt = DateTime.Now;
            if (dt.DayOfWeek == DayOfWeek.Friday)
                DayName = "جمعه";
            if (dt.DayOfWeek == DayOfWeek.Saturday)
                DayName = "شنبه";
            if (dt.DayOfWeek == DayOfWeek.Sunday)
                DayName = "یکشنبه";
            if (dt.DayOfWeek == DayOfWeek.Monday)
                DayName = "دوشنبه";
            if (dt.DayOfWeek == DayOfWeek.Tuesday)
                DayName = "سه شنبه";
            if (dt.DayOfWeek == DayOfWeek.Wednesday)
                DayName = "چهار شنبه";
            if (dt.DayOfWeek == DayOfWeek.Tuesday)
                DayName = "پنج شنبه";

            PersianCalendar pt = new PersianCalendar();
            int MoName = pt.GetMonth(dt);

            switch (MoName)
            {
                case 1:
                    MonthName = "فروردین";
                    break;
                case 2:
                    MonthName = "اردیبهشت";
                    break;
                case 3:
                    MonthName = "خرداد";
                    break;
                case 4:
                    MonthName = "تیر";
                    break;
                case 5:
                    MonthName = "مرداد";
                    break;
                case 6:
                    MonthName = "شهریور";
                    break;
                case 7:
                    MonthName = "مهر";
                    break;
                case 8:
                    MonthName = "آبان";
                    break;
                case 9:
                    MonthName = "آذر";
                    break;
                case 10:
                    MonthName = "دی";
                    break;
                case 11:
                    MonthName = "بهمن";
                    break;
                case 12:
                    MonthName = "اسفند";
                    break;
            }

            CompleteShamsiDate = "امروز " + DayName + " " + pt.GetDayOfMonth(dt) + " " + MonthName + " " + pt.GetYear(dt) + " می باشد. ";
        }

        public String CRDaysName
        {
            set
            {
                DayName = value;
            }
            get
            {
                return DayName;
            }
        }

        public String CRMotheName
        {
            set
            {
                MonthName = value;
            }
            get
            {
                return MonthName;
            }
        }

        public String CRCompleteShamsiDate
        {
            set
            {
                CompleteShamsiDate = value;
            }
            get
            {
                return CompleteShamsiDate;
            }
        }
    }
}
