예제 #1
0
 private void BtnCancelar_Click(object sender, EventArgs e)
 {
     TxtCant.Clear();
     TxtPrec.Clear();
     TxtSal.Clear();
     TxtSalba.Clear();
 }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (TxtDescrip.Text.Trim().Length == 0)
            {
                MessageBox.Show("INGRESE UN DATO");
                TxtDescrip.Focus();
                return;
            }
            if (TxtCant.Text.Trim().Length == 0)
            {
                MessageBox.Show("INGRESE UN DATO");
                TxtCant.Focus();
                return;
            }
            if (TxtPrecu.Text.Trim().Length == 0)
            {
                MessageBox.Show("INGRESE UN DATO");
                TxtPrecu.Focus();
                return;
            }
            cant  = Convert.ToDouble(TxtCant.Text);
            precu = Convert.ToDouble(TxtPrecu.Text);
            LstMostrar.Items.Add(TxtDescrip.Text.Trim());
            LstCatn.Items.Add(TxtCant.Text.Trim());
            LstPrecu.Items.Add(TxtPrecu.Text.Trim());
            LstTotal.Items.Add(cant * precu);

            TxtCant.Clear();
            TxtDescrip.Clear();
            TxtPrecu.Clear();
            TxtDescrip.Focus();
        }
예제 #3
0
 private void BtnLimpiar_Click(object sender, EventArgs e)
 {
     TxtCant.Clear();
     TxtPrecu.Clear();
     TxtTotalp.Clear();
     TxtCant.Focus();
 }
예제 #4
0
 private void BtnCancelar_Click(object sender, EventArgs e)
 {
     TxtCant.Clear();
     TxtTotalp.Clear();
     TxtCant.Focus();
 }