コード例 #1
0
        private void picQuitarPeligro_Click(object sender, EventArgs e)
        {
            clsParrafo reg = lstPeligro.Find(i => i.TEXTO == txtPeligro.Text);

            if (reg != null)
            {
                lstPeligro.Remove(reg);
                CargarGrillaPeligro();
                txtPeligro.Text = "";
            }
        }
コード例 #2
0
        private void picQuitarElementos_Click(object sender, EventArgs e)
        {
            clsParrafo reg = lstElementos.Find(i => i.TEXTO == txtElementos.Text);

            if (reg != null)
            {
                lstElementos.Remove(reg);
                CargarGrillaElementos();
                txtElementos.Text = "";
            }
        }
コード例 #3
0
        private void picAgregarHechos_Click(object sender, EventArgs e)
        {
            clsParrafo reg = lstHechos.Find(i => i.TEXTO == txtHechos.Text);

            if (txtHechos.Text == "")
            {
                MessageBox.Show("Ingrese Hechos requeridos");
            }
            else if (reg == null)
            {
                reg       = new clsParrafo();
                reg.ID    = dgvHechos.RowCount + 1;
                reg.TEXTO = txtHechos.Text.Trim();
                lstHechos.Add(reg);
                CargarGrillaHechos();
                txtHechos.Text = "";
            }
        }
コード例 #4
0
        private void picAgregarPeligro_Click(object sender, EventArgs e)
        {
            clsParrafo reg = lstPeligro.Find(i => i.TEXTO == txtPeligro.Text);

            if (txtPeligro.Text == "")
            {
                MessageBox.Show("Ingrese Peligro de Fuga u Obstaculización requerido");
            }
            else if (reg == null)
            {
                reg       = new clsParrafo();
                reg.ID    = dgvPeligro.RowCount + 1;
                reg.TEXTO = txtPeligro.Text.Trim();
                lstPeligro.Add(reg);
                CargarGrillaPeligro();
                txtPeligro.Text = "";
            }
        }
コード例 #5
0
ファイル: AbstencionIncoacion.cs プロジェクト: ridimdev/proy
        private void picAgregarAtendiendo_Click(object sender, EventArgs e)
        {
            clsParrafo reg = lstAtendiendo.Find(i => i.TEXTO == txtAtendiendo.Text);

            if (txtAtendiendo.Text == "")
            {
                MessageBox.Show("Ingrese historia");
            }
            else if (reg == null)
            {
                reg       = new clsParrafo();
                reg.ID    = dgvAtendiendo.RowCount + 1;
                reg.TEXTO = txtAtendiendo.Text.Trim();
                lstAtendiendo.Add(reg);
                CargarGrillaAtendiendo();
                txtAtendiendo.Text = "";
            }
        }
コード例 #6
0
ファイル: AbstencionIncoacion.cs プロジェクト: ridimdev/proy
        private void picAgregarJuicio_Click(object sender, EventArgs e)
        {
            clsParrafo reg = lstJuicio.Find(i => i.TEXTO == txtJuicio.Text);

            if (txtJuicio.Text == "")
            {
                MessageBox.Show("Ingrese juicio de subsunción");
            }
            else if (reg == null)
            {
                reg       = new clsParrafo();
                reg.ID    = dgvJuicio.RowCount + 1;
                reg.TEXTO = txtJuicio.Text.Trim();
                lstJuicio.Add(reg);
                CargarGrillaJuicio();
                txtJuicio.Text = "";
            }
        }