예제 #1
0
        ///
        ///
        ///     Will add a kanbanModel to a specified column within the current working board
        ///
        ///
        public void AddCard(string _nameCard, string _descriptionCard, string _parentDeck)
        {
            kanbanModels.Add(new KanbanModel()
            {
                // Generating Unique Ids
                ID          = IdManager.GenerateId(),
                Title       = _nameCard,
                Description = _descriptionCard,
                // Category Determines which deck this will be put in
                Category = _parentDeck,
                ColorKey = UNFINISHED_CARD_COLOR

                           /*
                            *
                            *  TODO: MAKE THIS PATH TO A IMAGE WORK
                            *
                            */

                           // ImageURL = something...
            });
            thisKanban.ItemsSource = kanbanModels.Where(kanbanModel => (string)kanbanModel.ColorKey == UNFINISHED_CARD_COLOR).ToList();
        }
 protected SynchronizationPrimitive()
 {
     _id = IdManager <T> .GenerateId();
 }