private void Button_Add_Click(object sender, RoutedEventArgs e)
        {
            var window = new AdminDialogWindow();

            Close();
            window.Show();
        }
        private void Button_Edit_Click(object sender, RoutedEventArgs e)
        {
            int id    = listAdmin.SelectedIndex;
            var admin = (Admin)listAdmin.SelectedItem;

            if (id == -1)
            {
                MessageBox.Show("Выберите администратора");
            }
            var window = new AdminDialogWindow(admin);

            Close();
            window.Show();
        }