private void altaBtn_Click(object sender, EventArgs e) { var ins = new InsertarModificar(); ins.ShowDialog(); this.Show(); if (ins.Result == DialogResult.OK) { RefreshRolesData(); } }
private void AbrirModificar(Rol selectedItem) { InsertarModificar ins = new InsertarModificar(ObjectCloner.DeepCopy(selectedItem)); this.Hide(); ins.ShowDialog(); this.Show(); if (ins.Result == DialogResult.OK) { RefreshRolesData(); } }