using DevExpress.XtraEditors; using System; using System.Windows.Forms; namespace HL_FristAidPlatform_MultiSystemPublic { public partial class Form_SelectTime : XtraForm { /// /// 传入的时间 /// private string currentTime = ""; /// /// 更改后的时间 /// public string time = ""; /// /// /// /// public Form_SelectTime(string time = "") { InitializeComponent(); currentTime = time; } /// /// 窗体加载事件 /// /// /// private void Form_SelectTime_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(currentTime)) { //PublicClass.SetDateEditValue(textEdit_Time); } else { // textEdit_Time.TimeValue = currentTime; } } /// /// 确认按钮事件 /// /// /// private void simpleButton_Save_Click(object sender, EventArgs e) { time = textEdit_Time.TimeValue.ToString(); DialogResult = DialogResult.OK; } } }