Example #1
0
        public LibraryManager(String libraryFolder)
        {
            if (!Directory.Exists (ConfigFolder)) {
                Directory.CreateDirectory (ConfigFolder);
            }

            LibraryFolder = libraryFolder;

            databaseManager = new LibraryDatabaseManager ();
            fileManager = new LibraryFileManager (LibraryFolder);
        }
Example #2
0
        public LibraryManager(String libraryFolder)
        {
            if (!Directory.Exists(ConfigFolder))
            {
                Directory.CreateDirectory(ConfigFolder);
            }

            LibraryFolder = libraryFolder;

            databaseManager = new LibraryDatabaseManager();
            fileManager     = new LibraryFileManager(LibraryFolder);
        }
        public void CreateLibraryManager()
        {
            testManager = new LibraryDatabaseManager (configFolderString);

            book = new Book();
            book.Title = "Sample Book";
            book.Author = "Sample Author";
            book.Genre = "Sample Genre";
            book.YearPublished = 1969;
            book.FilePath = "/home/books/ebooks/book.pdf";
        }
 public override void AwakeFromNib()
 {
     manager = new LibraryDatabaseManager ();
     //source = new LibraryListViewDataSource (manager.Books);
     //Console.WriteLine (manager.Books.Count);
     tableView.DataSource = source;
     tableView.BackgroundColor = NSColor.FromCalibratedRgba (0.0f, 0.0f, 0.0f, 0.0f);
 }