示例#1
0
 protected void BotonNuevo_Click(object sender, EventArgs e)
 {
     ClearForm();
     GridViewCursos.SelectedIndex = -1;
     GridViewCursos.Enabled       = false;
     PanelAcciones.Visible        = true;
     PanelBotonesGrilla.Visible   = false;
     PanelABM.Visible             = true;
     FormMode       = FormModes.Alta;
     LabelModo.Text = FormMode.ToString();
 }
示例#2
0
 protected void BotonEliminar_Click(object sender, EventArgs e)
 {
     if (this.IsEntitySelected)
     {
         FormMode = FormModes.Baja;
         MapearDeEntidad(this.SelectedID);
         GridViewPersonas.Enabled   = false;
         PanelAcciones.Visible      = true;
         PanelBotonesGrilla.Visible = true;
         PanelABM.Visible           = true;
         LabelModo.Text             = FormMode.ToString();
     }
 }
示例#3
0
 protected void BotonEditar_Click(object sender, EventArgs e)
 {
     if (IsEntitySelected)
     {
         GridViewCursos.Enabled     = false;
         PanelAcciones.Visible      = true;
         PanelBotonesGrilla.Visible = false;
         PanelABM.Visible           = true;
         FormMode       = FormModes.Modificacion;
         LabelModo.Text = FormMode.ToString();
         MapearDeEntidad(this.SelectedID);
     }
 }