public void NotifyAbout(IViewElement message)
        {
            ViewExpensesInfo expensesInfo = (ViewExpensesInfo)message;

            NewExpensesId      = expensesInfo.Id;
            NewExpensesValue   = expensesInfo.Expenditure;
            NewExpensesType    = EnumWorker.GetValueFromDescription(expensesInfo.ExpensesType);
            NewExpensesDate    = DateTime.Parse(expensesInfo.CostsDate);
            NewExpensesComment = expensesInfo.Comment;
            oldMoneyElement    = (ExpensesInfo)message.ConvertToBO();
        }
 public IBusinessObject ConvertToBO()
 {
     return(new ExpensesInfo(Id, Expenditure, Comment, DateTime.Parse(CostsDate), (ExpensesType)Enum.Parse(typeof(ExpensesType), EnumWorker.GetValueFromDescription(ExpensesType) == 0 ? ExpensesType : EnumWorker.GetValueFromDescription(ExpensesType).ToString())));
 }