private void CreateCourseEditor(Course course)
        {
            CourseEditor ce = null;

            if (course == null)
            {
                ce = new CourseEditor();
            }
            else
            {
                bool cExists = false;
                //make sure we aren't already editing a course
                foreach (CourseEditor c in editors)
                {
                    if (course.Id != 0 && course.Id == c.CourseViewModel.Id)
                    {
                        c.Focus();
                        c.WindowState = WindowState.Normal;
                        cExists       = true;
                        break;
                    }
                }
                if (!cExists)
                {
                    ce = new CourseEditor(course);
                }
            }

            if (ce != null)
            {
                ce.Owner = this;
                ce.Show();
                ce.Closed += OnCourseEditorClose;
                editors.Add(ce);
            }
        }
        private void OnCourseEditorClose(object sender, EventArgs e)
        {
            CourseEditor ce = (CourseEditor)sender;

            editors.Remove(ce);
        }