private void DelVisit_Click(object sender, EventArgs e)
 {
     if (GlobalComponents.IsEmptyText(VisitName.Text))
     {
         warningText.Text    = "El campo no puede estar vacío";
         warningText.Visible = true;
     }
     else
     {
         visitJobs.delType(VisitName.Text);
         VisitName.Text = null;
         fillGrid();
     }
 }
Exemple #2
0
 private void DelSection_Click(object sender, EventArgs e)
 {
     if (GlobalComponents.IsEmptyText(SectionName.Text))
     {
         warningText.ForeColor = System.Drawing.Color.Red;
         warningText.Text      = "El campo no puede estar vacío";
         warningText.Visible   = true;
     }
     else
     {
         sectionJobs.delSection(SectionName.Text);
         SectionName.Text = null;
         fillGrid();
     }
 }