private void button1_Click(object sender, EventArgs e)
 {
     dataGridView1.DataSource = null;
     textBox3.Text            = "";
     if (String.IsNullOrEmpty(label6.Text) == false)
     {
         decimal soma = 0;
         int     cont = 0;
         dataGridView1.DataSource = DALCadastro.FluxoVendaTudoPag5(monthCalendar1.SelectionStart.Date.ToShortDateString());
         if (dataGridView1.Rows.Count > 0)
         {
             for (int i = 0; i < dataGridView1.Rows.Count; i++)
             {
                 string prazo1 = dataGridView1.Rows[i].Cells[1].Value.ToString();
                 if (prazo1 == "a prazo")
                 {
                     cont++;
                 }
                 if (prazo1 == "a prazo_parcial")
                 {
                     cont++;
                 }
                 if (prazo1 == "Pagamento Misto")
                 {
                     cont++;
                 }
                 if (cont == 0)
                 {
                     soma += Convert.ToDecimal(dataGridView1.Rows[i].Cells[5].Value);
                     dataGridView1.Rows[i].Cells[5].Style.BackColor = System.Drawing.Color.Cyan;
                 }
                 cont = 0;
             }
             textBox3.Text = Convert.ToString(soma);
         }
         dataGridView2.DataSource = DALCadastro.ListaAUXVendas(monthCalendar1.SelectionStart.Date.ToShortDateString());
         if (dataGridView2.Rows.Count > 0)
         {
             for (int i = 0; i < dataGridView2.Rows.Count; i++)
             {
                 string fp = dataGridView2.Rows[i].Cells[5].Value.ToString();
                 if (String.IsNullOrEmpty(fp) == false)
                 {
                     if (fp == "Pagamento Fiado Parcial")
                     {
                         soma = soma + Convert.ToDecimal(dataGridView2.Rows[i].Cells[6].Value);
                         dataGridView2.Rows[i].Cells[6].Style.BackColor = System.Drawing.Color.Cyan;
                     }
                 }
                 else
                 {
                     if (checkBox1.Checked == true)
                     {
                         if (dataGridView2.Rows[i].Cells[1].Value.ToString() == "Saldo Inicial")
                         {
                             soma = soma + Convert.ToDecimal(dataGridView2.Rows[i].Cells[6].Value);
                             dataGridView2.Rows[i].Cells[6].Style.BackColor = System.Drawing.Color.Cyan;
                             textBox3.Text = Convert.ToString(soma);
                         }
                         else
                         {
                             soma = soma - Convert.ToDecimal(dataGridView2.Rows[i].Cells[6].Value);
                             dataGridView2.Rows[i].Cells[6].Style.BackColor = System.Drawing.Color.Coral;
                             textBox3.Text = Convert.ToString(soma);
                         }
                     }
                 }
             }
         }
         textBox3.Text = Convert.ToString(soma);
     }
     else
     {
         MessageBox.Show("Selecione uma Data");
     }
 }