Esempio n. 1
0
        private void leerMisDatosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PnlReadUser1 pnl = new PnlReadUser1();

            pnl.pnlPadre = this;
            pnl.user     = this.user;
            pnl.updateData();
            pnl.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //Read user
            int          id   = int.Parse(txtUser.Text);
            User         user = DAOUser.readUser(id);
            PnlReadUser1 pnl  = new PnlReadUser1();

            pnl.user = user;
            pnl.updateData();
            pnl.Show();
            this.Hide();
        }