/// <summary>
        /// The form has loaded.  Perform initialization
        /// </summary>
        private void TalkApplicationScanner_Load(object sender, EventArgs e)
        {
            var icon = ImageUtils.GetEntryAssemblyIcon();

            if (icon != null)
            {
                Icon = icon;
            }

            TextBoxTalkWindow.Focus();

            WordPredictionManager.Instance.ActiveWordPredictor.PredictionWordCount = PreferredWordListCount;

            _alphabetScannerCommon.OnLoad(sender, e);

            loadPhrases();

            var colorScheme = ThemeManager.Instance.ActiveTheme.Colors.GetColorScheme(ColorSchemes.TalkWindowSchemeName);

            TextBoxTalkWindow.BackColor = colorScheme.Background;
            TextBoxTalkWindow.ForeColor = colorScheme.Foreground;

            _alphabetScannerCommon.ResizeToFitDesktop(this);

            enableWatchdogs();
        }
Exemple #2
0
        /// <summary>
        /// The form has loaded.  Start the animation sequence
        /// </summary>
        private void TalkApplicationScanner_Load(object sender, EventArgs e)
        {
            //Windows.ClickOnWindow(this);

            TextBoxTalkWindow.Focus();

            WordPredictionManager.Instance.ActiveWordPredictor.PredictionWordCount = 9;

            _alphabetScannerCommon.OnLoad(sender, e);

            var colorScheme = ThemeManager.Instance.ActiveTheme.Colors.GetColorScheme(ColorSchemes.TalkWindowSchemeName);

            TextBoxTalkWindow.BackColor = colorScheme.Background;
            TextBoxTalkWindow.ForeColor = colorScheme.Foreground;

            enableWatchdogs();
        }
Exemple #3
0
 /// <summary>
 /// Event handler for when a button gets focus. Set focus back to the
 /// text box
 /// </summary>
 /// <param name="sender">event sender</param>
 /// <param name="e">event args</param>
 private void button_GotFocus(object sender, EventArgs e)
 {
     TextBoxTalkWindow.Focus();
 }