Пример #1
0
        public Edit(Main m, int id)
        {
            VendedoresDAO vDAO = new VendedoresDAO();

            this.m    = m;
            v         = vDAO.Recupera(id);
            cel.Text  = v.cel;
            cpf.Text  = v.cpf;
            nome.Text = v.nome;
            id.Text   = id.ToString();
            tel.Text  = v.tel;
            nick.Text = v.nick;
        }
Пример #2
0
        public Update(Main m, int id)
        {
            VendedoresDAO vDAO = new VendedoresDAO();

            this.m = m;
            InitializeComponent();
            v          = vDAO.Recupera(id);
            cel.Text   = v.cel;
            cpf.Text   = v.cpf;
            nome.Text  = v.nome;
            tel.Text   = v.tel;
            txtID.Text = id.ToString();
            nick.Text  = v.nick;
        }