private void frm_Main_Click(object sender, EventArgs e) { if (NewOpenManager1.State) { NewOpenManager1.Close(); } }
private void txt_Date_DoubleClick(object sender, EventArgs e) { string tDateTime = string.Empty; Point t = PointToScreen(new Point(txt_Date.Location.X, txt_Date.Location.Y + txt_Date.Height)); NewOpenManager1.OpenWindow(ref tDateTime, t); if (tDateTime == null) { } else { txt_Date.Text = tDateTime; CurrentDate = txt_Date.Text; FileHelper.timelist = GetPeopleMsg.GetTimeList(); if (tooldoWork != null) { tooldoWork.Invoke("Date"); } } }