private void Button_Click(object sender, RoutedEventArgs e) { EbookService.RegisterEbook(ebookViewSource, coverPath, ebookPath); this.Close(); }