Beispiel #1
0
        public void ExpandCreatorOneItem(ReminderCreator creator)
        {
            lock (this)
            {
                var newItem = creator.ExpandOneItem();

                if (creator.IsEmpty())
                {
                    CreatorList.Remove(creator);
                    AddToEmptyCreatorList(creator);
                }

                AddItem(newItem);
            }
        }
Beispiel #2
0
        public void DropCreatorOneItem(ReminderCreator creator)
        {
            lock (this)
            {
                creator.ExpandOneItem();

                if (creator.IsEmpty())
                {
                    CreatorList.Remove(creator);
                    AddToEmptyCreatorList(creator);
                }

                ItemCreatorChangedHandler.BeginInvoke(null, null);
            }
        }