Esempio n. 1
0
        private void init()
        {
            Log.Debug();
            InitializeComponent();

            _filterByProcess = null;

            CreateTaskTable();

            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            this.Load        += new EventHandler(TaskSwitcherForm_Load);
            this.FormClosing += new FormClosingEventHandler(TaskSwitcherForm_FormClosing);

            _dialogCommon.GetAnimationManager().EvtResolveWidgetChildren +=
                new AnimationManager.ResolveWidgetChildren(TaskSwitcherForm_EvtResolveWidgetChildren);

            Title.FlatAppearance.BorderSize = 0;

            Log.Debug("returning");
        }
Esempio n. 2
0
        /// <summary>
        /// Intitializes the class
        /// </summary>
        /// <param name="startupArg">startup param</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg startupArg)
        {
            _dialogCommon = new DialogCommon(this);

            Cancel = false;

            return(_dialogCommon.Initialize(startupArg));
        }
Esempio n. 3
0
        /// <summary>
        /// Intitializes the class
        /// </summary>
        /// <param name="startupArg">startup param</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg startupArg)
        {
            _dialogCommon = new DialogCommon(this);

            Add                = false;
            Delete             = false;
            OutputAbbreviation = new Abbreviation(String.Empty, String.Empty, Abbreviation.AbbreviationMode.Speak);
            Cancel             = false;

            return(_dialogCommon.Initialize(startupArg));
        }
Esempio n. 4
0
        /// <summary>
        /// Intitializes the class
        /// </summary>
        /// <param name="startupArg">startup param</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg startupArg)
        {
            _dialogCommon = new DialogCommon(this);
            bool retVal = _dialogCommon.Initialize(startupArg);

            if (retVal)
            {
                initWidgetSettings(Common.AppPreferences);
            }

            return(retVal);
        }
Esempio n. 5
0
        /// <summary>
        /// Intitializes the class
        /// </summary>
        /// <param name="startupArg">startup param</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg startupArg)
        {
            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize(startupArg))
            {
                return(false);
            }

            populateUI();

            return(true);
        }
Esempio n. 6
0
        /// <summary>
        /// Intitializes the class
        /// </summary>
        /// <param name="startupArg">startup param</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg startupArg)
        {
            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize(startupArg))
            {
                return(false);
            }

            initWidgetSettings(Common.AppPreferences);

            return(true);
        }
Esempio n. 7
0
        /// <summary>
        /// Initializes the form
        /// </summary>
        /// <returns>true on success</returns>
        public bool Init()
        {
            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            Load        += Form_Load;
            FormClosing += Form_Closing;

            return(true);
        }
Esempio n. 8
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public WindowMoveResizeScannerForm()
        {
            InitializeComponent();

            _dialogCommon = new DialogCommon(this);
            Title.Hide();

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            Load        += ResizeScannerScreen_Load;
            FormClosing += ResizeScannerScreen_FormClosing;
        }
        public AlternatePronunciationDataForm()
        {
            InitializeComponent();

            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                MessageBox.Show("Initialization error");
            }

            this.KeyPreview = true;
            listViewAP.KeyPress += new KeyPressEventHandler(listViewAP_KeyPress);
            this.Load += new EventHandler(AlternatePronunciationDataForm_Load);
            this.FormClosing += new FormClosingEventHandler(AlternatePronunciationDataForm_FormClosing);
        }
Esempio n. 10
0
        public AlternatePronunciationDataForm()
        {
            InitializeComponent();

            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                MessageBox.Show("Initialization error");
            }

            this.KeyPreview      = true;
            listViewAP.KeyPress += new KeyPressEventHandler(listViewAP_KeyPress);
            this.Load           += new EventHandler(AlternatePronunciationDataForm_Load);
            this.FormClosing    += new FormClosingEventHandler(AlternatePronunciationDataForm_FormClosing);
        }
Esempio n. 11
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public WordPredictionSettingsForm()
        {
            InitializeComponent();

            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            initWidgetSettings(Common.AppPreferences);

            Load        += ScannerSettingsForm_Load;
            FormClosing += ScannerSettingsForm_FormClosing;
        }
Esempio n. 12
0
        /// <summary>
        /// Intitializes the class
        /// </summary>
        /// <param name="startupArg">startup param</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg startupArg)
        {
            _dialogCommon = new DialogCommon(this);

            _initialWindowPosition = Context.AppWindowPosition;

            _dialogCommon.AutoDockScanner = false;

            if (!_dialogCommon.Initialize(startupArg))
            {
                return(false);
            }

            subscribeToButtonEvents();

            return(true);
        }
Esempio n. 13
0
        /// <summary>
        /// Initializes an instance of hte class
        /// </summary>
        public ACATGettingStartedForm()
        {
            InitializeComponent();

            textBoxEntry.TextChanged += TextBoxEntryOnTextChanged;
            _dialogCommon             = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                return;
            }

            setNextWord();

            Load        += AsterLaunchpad_Load;
            FormClosing += AsterLaunchpad_FormClosing;
        }
Esempio n. 14
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public AboutBoxForm(string titleText)
        {
            InitializeComponent();

            _attributions = new List <string>();

            _invoker = new ExtensionInvoker(this);

            _dialogCommon = new DialogCommon(this);
            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            Load        += Form_Load;
            FormClosing += Form_Closing;
        }
Esempio n. 15
0
        /// <summary>
        /// Initializes the class
        /// </summary>
        private void init()
        {
            _dialogCommon = new DialogCommon(this);

            Add                = false;
            Delete             = false;
            OutputAbbreviation = new Abbreviation(String.Empty, String.Empty, Abbreviation.AbbreviationMode.Speak);
            Cancel             = false;

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            Load        += AbbreviationsEditorForm_Load;
            FormClosing += AbbreviationsEditorForm_FormClosing;
        }
Esempio n. 16
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public MuteScreenSettingsForm()
        {
            InitializeComponent();

            _windowActiveWatchdog = new WindowActiveWatchdog(this);

            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            initWidgetSettings();

            Load        += MuteScreenSettingsForm_Load;
            FormClosing += MuteScreenSettingsForm_FormClosing;
        }
        void init(String originalTerm, String replacementTerm)
        {
            _dialogCommon = new DialogCommon(this);

            // _windowActiveWatchdog = new WindowActiveWatchdog(this);

            _originalTerm    = originalTerm;
            _replacementTerm = replacementTerm;
            _hasTerm         = false;

            if (!_dialogCommon.Initialize())
            {
                MessageBox.Show("Initialization error");
            }

            this.Load        += new EventHandler(AsterScreenTemplateForm_Load);
            this.FormClosing += new FormClosingEventHandler(AsterScreenTemplateForm_FormClosing);
        }
Esempio n. 18
0
        /// <summary>
        /// Initializes an instance of hte class
        /// </summary>
        public ACATTryoutForm()
        {
            InitializeComponent();

            updateToolbar();

            textBoxEntry.TextChanged += TextBoxEntryOnTextChanged;
            _dialogCommon             = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                return;
            }

            setNextWord();

            Load        += ACATTryoutForm_Load;
            FormClosing += ACATTryoutForm_FormClosing;
        }
Esempio n. 19
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public TimedDialogForm()
        {
            InitializeComponent();

            _invoker = new ExtensionInvoker(this);

            _dialogCommon = new DialogCommon(this);
            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            ShowButton  = true;
            Text        = _titleText;
            MessageText = _message;

            Load        += Form_Load;
            FormClosing += Form_Closing;
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public ResizeScannerForm()
        {
            InitializeComponent();

            _dialogCommon = new DialogCommon(this);

            _initialWindowPosition = Context.AppWindowPosition;

            _dialogCommon.AutoDockScanner = false;

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            Load        += ResizeScannerScreen_Load;
            FormClosing += ResizeScannerScreen_FormClosing;

            subscribeToButtonEvents();
        }
Esempio n. 21
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public ResizeScannerForm()
        {
            InitializeComponent();

            _dialogCommon = new DialogCommon(this);

            _initialWindowPosition = Context.AppWindowPosition;

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            FormBorderStyle = FormBorderStyle.None;

            Load              += ResizeScannerScreen_Load;
            FormClosing       += ResizeScannerScreen_FormClosing;
            BorderPanel.Paint += BorderPanel_Paint;

            subscribeToButtonEvents();
        }
Esempio n. 22
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public TextToSpeechSettingsForm()
        {
            InitializeComponent();

            saveInitalValues();

            _dialogCommon = new DialogCommon(this);

            if (!_dialogCommon.Initialize())
            {
                Log.Debug("Initialization error");
            }

            populateUI();

            tbPitch.TextChanged  += tbPitch_TextChanged;
            tbRate.TextChanged   += tbRate_TextChanged;
            tbVolume.TextChanged += tbVolume_TextChanged;
            Load        += TextToSpeechSettingsForm_Load;
            FormClosing += TextToSpeechSettingsForm_FormClosing;
        }