Пример #1
0
        private void AddBook_Click(object sender, RoutedEventArgs e)
        {
            App.Current.MainWindow.IsEnabled = false;
            DBupdateWindow addBookWindow = new DBupdateWindow();

            addBookWindow.updateType.Content = new PageAddBook();
            addBookWindow.Title = "Add book";
            addBookWindow.Show();
        }
Пример #2
0
        private void updateCond_Click(object sender, RoutedEventArgs e)
        {
            App.Current.MainWindow.IsEnabled = false;
            DBupdateWindow UpdCondWindow = new DBupdateWindow();

            UpdCondWindow.updateType.Content = new PageUpdCondition();
            UpdCondWindow.Title = "Change book condition";
            UpdCondWindow.Show();
        }
Пример #3
0
        private void updateAddr_Click(object sender, RoutedEventArgs e)
        {
            App.Current.MainWindow.IsEnabled = false;
            DBupdateWindow UpdAddrWindow = new DBupdateWindow();

            UpdAddrWindow.updateType.Content = new PageUpdAddress();
            UpdAddrWindow.Title = "Change address";
            UpdAddrWindow.Show();
        }
Пример #4
0
        private void updatePhone_Click(object sender, RoutedEventArgs e)
        {
            App.Current.MainWindow.IsEnabled = false;
            DBupdateWindow UpdPhoneWindow = new DBupdateWindow();

            UpdPhoneWindow.updateType.Content = new PageUpdPhone();
            UpdPhoneWindow.Title = "Change phone number";
            UpdPhoneWindow.Show();
        }
Пример #5
0
        private void RemoveMember_Click(object sender, RoutedEventArgs e)
        {
            App.Current.MainWindow.IsEnabled = false;
            DBupdateWindow RemMemberWindow = new DBupdateWindow();

            RemMemberWindow.updateType.Content = new PageRemMember();
            RemMemberWindow.Title = "Remove member";
            RemMemberWindow.Show();
        }
Пример #6
0
        private void RmCopy_Click(object sender, RoutedEventArgs e)
        {
            App.Current.MainWindow.IsEnabled = false;
            DBupdateWindow RemCopyWindow = new DBupdateWindow();

            RemCopyWindow.updateType.Content = new PageRemCopy();
            RemCopyWindow.Title = "Remove book copy";
            RemCopyWindow.Show();
        }