예제 #1
0
 public void uzupelnienieSelectUczen()
 {
     tmpListStudent = Librarycs.ListaStudent();
     for (int i = 0; i < tmpListStudent.Count(); i++)
     {
         comboBox2.Items.Add(tmpListStudent[i].Imie + " " + tmpListStudent[i].Nazwisko);
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: lechu7/RavenDB
        public void uzupelnianieListyUczniowie()
        {
            dataGridView1.Rows.Clear();
            List <Librarycs.Student> tmpList = Librarycs.ListaStudent();

            for (int i = 0; i < tmpList.Count; i++)
            {
                dataGridView1.Rows.Add(tmpList[i].Id, tmpList[i].Imie, tmpList[i].Nazwisko, "Edytuj", "Usuń");
                dataGridView1.Rows[i].Cells[3].Style.BackColor = Color.Green;
                dataGridView1.Rows[i].Cells[4].Style.BackColor = Color.Red;
            }
        }