public ModificacionRol(AbmRol parent) { this.parent = parent; InitializeComponent(); this.label1.Text = "Cree un nuevo rol"; this.button1.Text = "Crear"; this.button1.Click += this.insert; this.fill_functionalities_list(); }
public ModificacionRol(DataGridViewRow row, AbmRol parent) { this.role_code = Int32.Parse(row.Cells["rol_id"].Value.ToString()); this.parent = parent; InitializeComponent(); this.textBox1.Text = row.Cells["rol_nombre"].Value.ToString(); this.checkBox1.Checked = (bool)row.Cells["rol_habilitado"].Value; this.button1.Click += this.update; this.fill_functionalities_list(); }