private void btnPagesAdd_Click(object sender, RoutedEventArgs e)
        {
            PagesForm addForm = new PagesForm();

            addForm.ShowDialog();

            if (addForm.DialogResult.HasValue && addForm.DialogResult.Value)
            {
                RefreshPagesList();
                label1.Visibility = Visibility.Visible;
            }
        }
        private void btnPagesSettings_Click(object sender, RoutedEventArgs e)
        {
            if (this.cbPages.SelectedIndex > -1)
            {
                PagesForm setting = new PagesForm(true);

                setting.ShowDialog();

                if (setting.DialogResult.HasValue && setting.DialogResult.Value)
                {
                    RefreshPagesList();
                }
            }
        }