コード例 #1
0
        private void BtnCalcula_Click(object sender, EventArgs e)
        {
            double DblDiasUteis = Convert.ToDouble(NudDiasPrazo.Value);

            DtpDataChapada.Value = McaData.SelectionStart.AddDays(DblDiasUteis);
            DblDiasUteis         = ClsDiaUtil.NumeroDiasUteis(DblDiasUteis, McaData.SelectionStart, RbtSoma.Checked);
            DtpDataFutura.Value  = McaData.SelectionStart.AddDays(DblDiasUteis);
            LblResposta.Text     = DblDiasUteis.ToString();
        }
コード例 #2
0
        private void BtnCalculaAmanha_Click(object sender, EventArgs e)
        {
            double DblDiasUteis = 1;

            NudDiasPrazo.Value     = Convert.ToDecimal(DblDiasUteis);
            McaData.SelectionStart = DateTime.Now;

            DtpDataChapada.Value = McaData.SelectionStart.AddDays(DblDiasUteis);
            DblDiasUteis         = ClsDiaUtil.NumeroDiasUteis(DblDiasUteis, null);
            DtpDataFutura.Value  = McaData.SelectionStart.AddDays(DblDiasUteis);
            LblResposta.Text     = DblDiasUteis.ToString();
        }