示例#1
0
        public ModifyAVPage(int docID, DocumentsManagementPage page)
        {
            _docID = docID;
            InitializeComponent();

            Document doc = SDM.LMS.GetDoc(docID);

            TitleTB.AppendText(doc.Title);
            AutorsTB.AppendText(doc.Autors);
            PriceTB.AppendText(doc.Price.ToString());
            CopiesTB.AppendText(doc.Quantity.ToString());
            TagsTB.AppendText(doc.Tags);

            prevPage = page;
        }
示例#2
0
        public ModifyBookPage(int docID, DocumentsManagementPage page)
        {
            _docID = docID;
            InitializeComponent();

            Document doc = SDM.LMS.GetDoc(docID);

            TitleTB.AppendText(doc.Title);
            AutorsTB.AppendText(doc.Autors);
            PublisherTB.AppendText(doc.Publisher);
            PublishYearTB.AppendText(doc.PublishYear.ToString());
            EditionTB.AppendText(doc.Edition);
            DescriptionTB.AppendText(doc.Description);
            PriceTB.AppendText(doc.Price.ToString());
            IsBestsellerCB.SelectedIndex = doc.IsBestseller ? 0 : 1;
            CopiesTB.AppendText(doc.Quantity.ToString());
            TagsTB.AppendText(doc.Tags);

            prevPage = page;
        }