Exemple #1
0
        private void agregarRolToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Controls.Clear();
            this.Controls.Add(this.menuStrip1);

            UserControlAgregarRol = new FrbaHotel.ABM_de_Rol.UserControl_Rol(this);
            this.Controls.Add(UserControlAgregarRol);
            UserControlAgregarRol.Location = new System.Drawing.Point(0, 20);
            UserControlAgregarRol.Name     = "UserControlAgregarRol";
        }
        private void agregarRolToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Controls.Clear();
            this.Controls.Add(this.menuStrip1);

            UserControlAgregarRol = new FrbaHotel.ABM_de_Rol.UserControl_Rol(this);
            this.Controls.Add(UserControlAgregarRol);
            UserControlAgregarRol.Location = new System.Drawing.Point(0, 20);
            UserControlAgregarRol.Name = "UserControlAgregarRol";
        }
Exemple #3
0
        public void Modificar_Rol(int idRol)
        {
            this.Controls.Clear();
            this.Controls.Add(this.menuStrip1);

            UserControlAgregarRol = new FrbaHotel.ABM_de_Rol.UserControl_Rol(this);
            this.Controls.Add(UserControlAgregarRol);
            UserControlAgregarRol.Location = new System.Drawing.Point(0, 20);
            UserControlAgregarRol.Name     = "UserControlAgregarRol";

            UserControlAgregarRol.Cargar_Rol(idRol);
        }
        public void Modificar_Rol(int idRol)
        {
            this.Controls.Clear();
            this.Controls.Add(this.menuStrip1);

            UserControlAgregarRol = new FrbaHotel.ABM_de_Rol.UserControl_Rol(this);
            this.Controls.Add(UserControlAgregarRol);
            UserControlAgregarRol.Location = new System.Drawing.Point(0, 20);
            UserControlAgregarRol.Name = "UserControlAgregarRol";

            UserControlAgregarRol.Cargar_Rol(idRol);

        }