예제 #1
0
        public void fSpisMagazynow()
        {
            fbLogowanie = new fblog();
            List<string>[] lstDokumenty = fbLogowanie.fUPRMAg(settings.IDLogin);

            dataGridView3.Rows.Clear();
            dataGridView4.Rows.Clear();

            for (int i = 0; i < lstDokumenty[0].Count; i++)
            {
                int number = dataGridView4.Rows.Add();
                dataGridView4.Rows[number].Cells[0].Value = lstDokumenty[0][i].ToString();
                dataGridView4.Rows[number].Cells[1].Value = lstDokumenty[1][i].ToString();
                dataGridView4.Rows[number].Cells[2].Value = lstDokumenty[2][i].ToString();
            }
        }
예제 #2
0
        private void fMagazynyListUPR(string sIDUser)
        {
            fbLogowanie = new fblog();
            List<string>[] lstMagazyny = fbLogowanie.fUPRMAg(sIDUser);

            dataGridView4.Rows.Clear();

            for (int i = 0; i < lstMagazyny[0].Count; i++)
            {
                int number = dataGridView4.Rows.Add();
                dataGridView4.Rows[number].Cells[0].Value = lstMagazyny[0][i].ToString();
                dataGridView4.Rows[number].Cells[1].Value = lstMagazyny[1][i].ToString();
                dataGridView4.Rows[number].Cells[2].Value = lstMagazyny[2][i].ToString();

            }
        }