public static void OpenWindow(ref string tDateTime, Point p) { frm = new DateForm(); frm.pos = p; tDateTime = frm.GetNewWindowDateTime(); State = true; }
public static void Close() { if (frm != null) { frm.Close(); frm = null; State = false; } }