Exemplo n.º 1
0
    public override void SetValue(object component, object value)
    {
        DailyRevenues dr = component as DailyRevenues;

        if (dr != null && _index >= 0 && _index < dr.DepartmentList.Count && value is decimal)
        {
            dr.DepartmentList[_index].Total = (decimal)value;
        }
    }
    public override object GetValue(object component)
    {
        DailyRevenues dr = component as DailyRevenues;

        if (dr != null && _index >= 0 && _index < dr.DepartmentList.Count)
        {
            return(dr.DepartmentList[_index].Total);
        }
        else
        {
            return((decimal)0);
        }
    }