Exemplo n.º 1
0
 public void AddItem(PrintItemWrapper item, int indexToInsert = -1)
 {
     if (indexToInsert == -1)
     {
         indexToInsert = PrintItems.Count;
     }
     PrintItems.Insert(indexToInsert, item);
     OnItemAdded(new IndexArgs(indexToInsert));
 }
Exemplo n.º 2
0
 private void DoAddItem(PrintItemWrapper item, int indexToInsert)
 {
     if (indexToInsert == -1)
     {
         indexToInsert = PrintItems.Count;
     }
     PrintItems.Insert(indexToInsert, item);
     OnItemAdded(new IndexArgs(indexToInsert));
     SaveDefaultQueue();
 }
Exemplo n.º 3
0
        private void DoAddItem(PrintItemWrapper item, int insertAt)
        {
            if (insertAt == -1)
            {
                insertAt = PrintItems.Count;
            }

            PrintItems.Insert(insertAt, item);
            OnItemAdded(new ItemChangedArgs(insertAt));
            SaveDefaultQueue();
        }
Exemplo n.º 4
0
        public void AddItem(PrintItemWrapper item, int indexToInsert = -1)
        {
            if (indexToInsert == -1)
            {
                indexToInsert = PrintItems.Count;
            }
            PrintItems.Insert(indexToInsert, item);
            // Check if the collection we are adding to is the the currently visible collection.
            List <ProviderLocatorNode> currentDisplayedCollection = LibraryProviderSQLite.Instance.GetProviderLocator();

            if (currentDisplayedCollection.Count > 0 && currentDisplayedCollection[1].Key == LibraryProviderSQLite.StaticProviderKey)
            {
                //OnItemAdded(new IndexArgs(indexToInsert));
            }
            item.PrintItem.PrintItemCollectionID = RootLibraryCollection.Id;
            item.PrintItem.Commit();
        }