示例#1
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();
        }
示例#2
0
文件: AboutBoxForm.cs 项目: glwu/acat
        /// <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;
        }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public ScreenLockSettingsForm()
        {
            InitializeComponent();

            _windowActiveWatchdog = new WindowActiveWatchdog(this);

            _dialogCommon = new DialogCommon(this);

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

            initWidgetSettings();

            Load += ScreenLockSettingsForm_Load;
            FormClosing += ScreenLockSettingsForm_FormClosing;
        }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public ScannerSettingsForm()
        {
            InitializeComponent();

            _dialogCommon = new DialogCommon(this);

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

            initWidgetSettings(Common.AppPreferences);

            Load += ScannerSettingsForm_Load;
            FormClosing += ScannerSettingsForm_FormClosing;
        }
示例#5
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");
        }
示例#6
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;
        }
示例#7
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 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;
        }
示例#9
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 += WindowMoveResizeScannerForm_Load;
            FormClosing += WindowMoveResizeScannerForm_FormClosing;
        }
示例#10
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;
        }
示例#11
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;
        }
        /// <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();
        }
示例#13
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;
        }