private void BindTaskData()
        {
            BindingList <object> taskList = new BindingList <object>();

            foreach (var item in View.Context.BindingSource)
            {
                ProjectTaskLookBoardData boardData = new ProjectTaskLookBoardData();

                boardData.Name            = item.AsDyanmic().Name;
                boardData.TaskId          = item.AsDyanmic().TaskId;
                boardData.StatusCode      = item.AsDyanmic().StatusCode;
                boardData.OwnerFullName   = item.AsDyanmic().OwnerFullName;
                boardData.ActualWorkHours = item.AsDyanmic().ActualWorkHours;
                boardData.Effort          = item.AsDyanmic().Effort;
                if (item.AsDyanmic().PriorityCode != null)
                {
                    boardData.ProjectName = GetLocalizedPickListValue(EntityName, "PriorityCode", item.AsDyanmic().PriorityCode);
                }
                boardData.ProjectIterationName = Properties.Resources.colSumEffort + ":" + item.AsDyanmic().Effort;
                boardData.Description          = Properties.Resources.colSumQuoteWorkHours + ":" + item.AsDyanmic().ActualWorkHours;
                SetBackColor(boardData);
                taskList.Add(boardData);
            }
            View.BindTaskData(taskList);
        }
 private void SetBackColor(ProjectTaskLookBoardData boardData)
 {
     if (string.IsNullOrEmpty(boardData.OwnerFullName))
     {
         return;
     }
     if (_bgColorList.Keys.Contains(boardData.OwnerFullName))
     {
         boardData.BgColor = _bgColorList[boardData.OwnerFullName];
     }
     else
     {
         boardData.BgColor = _colorList[_bgColorList.Count % 16];
         _bgColorList.Add(boardData.OwnerFullName, boardData.BgColor);
     }
 }