Esempio n. 1
0
    public FormEditGroupTypes(College college)
    {
        m_college         = college;
        m_groupTypesTable = new CollegeDataSet.GroupTypesDataTable();

        InitializeComponent();
        InitList();
        LoadGroupTypes();
    }
Esempio n. 2
0
 private void LoadGroupTypes()
 {
     m_groupTypesTable = new CollegeDataSet.GroupTypesDataTable();
     m_college.AdapterManager.GroupTypesTableAdapter.Fill(m_groupTypesTable);
     foreach (var row in m_groupTypesTable)
     {
         m_comboBoxType.Items.Add(row.group_type_name);
     }
     if (m_comboBoxType.Items.Count > 0)
     {
         m_comboBoxType.SelectedIndex = 0;
     }
 }
Esempio n. 3
0
    private void Init()
    {
        groupTypesDataTable = new CollegeDataSet.GroupTypesDataTable();
        groupDataTable      = new CollegeDataSet.GroupsDataTable();
        studentDataTable    = new CollegeDataSet.StudentsDataTable();
        marksDataTable      = new CollegeDataSet.MarksDataTable();
        subjectsDataTable   = new CollegeDataSet.SubjectsDataTable();
        plansDataTable      = new CollegeDataSet.PlansDataTable();
        marksTypeDataTable  = new CollegeDataSet.MarkTypesDataTable();
        semesterDataTable   = new CollegeDataSet.SemestersDataTable();

        marksIndices    = new List <int>();
        groupsIndices   = new List <int>();
        studentsIndices = new List <int>();

        comboBoxSheet.SelectedIndex   = 0;
        comboBoxSemestr.SelectedIndex = 0;

        BackColor = System.Drawing.Color.FromArgb(255, 255, 225);

        ConnectionSettings settings = LoadConnectionSettings();

        ApplyNewConnectionSettings(settings);
    }