Example #1
0
        private void bttOK_Click(object sender, EventArgs e)
        {
            CBBudget bud = new CBBudget();

            bud.Load(miBudgetID);
            bud.Description = txtDescription.Text;
            bud.PreparedBy  = txtPreparedBy.Text;
            bud.Contingency = Convert.ToDecimal(txtContingency.Text);
            bud.Save();

            if (OnBudgetPropertiesChanged != null)
            {
                string[] vals = new string[2];

                vals[0] = txtDescription.Text;
                vals[1] = txtContingency.Text;

                OnBudgetPropertiesChanged(vals, 2);
            }

            this.Close();
        }