Beispiel #1
0
        public Book(BookSettings settings)
        {
            if (settings == null) throw new ArgumentNullException("settings");

            this.BookID = settings.BookID;
            this.CatalogueID = settings.CatalogueID;
            this.SysNo = settings.SysNo;
            this.ISBN = settings.ISBN;
            this.ISSN = settings.ISSN;
            this.NBN = settings.NBN;
            this.OCLC = settings.OCLC;
            this.Author = settings.Author;
            this.Title = settings.Title;
            this.Year = settings.Year;
            this.Volume = settings.Volume;
            this.Barcode = settings.Barcode;
        }
Beispiel #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public BookSettings GetSettings()
        {
            BookSettings settitngs = new BookSettings();
            settitngs.BookID = this.BookID;
            settitngs.CatalogueID = this.CatalogueID;
            settitngs.SysNo = this.SysNo;
            settitngs.ISBN = this.ISBN;
            settitngs.ISSN = this.ISSN;
            settitngs.NBN = this.NBN;
            settitngs.OCLC = this.OCLC;
            settitngs.Author = this.Author;
            settitngs.Title = this.Title;
            settitngs.Year = this.Year;
            settitngs.Volume = this.Volume;
            settitngs.Barcode = this.Barcode;

            return settitngs;
        }
Beispiel #3
0
 public void Load(BookSettings settings)
 {
     if (settings != null)
     {
         if (settings.BookID != 0)
         {
             Load(DozpController.GetBook(Settings.Default.LastScanBook.BookID));
         }
         else
         {
             Load(new Book(Settings.Default.LastScanBook));
         }
     }
     else
     {
         Clear();
     }
 }