private void ManageMeetingEmployeesForm_Load(object sender, EventArgs e)
        {
            EMPLOYEE emp  = new EMPLOYEE();
            MEETINGS meet = new MEETINGS();

            //loads the datagrid views with data
            dataGridViewManageEmployees.DataSource    = ME.GetMeetingEmployees();
            dataGridViewMeetingEmployeeLst.DataSource = emp.GetEmployee();

            //loads the combo boxes with data
            comboBoxMeetings.DataSource    = meet.GetMeetings();
            comboBoxMeetings.DisplayMember = "MeetingDesc";
            comboBoxMeetings.ValueMember   = "MeetingID";
        }
Ejemplo n.º 2
0
        //when the admin selects this button the last 6 months are saved. This is a manual option. This can be made semi-Automatic by moving this function to the login page as "onload"
        private void LogFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MEETINGS meeting = new MEETINGS();

            try
            {
                meeting.GetCSVdata();
                MessageBox.Show("Last 6 months saved", "Data Saved", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Data Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }