예제 #1
0
        private void Fixer_Budget_Load(object sender, EventArgs e)
        {
            txtMontantProvisoire.Enabled = false;
            txtBudgetCulturel.Enabled    = false;
            txtBudgetLoisir.Enabled      = false;
            comboAnnee.Items.Add((bc.MaxAnnee() + 1).ToString());
            viewResteBudget.Text = "" + (bcc.getMontantProvisoire("Activité culturel") + bcc.getMontantProvisoire("Activité de loisir"));
            btFixer.Enabled      = false;
            DateValue d = new DateValue();

            if ((d.getDayToday().Equals("29")) && (d.getMonthToday().Equals("04")))
            {
                //"Vrai"
            }
            else
            {
                //faux
            }
            if ((d.getDayToday().Equals("29") == true) && (!d.getMonthToday().Equals("04")) == true)
            {
                MessageBox.Show(d.getDayToday() + "  month" + d.getMonthToday());
                txtMontantFinal.Enabled   = true;
                txtBudgetCulturel.Enabled = false;
                txtBudgetLoisir.Enabled   = false;
                comboAnnee.Enabled        = true;
            }
            else
            {
                txtMontantFinal.Enabled   = false;
                txtBudgetCulturel.Enabled = false;
                txtBudgetLoisir.Enabled   = false;
                comboAnnee.Enabled        = false;
            }
        }