private void OpenMobiButton_Click(object sender, RoutedEventArgs e) { var openFileDialog = new OpenFileDialog { Filter = "mobi file|*.mobi" }; if (openFileDialog.ShowDialog() == true) { var filePath = openFileDialog.FileName; fileStream = File.OpenRead(filePath); { using (var mobiReader = new MobiReader(fileStream)) { var mobi = mobiReader.Read(); } } } }
public MobiReaderTests() { this.reader = new MobiReader(new NullLogger()); }