Remove Commit method
This commit is contained in:
parent
51fee4ae24
commit
e9a331292a
@ -78,7 +78,7 @@ namespace LibationWinForms.AvaloniaUI.ViewModels
|
|||||||
UserDefinedItem.ItemChanged += UserDefinedItem_ItemChanged;
|
UserDefinedItem.ItemChanged += UserDefinedItem_ItemChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region detect changes to the model, update the view, and save to database.
|
#region detect changes to the model, update the view.
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This event handler receives notifications from the model that it has changed.
|
/// This event handler receives notifications from the model that it has changed.
|
||||||
@ -113,11 +113,6 @@ namespace LibationWinForms.AvaloniaUI.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Save edits to the database</summary>
|
|
||||||
public void Commit(string newTags, LiberatedStatus bookStatus, LiberatedStatus? pdfStatus)
|
|
||||||
// MVVM pass-through
|
|
||||||
=> Book.UpdateBook(newTags, bookStatus: bookStatus, pdfStatus: pdfStatus);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Data Sorting
|
#region Data Sorting
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user