コード例 #1
0
ファイル: AddDocPage.xaml.cs プロジェクト: BoogiemanNSK/ILib
 public AddDocPage(DocumentsManagementPage page, bool add, int docID)
 {
     _add          = add;
     _docID        = docID;
     _previousPage = page;
     InitializeComponent();
 }
コード例 #2
0
        private void DocumentsManagementClick(object sender, RoutedEventArgs e)
        {
            DocumentsManagementPage DocManagement = new DocumentsManagementPage();

            DocManagement.Show();
            Close();
        }
コード例 #3
0
        private void OnBackClick(object sender, RoutedEventArgs e)
        {
            DocumentsManagementPage documentsManagementPage = new DocumentsManagementPage();

            documentsManagementPage.Show();
            Close();
        }
コード例 #4
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;
        }
コード例 #5
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;
        }
コード例 #6
0
 public AddAVPage(DocumentsManagementPage page)
 {
     _previousPage = page;
     InitializeComponent();
 }