Exemplo n.º 1
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            korisnik  k  = new korisnik();
            DataTable dt = Base.radniciBox(k);

            if (dt.Rows.Count > 0)
            {
                textBox1.Text = dt.Rows[0][0].ToString();
                textBox2.Text = dt.Rows[0][1].ToString();
                textBox3.Text = dt.Rows[0][2].ToString();
                textBox5.Text = dt.Rows[0][4].ToString();
            }
            else
            {
                MessageBox.Show("Check username");
            }
        }
Exemplo n.º 2
0
        public DataTable radniciBox()
        {
            DataTable dt = Base.radniciBox(this);

            return(dt);
        }