Beispiel #1
0
        private void exportProfileBtn_Click(object sender, EventArgs e)
        {
            MessageBox.Show("This feature has not been BUG TESTED yet!");
            List <ProfileData> toExport = new List <ProfileData>();

            toExport.Add(intervieweeProfile);
            profileManagementFunctionsClassObject.ExportProfileData(folderBrowserDialog1, toExport);
        }
Beispiel #2
0
        private void exportAllProfilesBtn_Click(object sender, EventArgs e)
        {
            MessageBox.Show("This feature has not been BUG TESTED!");

            // get all data
            List <ProfileData> toExport = new List <ProfileData>();

            foreach (DataRow profile in dbdataset.Rows)
            {
                ProfileData thisProfile = new ProfileData();
                thisProfile.UserID       = profile[0].ToString();
                thisProfile.FirstName    = profile[1].ToString();
                thisProfile.LastName     = profile[2].ToString();
                thisProfile.Dob          = Convert.ToDateTime(profile[4]);
                thisProfile.Gender       = profile[3].ToString();
                thisProfile.PhNumber     = profile[5].ToString();
                thisProfile.EmailAddress = profile[6].ToString();

                toExport.Add(thisProfile);
            }
            // run export with list
            profileManagementFunctionsClassObject.ExportProfileData(folderBrowserDialog1, toExport);
        }