public ContactForm(AssignmentPlanner planner)
        {
            InitializeComponent();
            parent = planner;

            //populate user address from saved setting
            txtEmailFrom.Text = PlannerSettings.Default.EmailAddress;

            //dynamically add professors to combo box, also storing ProfId and Email in separate lists
            SQLiteDataReader profs = Database.executeQuery("SELECT ProfID, Title, FirstName, LastName, Email FROM Professor ORDER BY LastName");
            while (profs.Read() == true) {
                profId.Add(profs.GetInt32(0));
                cbSelectProfessor.Items.Add((profs.GetValue(1) + " " + profs.GetValue(2) + " " + profs.GetString(3)).Trim());
                profEmail.Add(profs.GetValue(4).ToString());
            }
            profs.Close();
        }
 public static void setActiveForm(AssignmentPlanner form)
 {
     planner = form;
 }