Initial commit
This commit is contained in:
35
Handler/Project/Dialog/fSelectDay.cs
Normal file
35
Handler/Project/Dialog/fSelectDay.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user