예제 #1
0
        /// <summary>
        /// Saves the Category to the DB then closes the window.
        /// </summary>
        /// <param name="window">The window doing the closing.</param>
        private void saveAndClose(Window window)
        {
            //Just always use the defaults in here. Won't matter if they are the same as in the DB anyway.
            Category newCat = new Category(NameText, color: ColorText, priority: PriorityText);

            SQLiteDataAccess.AddNewCategory(newCat);

            CloseHelper.CloseWindow(window);
        }
예제 #2
0
 /// <summary>
 /// Saves the Files to the DB then closes the window.
 /// </summary>
 /// <param name="window">The window doing the closing.</param>
 private void saveAndClose(Window window)
 {
     SQLiteDataAccess.AddNewTag(NewTag);
     CloseHelper.CloseWindow(window);
 }
예제 #3
0
 /// <summary>
 /// Saves the Files to the DB then closes the window.
 /// </summary>
 /// <param name="window">The window doing the closing.</param>
 private void saveAndClose(Window window)
 {
     addFilesToDB();
     //TODO: Open a new tab with all of the added files as the search to make it easy to tag the new stuff.
     CloseHelper.CloseWindow(window);
 }