コード例 #1
0
ファイル: ResizeScannerForm.cs プロジェクト: angellcq/src
        /// <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);
            }
        }
コード例 #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");
        }
コード例 #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());
        }
コード例 #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();
        }
コード例 #5
0
        /// <summary>
        /// Form has been loaded
        /// </summary>
        private void ScannerSettingsForm_Load(object sender, EventArgs e)
        {
            _dialogCommon.OnLoad();

            subscribeToEvents();

            _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
        }
コード例 #6
0
ファイル: YesNoDialogForm2.cs プロジェクト: angellcq/src
        /// <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());
        }
コード例 #7
0
        /// <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());
        }
コード例 #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());
        }
コード例 #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());
        }
コード例 #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());
        }
コード例 #11
0
 /// <summary>
 /// Form has been loaded
 /// </summary>
 private void ResizeScannerScreen_Load(object sender, EventArgs e)
 {
     _dialogCommon.OnLoad();
     _dialogCommon.GetAnimationManager().Start(_dialogCommon.GetRootWidget());
 }
コード例 #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());
 }