コード例 #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            //ucita info
            int    indexRow = dataGridView1.CurrentRow.Index;
            string ime      = (string)dataGridView1[1, indexRow].Value;
            string prezime  = (string)dataGridView1[2, indexRow].Value;

            prenos = DataProvider.GetZaposlen(ime, prezime);

            FormUpdateZaposleni fnz = new FormUpdateZaposleni();

            fnz.Show();
            ucitajZaposlene();
        }
コード例 #2
0
ファイル: FormAdmin.cs プロジェクト: Zeljko97/Social-Service
        private void btnUpdate_Click(object sender, EventArgs e) // zaposleni
        {
            /* int indexRow = dataGridView1.CurrentRow.Index;
             * ime = dataGridView1[1, indexRow].Value.ToString();
             * prezime = dataGridView1[2, indexRow].Value.ToString() ;
             *
             * FormUpdateZaposleni fuz = new FormUpdateZaposleni();
             * fuz.Show();*/

            //ucita info
            int    indexRow = dataGridView2.CurrentRow.Index;
            string ime      = (string)dataGridView2[1, indexRow].Value;
            string prezime  = (string)dataGridView2[2, indexRow].Value;

            prenos = DataProvider.GetZaposlen(ime, prezime);

            FormUpdateZaposleni fnz = new FormUpdateZaposleni();

            fnz.Show();
        }