private void ShowNotifyWindow() { if (notifyForm == null && ReadNotificationSettings().ShowNotifyWindow) { notifyForm = new NewPlanAppointForm(); notifyForm.Show(); notifyForm.FormClosed += NotifyForm_FormClosed; } }
private void NotifyForm_FormClosed(object sender, FormClosedEventArgs e) { notifyForm = null; }