private void TodayForm_FormClosing(object sender, FormClosingEventArgs e) { shared_today_form = null; GPUserDefaults.SetIntForKey("todayform.bounds.left", Location.X); GPUserDefaults.SetIntForKey("todayform.bounds.top", Location.Y); GPUserDefaults.SetIntForKey("todayform.bounds.width", Size.Width); GPUserDefaults.SetIntForKey("todayform.bounds.height", Size.Height); GPUserDefaults.SetBoolForKey("todayform.bounds.initd", true); SupervisorForm.WindowClosed(this); }
public SupervisorForm() { InitializeComponent(); sharedSupervisor = this; MainForm form = new MainForm(); form.Show(); if (GPDisplays.Today.VisibleAtLaunch()) { TodayForm.ShowForm(); } StartForm form2 = new StartForm(); form2.Show(); }
/// <summary> /// constructor /// </summary> public TodayForm(GPGregorianTime initDate) { InitializeComponent(); InitializeData(); SetWebBrowserAutoSizeBehaviour(GPDisplays.Today.WindowAutosize()); if (initDate == null) { myDate.Today(); } else { myDate.Copy(initDate); } RefreshText(); SupervisorForm.WindowOpened(this); //object c = TimeZoneInfo.GetSystemTimeZones(); }