Exemplo n.º 1
0
        /// <summary>
        /// This function auto positions the scanner at
        /// one of the four corners of the monitor and lets
        /// the user select the default position
        /// </summary>
        private void onRepositionScanner()
        {
            _isDirty = true;

            _dialogCommon.GetAnimationManager().Interrupt();
            Windows.SetOpacity(this, 0.0f);
            var scanner = (_previewScreen as IScannerPanel);

            if (scanner != null)
            {
                scanner.ScannerCommon.PositionSizeController.EvtAutoRepositionScannerStop +=
                    PositionSizeControllerOnEvtAutoRepositionScannerStop;
                scanner.ScannerCommon.PositionSizeController.AutoRepositionScannerStart(false);
            }
        }
Exemplo n.º 2
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");
        }
Exemplo n.º 3
0
        /// <summary>
        /// Form loader handler
        /// </summary>
        /// <param name="sender">event sender</param>
        /// <param name="e">event args</param>
        private void Form_Load(object sender, EventArgs e)
        {
            updateUserProfileInfo();
            _dialogCommon.OnLoad();

            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
        }
Exemplo n.º 4
0
        /// <summary>
        /// Form has been loaded
        /// </summary>
        void AlternatePronunciationDataForm_Load(object sender, EventArgs e)
        {
            Log.Debug("Entering...");
            _windowActiveWatchdog = new WindowActiveWatchdog(this);

            _dialogCommon.OnLoad();

            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());

            // populate listview from xml config file
            ImportPronunciationIntoListView(listViewAP, true);

            // select the first item by default
            const int DEFAULT_INITIAL_LISTVIEW_POSITION = 0;

            if (listViewAP.Items.Count > 0)
            {
                listViewAP.Items[DEFAULT_INITIAL_LISTVIEW_POSITION].Selected = true; // DEFAULT_INITIAL_LISTVIEW_POSITION;
            }
            else
            {
                Log.Debug("did not load any items!");
            }

            listViewAP.AllowColumnReorder = false;
            listViewAP.AllowDrop          = false;
            listViewAP.MultiSelect        = false;
            listViewAP.FullRowSelect      = true;

            setButtonStates();
        }
Exemplo n.º 5
0
        /// <summary>
        /// Form has been loaded
        /// </summary>
        private void ScannerSettingsForm_Load(object sender, EventArgs e)
        {
            _dialogCommon.OnLoad();

            subscribeToEvents();

            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
        }
Exemplo n.º 6
0
        /// <summary>
        /// Form has been loaded
        /// </summary>
        /// <param name="sender">event sender</param>
        /// <param name="e">event args</param>
        private void Form_Load(object sender, EventArgs e)
        {
            _dialogCommon.OnLoad();

            initialize();

            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
        }
        /// <summary>
        /// Form has been loaded
        /// </summary>
        void AsterScreenTemplateForm_Load(object sender, EventArgs e)
        {
            _windowActiveWatchdog = new WindowActiveWatchdog(this);
            initWidgetSettings();

            _dialogCommon.OnLoad();
            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
        }
Exemplo n.º 8
0
        /// <summary>
        /// Form has been loaded. Initlialize the controls
        /// on the form
        /// </summary>
        private void TextToSpeechSettingsForm_Load(object sender, EventArgs e)
        {
            lblVolumeText.Text    = _initialVolume.RangeMin + " to " + _initialVolume.RangeMax;
            lblRateText.Text      = _initialRate.RangeMin + " to " + _initialRate.RangeMax;
            lblPitchText.Text     = _initialPitch.RangeMin + " to " + _initialPitch.RangeMax;
            lblTTSEngineName.Text = Context.AppTTSManager.ActiveEngine.Descriptor.Name;

            _windowActiveWatchdog = new WindowActiveWatchdog(this);
            _dialogCommon.OnLoad();
            subscribeToEvents();
            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
        }
Exemplo n.º 9
0
        /// <summary>
        /// Form has been loaded. Initialize
        /// </summary>
        private void MuteScreenSettingsForm_Load(object sender, EventArgs e)
        {
            tbPINCode.TextChanged += tbPINCode_TextChanged;
            tbPINCode.KeyPress    += tbPINCode_KeyPress;

            _dialogCommon.OnLoad();

            Invoke(new MethodInvoker(delegate()
            {
                _windowActiveWatchdog = new WindowActiveWatchdog(this);
            }));

            subscribeToEvents();

            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
        }
Exemplo n.º 10
0
        /// <summary>
        /// Form has been loaded. Perform initialization
        /// </summary>
        /// <param name="sender">event sender</param>
        /// <param name="e">event args</param>
        private void AbbreviationsEditorForm_Load(object sender, EventArgs e)
        {
            if (Add)
            {
                Windows.SetText(labelTitle, "Add Abbreviation");
                var widget = _dialogCommon.GetRootWidget().Finder.FindChild("lblDelete");
                if (widget != null)
                {
                    widget.Enabled = false;
                }
            }
            else
            {
                Windows.SetText(labelTitle, "Edit/Delete Abbreviation");
            }

            _windowActiveWatchdog = new WindowActiveWatchdog(this);

            initWidgetSettings();

            _dialogCommon.OnLoad();

            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
        }
Exemplo n.º 11
0
 /// <summary>
 /// Form has been loaded
 /// </summary>
 private void ResizeScannerScreen_Load(object sender, EventArgs e)
 {
     _dialogCommon.OnLoad();
     _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
 }
Exemplo n.º 12
0
 /// <summary>
 /// Form has been loaded. Start animation
 /// </summary>
 /// <param name="sender">event sender</param>
 /// <param name="e">event args</param>
 private void AsterLaunchpad_Load(object sender, EventArgs e)
 {
     _dialogCommon.OnLoad();
     _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
 }