Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            _presenter = new Presenter(this);
            _selectVerse = new VerseSelecter(_presenter);

            // verse Selecter
            Controls.Add(_selectVerse);
            _selectVerse.Visible = false;
            _selectVerse.BringToFront();

            if (_presenter.Settings.VerseSelecterEnabled)
            {
                _selectVerse.resetForm();
            }

            //disable search bar while index is building
            if (_presenter.Settings.CurrentBible.IndexBuilderWorker.IsBusy)
            {
                searchBox.Enabled = false;

                //add event to re-enable searchBox
                _presenter.Settings.CurrentBible.IndexBuilderWorker.RunWorkerCompleted +=
                    new RunWorkerCompletedEventHandler(indexBuilderWorker_RunWorkerCompleted);
            }
        }
Exemplo n.º 2
0
 public VerseSelecter(Presenter presenter)
 {
     InitializeComponent();
     _presenter = presenter;
     _backend = _presenter.Backend;
     _verseReference = new PresenterFolder.ReferenceItem();
 }
Exemplo n.º 3
0
        public To_MP3_Options(Presenter presenter)
        {
            InitializeComponent();
            _presenter = presenter;
            _settings = presenter.Settings;

            // load avalible voices in to dropdown
            Installed_Voices_comboBox.Items.AddRange(_presenter.Settings.TTSVoiceNames);

            Installed_Voices_comboBox.Text = _settings.CurrentTTSVoice.VoiceInfo.Name; // set current voice

            TTS_Rate_trackBar.Value = _settings.TTS_Rate + 10;
        }
Exemplo n.º 4
0
 //TODO this method requiring presenter should be phased out in favor of requring GUI_Settings
 public BackEndInitializer(Presenter presenter)
 {
     _presenter = presenter;
     initialize();
 }