Пример #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";
        }
Пример #2
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";
        }
Пример #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);
        }
Пример #4
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);

        }