private void NewPublication(object sender, RoutedEventArgs e)
        {
            switch (OnScreenContent)
            {
            case PageAuthors pageAuthors:
            {
                var p0 = new WindowAddEditUserAuthor(this, false);
                p0.ShowDialog();
                pAuthors.UpdateLayout();
                break;
            }

            case PagePublications pagePublications:
            {
                var p1 = new WindowAddEditPublication(this);
                p1.ShowDialog();
                pPublications.UpdateLayout();
                break;
            }

            case PageUsers pageUsers:
            {
                var p2 = new WindowAddEditUserAuthor(this, true);
                p2.ShowDialog();
                pUsers.UpdateLayout();
                break;
            }
            }
        }
Exemplo n.º 2
0
        private void Add_OnClick(object sender, RoutedEventArgs e)
        {
            var p0 = new WindowAddEditUserAuthor(Owner, false);

            p0.ShowDialog();
            UpdateLayout();
        }
Exemplo n.º 3
0
        private void AddAuthor_OnClick(object sender, RoutedEventArgs e)
        {
            var p = new WindowAddEditUserAuthor(this, false);

            p.ShowDialog();
            DbAuthor.All.Add(p.Author);
        }
Exemplo n.º 4
0
        private void Edit_OnClick(object sender, RoutedEventArgs e)
        {
            var item = DataGrid.SelectedItem as DbAuthor;
            var p    = new WindowAddEditUserAuthor(Owner, item);

            p.ShowDialog();
            UpdateLayout();
        }
Exemplo n.º 5
0
        private void AddUser_OnClick(object sender, RoutedEventArgs e)
        {
            var p2 = new WindowAddEditUserAuthor(this, true);

            p2.ShowDialog();
        }