Exemplo n.º 1
0
        public void GetActionList()
        {
            access = new BrienzDataAccess();

            List <BrienzAction> actionCollection = access.GetAllAction();
            int number = 0;

            foreach (BrienzAction ActionIndex in actionCollection.OrderBy(c => c.Priority))
            {
                actionList.Add(new ActionStructure
                {
                    ID            = ++number,
                    ActionID      = ActionIndex.ActionID,
                    Subject       = ActionIndex.Subject,
                    EndTime       = ActionIndex.EndTime ?? DateTime.Now,
                    FromResource  = ActionIndex.FromResource,
                    IsAllDayEvent = ActionIndex.IsAllDayEvent ?? false,
                    Location      = ActionIndex.Location,
                    Priority      = ActionIndex.Priority,
                    DocumentXaml  = ActionIndex.ActionContent,
                    StartTime     = ActionIndex.StartTime ?? DateTime.Now
                });
            }
        }