Exemplo n.º 1
0
        protected void MoveItem(IMitigation mitigation, WorkItemStatus initialStatus, WorkItemStatus finalStatus)
        {
            var indexInitial = _captions.IndexOf(initialStatus.GetEnumLabel());
            var indexFinal   = _captions.IndexOf(finalStatus.GetEnumLabel());
            var item         = GetItem(mitigation, indexInitial);

            if (item != null && indexInitial >= 0 && indexFinal >= 0)
            {
                Remove(item, indexInitial);
                Add(item, indexFinal);

                RefreshPalette(indexInitial);
                RefreshPalette(indexFinal);
            }
        }
Exemplo n.º 2
0
        protected void AddItem(IMitigation mitigation, WorkItemStatus status, string assignedTo)
        {
            var index = _captions.IndexOf(status.GetEnumLabel());

            if (mitigation != null && index >= 0)
            {
                var item = new KanbanItem(mitigation, index);
                if (!string.IsNullOrWhiteSpace(assignedTo))
                {
                    item.SetInfo("Assigned To", assignedTo);
                }
                item.MoveRequired += ItemOnMoveRequired;
                Add(item, index);
            }
        }