/// <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); }
/// <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); }
/// <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); }