예제 #1
0
 void updateEverything()
 {
     listBoxSubjects.DataSource    = iSubject.getAllSubjects();
     listBoxSubjects.ValueMember   = "subjectName";
     listBoxSubjects.DisplayMember = "subjectName";
     listBoxSubjects.SelectedItem  = null;
     comboBoxSubjcets.Text         = "";
     textBoxSname.Text             = "";
     richTextBoxSdescription.Text  = "";
 }
예제 #2
0
        void fillSubjectKeyCombo()
        {
            iSubjectTableDB iSubject = new iSubjectTableDB();

            comboBoxfkS.DataSource         = iSubject.getAllSubjects();
            comboBoxfkS.DisplayMember      = "subjectName"; comboBoxfkS.ValueMember = "subjectName";
            this.comboBoxfkS.DropDownStyle = ComboBoxStyle.DropDownList; comboBoxfkS.SelectedItem = null;
        }
예제 #3
0
 void reload()
 {
     dataGridView1.DataSource         = iSubject.getAllSubjects();
     dataGridView1.RowTemplate.Height = 33;
     labelAll.Text = "Общая количество предметов: " + iSubject.totalSubject();
 }
예제 #4
0
 public void fillCombo()
 {
     comboBoxSubjcets.DataSource    = iSubject.getAllSubjects();
     comboBoxSubjcets.DisplayMember = "subjectName";
     comboBoxSubjcets.ValueMember   = "subjectName";
 }