예제 #1
0
        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();
                    }
                }
            }
        }
예제 #2
0
 public MobiReaderTests()
 {
     this.reader = new MobiReader(new NullLogger());
 }