private void ButtonSpeedRead_Click(object sender, RoutedEventArgs e)
        {
            FeatureTrackingManager.Instance.UseFeature(Features.Document_SpeedRead);

            List <string> words             = new List <string>();
            List <int>    page_word_offsets = new List <int>();

            GetCombinedWordsList(words, page_word_offsets);

            SpeedReadControl src = MainWindowServiceDispatcher.Instance.OpenSpeedRead();

            src.UseText(words);
        }
        internal SpeedReadControl OpenSpeedRead()
        {
            SpeedReadControl src = new SpeedReadControl();

            StandardWindow window = new StandardWindow();

            window.Title   = "Qiqqa SpeedRead";
            window.Content = src;
            window.Width   = 700;
            window.Height  = 340;

            window.Show();

            return(src);
        }
예제 #3
0
        void MenuItemSpeedRead_Click(object sender, RoutedEventArgs e)
        {
            using (var c = popup.AutoCloser)
            {
                FeatureTrackingManager.Instance.UseFeature(Features.Document_TextSelectSpeedRead);

                try
                {
                    SpeedReadControl src = MainWindowServiceDispatcher.Instance.OpenSpeedRead();
                    src.UseText(selected_text);
                }

                catch (Exception ex)
                {
                    Logging.Error(ex, "There was a problem speed reading.");
                }
            }
        }