Ejemplo n.º 1
0
        private void OnShowBooks(object sender, RoutedEventArgs e)
        {
            var booksUI = new BooksUC();

            this.tabControl1.SelectedIndex = this.tabControl1.Items.Add(new TabItem {
                Header = "Books", Content = booksUI
            });
        }
Ejemplo n.º 2
0
        private void OnShowBooksList(object sender, ExecutedRoutedEventArgs e)
        {
            var booksUI = new BooksUC();

            userControls.Add(new UIControlInfo {
                Title = "Books List", Content = booksUI
            });
        }