private void button2_Click(object sender, EventArgs e)
        {
            CotizacionIDNum.Value = 0;
            FechaCotPicker.Value  = DateTime.Now;
            ObservacionBox.Clear();
            CantidadBox.Clear();
            PrecioBox.Clear();
            ImporteBox.Clear();
            TotalNum.Value = 0;

            dataGridDetalle.DataSource = null;
        }
示例#2
0
        public void Vaciar()
        {
            IDnumericUpDown1.Value         = 0;
            FechadateTimePicker1.Value     = DateTime.Now;
            ProxFechadateTimePicker1.Value = DateTime.Now;
            CantidadNum.Value = 1;
            TotalBox.Clear();

            ImporteBox.Clear();
            SubBox.Text   = 0.ToString();
            TotalBox.Text = 0.ToString();
            ItbisBox.Text = 0.ToString();
            MantenimientoData.DataSource = null;

            itbis = 0;

            Total = 0;
        }