コード例 #1
0
        private void btAdmin_Click(object sender, EventArgs e)
        {
            formUserAdmin admin = new formUserAdmin(dbContainer);

            admin.Show();
            Close();
        }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 public formAdicionarAdmin(formUserAdmin form, Modelo_Container dbContainer)
 {
     InitializeComponent();
     adminRepos = new AdminRepository(dbContainer);
 }