34 lines
823 B
C#
34 lines
823 B
C#
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 FCM0000
|
|
{
|
|
public partial class fSelectDate : Form
|
|
{
|
|
public DateTime dtSelect = DateTime.Now;
|
|
public fSelectDate(string dtstr) : this(DateTime.Parse(dtstr)) { }
|
|
public fSelectDate(DateTime dt)
|
|
{
|
|
InitializeComponent();
|
|
this.monthCalendar1.SetDate(dt);
|
|
}
|
|
|
|
private void fSelectDate_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void btOK_Click(object sender, EventArgs e)
|
|
{
|
|
dtSelect = this.monthCalendar1.SelectionStart;
|
|
DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
}
|
|
}
|
|
}
|