using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Project.Dialog
{
    public partial class fSelectDay : Form
    {
        public DateTime dt { get; set; }
        public fSelectDay(DateTime dt_)
        {
            InitializeComponent();
            this.dt = dt_;
            this.StartPosition = FormStartPosition.CenterScreen;
        }

        private void fSelectDay_Load(object sender, EventArgs e)
        {
            this.monthCalendar1.SelectionStart = this.dt;
            this.monthCalendar1.SelectionEnd = this.dt;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.dt = this.monthCalendar1.SelectionStart;
            DialogResult = DialogResult.OK;
        }
    }
}
