void ChooseMovieFromIMDb_Loaded(object sender, RoutedEventArgs e) { if (FileManager.Mode == ProcessingMode.SemiAutomatic || FileManager.Mode == ProcessingMode.Automatic) { m_AutoAdorner = new AutomaticAdornerHelper(this.OkButton, FileManager.Configuration.Options.SemiautomaticTimeout); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { CaptionBox.Focus(); if (!string.IsNullOrEmpty(CaptionBox.Text)) { CaptionBox.SelectAll(); } if (FileManager.Mode == ProcessingMode.SemiAutomatic) { Button _btn = FileManager.Configuration.Options.PromptBeforeSearch ? this.OkButton : this.Skip; m_AutoAdorner = new AutomaticAdornerHelper(_btn, FileManager.Configuration.Options.SemiautomaticTimeout); } }