private void SavePayment()
        {
            if (_currentMonthlyPayment == null)
            {
                _currentMonthlyPayment = new MonthlyPaymentBo();
            }
            _currentMonthlyPayment.Description = txtDescription.Text;

            if (clcEstimatedAmount.EditValue != null)
                _currentMonthlyPayment.EstimatedAmount = clcEstimatedAmount.Value;
            else
                _currentMonthlyPayment.EstimatedAmount = null;

            if (clcBillingStartDay.EditValue != null)
                _currentMonthlyPayment.BillingStartDay = (byte)clcBillingStartDay.Value;
            else
                _currentMonthlyPayment.BillingStartDay = null;

            if (clcBillingEndDay.EditValue != null)
                _currentMonthlyPayment.BillingEndDay = (byte)clcBillingEndDay.Value;
            else
                _currentMonthlyPayment.BillingEndDay = null;

            if (dateEditStartDate.EditValue != null)
                _currentMonthlyPayment.StartDate = dateEditStartDate.DateTime;
            else
                _currentMonthlyPayment.StartDate = null;

            if (dateEditEndDate.EditValue != null)
                _currentMonthlyPayment.EndDate = dateEditEndDate.DateTime;
            else
                _currentMonthlyPayment.EndDate = null;

            _currentMonthlyPayment.Completed = chkCompleted.Checked;

            _monthlyPaymentRepository.Save(_currentMonthlyPayment);
        }
 public void SetCurrentId(int currentId)
 {
     _currentMonthlyPayment = _monthlyPaymentRepository.Get(currentId);
 }