Esempio n. 1
0
        private void FillComboBoxes()
        {
            ProjectTrackingDataSetTableAdapters.GetEmployeesFullNamesTableAdapter myEmpAdapter = new ProjectTrackingDataSetTableAdapters.GetEmployeesFullNamesTableAdapter();
            myEmpAdapter.Fill(parent.MyDataSet.GetEmployeesFullNames);

            ProjectTrackingDataSetTableAdapters.GetUnderwayTasksTableAdapter myTasksAdapter = new ProjectTrackingDataSetTableAdapters.GetUnderwayTasksTableAdapter();
            myTasksAdapter.Fill(parent.MyDataSet.GetUnderwayTasks);

            //add the list of managers to the manager combobox using thier EmpID as the value member
            cbEmployeeID.DataSource = parent.MyDataSet.GetEmployeesFullNames.Copy();

            //add the list of status to the status combobox using the StatusID as the value member
            cbTaskID.DataSource = parent.MyDataSet.GetUnderwayTasks.Copy();
        }
Esempio n. 2
0
        private void FillComboBoxes()
        {
            //get the data from the status and managers tables
            ProjectTrackingDataSetTableAdapters.LuStatusTableAdapter myStatusAdapter = new ProjectTrackingDataSetTableAdapters.LuStatusTableAdapter();
            myStatusAdapter.Fill(parent.MyDataSet.LuStatus);

            ProjectTrackingDataSetTableAdapters.GetEmployeesFullNamesTableAdapter myNameAdapter = new ProjectTrackingDataSetTableAdapters.GetEmployeesFullNamesTableAdapter();
            myNameAdapter.Fill(parent.MyDataSet.GetEmployeesFullNames);

            //add the list of managers to the manager combobox using thier EmpID as the value member
            cbProjectManager.DataSource = parent.MyDataSet.GetEmployeesFullNames.Copy();

            //add the list of status to the status combobox using the StatusID as the value member
            cbProjectStatus.DataSource = parent.MyDataSet.LuStatus.Copy();
        }