Example #1
0
        private void altaBtn_Click(object sender, EventArgs e)
        {
            var ins = new InsertarModificar();

            ins.ShowDialog();

            this.Show();

            if (ins.Result == DialogResult.OK)
            {
                RefreshRolesData();
            }
        }
Example #2
0
        private void AbrirModificar(Rol selectedItem)
        {
            InsertarModificar ins = new InsertarModificar(ObjectCloner.DeepCopy(selectedItem));

            this.Hide();

            ins.ShowDialog();

            this.Show();

            if (ins.Result == DialogResult.OK)
            {
                RefreshRolesData();
            }
        }