private void AddNewPlan()
        {
            PlanAppointForm form = new PlanAppointForm(MdiParent, database);

            form.DataSaved += RefreshList;
            form.Show();
        }
 private void EditCurrentPlan()
 {
     if (bsList.Current != null &&
         ((PlanAppoint)bsList.Current).DateAppoint.Equals(DateTime.MaxValue))
     {
         PlanAppointForm form = new PlanAppointForm(MdiParent, database);
         form.PlanAppoint = (PlanAppoint)bsList.Current;
         form.DataSaved  += RefreshList;
         form.Show();
     }
 }