Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public ModificacionRol(DataGridViewRow row, AbmRol parent)
 {
     this.role_code = Int32.Parse(row.Cells["cod_rol"].Value.ToString());
     this.parent    = parent;
     InitializeComponent();
     this.textBox1.Text     = row.Cells["nombre"].Value.ToString();
     this.checkBox1.Checked = (bool)row.Cells["habilitado"].Value;
     this.button1.Click    += this.update;
     this.fill_functionalities_list();
 }