}//-------------------------------

        //event is raised when the class is closed
        private void ClassClosed(object sender, FormClosedEventArgs e)
        {
            _studentManager.DeleteImageDirectory(Application.StartupPath);
        }//-------------------------