private void btAdmin_Click(object sender, EventArgs e) { formUserAdmin admin = new formUserAdmin(dbContainer); admin.Show(); Close(); }
public formAdicionarAdmin(formUserAdmin form, Modelo_Container dbContainer, Administrador admin) { InitializeComponent(); edit = true; adminRepos = new AdminRepository(dbContainer); this.adminParaEdicao = admin; if (edit) //Mudar labels para modo de edição { this.Text = "Editar Administrador"; btAdicionar.Text = "Editar"; labelTitulo.Text = "Editar Administrador"; tbUsername.Text = admin.Username; tbPassword.Text = admin.Password; tbEmail.Text = admin.email; } }
public formAdicionarAdmin(formUserAdmin form, Modelo_Container dbContainer) { InitializeComponent(); adminRepos = new AdminRepository(dbContainer); }