Beispiel #1
0
        private void fUserList()
        {
            fbLogowanie = new fblog();
            List<string>[] lstUsers = fbLogowanie.fUsers();

            dataGridView2.Rows.Clear();

            for (int i = 0; i < lstUsers[0].Count; i++)
            {
                int number = dataGridView2.Rows.Add();
                dataGridView2.Rows[number].Cells[0].Value = lstUsers[0][i].ToString();
                dataGridView2.Rows[number].Cells[1].Value = lstUsers[1][i].ToString();
                dataGridView2.Rows[number].Cells[2].Value = lstUsers[2][i].ToString();
                dataGridView2.Rows[number].Cells[3].Value = lstUsers[3][i].ToString();
                dataGridView2.Rows[number].Cells[4].Value = lstUsers[4][i].ToString();
                if (lstUsers[2][i].ToString() == "") dataGridView2.Rows[number].DefaultCellStyle.BackColor = Color.Tomato;
            }
        }