You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.4 KiB
68 lines
1.4 KiB
using Model;
|
|
using Model.Group;
|
|
using System.Collections.ObjectModel;
|
|
using System.Reflection.Metadata.Ecma335;
|
|
using System.Xml.Linq;
|
|
using ToolKit;
|
|
|
|
namespace Wrapper
|
|
{
|
|
public class BookViewModel : BaseViewModel
|
|
{
|
|
ILibraryManager LibraryManager { get; set; }
|
|
|
|
/*
|
|
public ReadOnlyObservableCollection<Book> Books { get; set; }
|
|
private ReadOnlyObservableCollection<Book> books
|
|
{
|
|
get => Books;
|
|
set
|
|
{
|
|
if (value == null) { return; }
|
|
setProperty(books, value);
|
|
}
|
|
}*/
|
|
|
|
|
|
public BookViewModel(ILibraryManager _libraryManager)
|
|
{
|
|
this.LibraryManager = _libraryManager;
|
|
}
|
|
|
|
public int Index {
|
|
get { return index; }
|
|
private set
|
|
{
|
|
setProperty(ref index, value);
|
|
}
|
|
|
|
}
|
|
private int index;
|
|
|
|
|
|
|
|
public int Count
|
|
{
|
|
get { return count; }
|
|
private set
|
|
{
|
|
setProperty(ref count, value);
|
|
}
|
|
|
|
}
|
|
private int count;
|
|
|
|
|
|
public int NbBook
|
|
{
|
|
get { return nbBook; }
|
|
private set
|
|
{
|
|
setProperty(ref nbBook, value);
|
|
}
|
|
|
|
}
|
|
private int nbBook;
|
|
|
|
}
|
|
} |