/// <summary>
 /// Действия при инициализации страницы MenuLibrarianPage
 /// </summary>
 public MenuLibrarianPage()
 {
     InitializeComponent();
     TradingDataGrid.ItemsSource      = tradingController.GetTradingInfo();
     BookDataGrid.ItemsSource         = booksController.BooksInfoOutput();
     TradingClientsGrid.ItemsSource   = clientsController.GetClientsWithTrading();
     WaitingBooksDataGrid.ItemsSource = waitingController.GetWaitingInfo();
 }
        /// <summary>
        /// Действия при инициализации страницы MenuClientPage
        /// </summary>
        public MenuClientPage()
        {
            InitializeComponent();
            AllBooksDataGrid.ItemsSource         = booksController.BooksInfoOutput();
            AvailableBooksDataGrid.ItemsSource   = booksController.GetAvailableBooks(Settings.Default.login);
            ClientTakenBooksDataGrid.ItemsSource = booksController.GetTradingBooks();

            FilterList.SelectedIndex = 0;
        }
        /// <summary>
        /// Действия при инициализации страницы EditTradingPage
        /// </summary>
        /// <param name="context" - контекст базы данных></param>
        /// <param name="bookDataContext" - выбранная строка дата грид></param>
        public EditTradingPage(LibraryEntities context, trading bookDataContext)
        {
            InitializeComponent();

            NewBookComboBox.DisplayMemberPath = "book_id";
            NewBookComboBox.SelectedValuePath = "book_id";

            NewBookComboBox.ItemsSource   = booksController.BooksInfoOutput();
            NewBookComboBox.SelectedIndex = booksController.SelectedIndexBookComboBox(bookDataContext, NewBookComboBox);

            foreach (var item in tradingController.GetTradingString(Settings.Default.selectBook2))
            {
                NewTicketInput.Text    = item.ticket;
                NewDeliveryInput.Text  = Convert.ToString(item.delivery.ToString("yyyy.MM.dd"));
                NewReceptionInput.Text = Convert.ToString(item.reception.ToString("yyyy.MM.dd"));
            }

            updatingTrading = tradingController.GetTradingString(Settings.Default.selectBook2);
        }
 /// <summary>
 /// Действия при инициализации страницы MenuAdminPage
 /// </summary>
 public MenuAdminPage()
 {
     InitializeComponent();
     BookDataGrid.ItemsSource   = booksController.BooksInfoOutput();
     ClientDataGrid.ItemsSource = clientsController.ClientsInfoOutputWithOutAdmin();
 }