//Show a form for adding a new author.
        private void btnAddAuthor_Click(object sender, RoutedEventArgs e)
        {
            AddAuthor form = new AddAuthor(_proxy);

            form.ShowDialog();
            btnAuthorsAct_Click(null, null);
        }
        //Show a form for editting authors data.
        private void btnEditAuthor_Click(object sender, RoutedEventArgs e)
        {
            int       id   = Convert.ToInt32((sender as Button).Tag);
            AddAuthor form = new AddAuthor(_proxy, id);

            form.ShowDialog();
            btnAuthorsAct_Click(null, null);
        }
        //Show a form for adding a new author.
        private void btnAddAuthor_Click(object sender, RoutedEventArgs e)
        {
            AddAuthor frm = new AddAuthor(_proxy);

            frm.ShowDialog();

            if (FormData.Author != "")
            {
                lstAuthors.Items.Add(new CheckBox {
                    Content = FormData.Author, Style = TryFindResource("chNormal") as Style, HorizontalAlignment = HorizontalAlignment.Left, IsChecked = true, Tag = FormData.AuthorsID
                });
                FormData.Author = "";
            }
        }