private void AddRole(object sender) { sel_rol = new RoleModel(); RoleWindow cw = new RoleWindow(sel_rol); if (cw.ShowDialog() == true) { db.AddRole(sel_rol); db.Save(); SetData(); } }