/// <summary> /// 构造函数 /// </summary> /// <param name="txt"></param> public DateTimePicker(string txt) : this() { dtView = new TDateTimeView(txt);// TDateTimeView 构造函数传入日期时间 }
public DateTimePicker() { InitializeComponent(); dtView = new TDateTimeView(textBlock1.Text); }