Exemple #1
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;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public LaunchAppScanner()
        {
            InitializeComponent();
            PanelClass = "LaunchAppScanner";
            _pageStartIndex = 0;
            _pageNumber = 0;
            _numPages = 0;
            _invoker = new ExtensionInvoker(this);
            KeyPreview = true;

            subscribeToEvents();

            var actuator = ActuatorManager.Instance.GetActuator(typeof(KeyboardActuator));
            if (actuator is KeyboardActuator)
            {
                _keyboardActuator = actuator as KeyboardActuator;
                _keyboardActuator.EvtKeyPress += _keyboardActuator_EvtKeyPress;
            }

            _dispatcher = new RunCommandDispatcher(this);

            createStatusBar();
        }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        /// <param name="panelClass">Panel class of the scanner</param>
        /// <param name="panelTitle">Title of the scanner</param>
        public YesNoScanner(String panelClass, String panelTitle)
        {
            InitializeComponent();

            Load += ContextMenu_Load;
            FormClosing += ContextMenu_FormClosing;

            Choice = false;
            _title = panelTitle;
            PanelClass = panelClass;
            Caption = String.Empty;

            _invoker = new ExtensionInvoker(this);
            _dispatcher = new Dispatcher(this);

            var actuator = ActuatorManager.Instance.GetActuator(typeof(KeyboardActuator));
            if (actuator is KeyboardActuator)
            {
                _keyboardActuator = actuator as KeyboardActuator;
                _keyboardActuator.EvtKeyPress += _keyboardActuator_EvtKeyPress;
            }
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public AbbreviationsScanner()
        {
            InitializeComponent();

            PanelClass = "AbbreviationsScanner";
            _pageStartIndex = 0;
            _pageNumber = 0;
            _numPages = 0;
            _invoker = new ExtensionInvoker(this);

            FormClosing += AbbreviationsScanner_FormClosing;
            KeyDown += AbbreviationsScanner_KeyDown;
            LocationChanged += AbbreviationsScanner_LocationChanged;

            KeyPreview = true;

            var actuator = ActuatorManager.Instance.GetActuator(typeof(KeyboardActuator));
            if (actuator is KeyboardActuator)
            {
                _keyboardActuator = actuator as KeyboardActuator;
                _keyboardActuator.EvtKeyPress += _keyboardActuator_EvtKeyPress;
            }

            _dispatcher = new RunCommandDispatcher(this);
        }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 /// <param name="eventType">Type of the event to be raised</param>
 public ExtensionEventArgs(String eventType)
 {
     _invoker = new ExtensionInvoker(this);
     EventType = eventType;
 }
Exemple #6
0
        public TaskSwitcherForm()
        {
            Log.Debug();

            _invoker = new ExtensionInvoker(this);

            FilterProcessName = String.Empty;

            init();
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public LectureManagerMainForm()
        {
            InitializeComponent();
            _syncObj = new SyncLock();
            Mode = SpeechMode.Paragraph;
            FileLoaded = false;
            ShowInTaskbar = false;
            _paragraphs = new List<Paragraph>();
            _sentences = new List<Sentence>();
            _invoker = new ExtensionInvoker(this);
            LectureText = String.Empty;

            Top = 0;
            Left = 0;

            _speakAllParagraphTimer = new Timer();
            _speakAllParagraphTimer.Tick += _speakAllParagraphTimer_Tick;
            LocationChanged += LectureManagerMainForm_LocationChanged;
        }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 /// <param name="eventType">Type of the event to be raised</param>
 public ExtensionEventArgs(String eventType)
 {
     _invoker  = new ExtensionInvoker(this);
     EventType = eventType;
 }
Exemple #9
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;
        }
Exemple #10
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 protected AgentBase()
 {
     _name = Descriptor.Name;
     _invoker = new ExtensionInvoker(this);
 }
Exemple #11
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public AbbreviationEditorForm()
        {
            InitializeComponent();
            _invoker = new ExtensionInvoker(this);

            init();
        }
Exemple #12
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public YesNoDialogForm()
        {
            InitializeComponent();

            _invoker = new ExtensionInvoker(this);

            Choice = false;

            Caption = String.Empty;
            TitleBar = "ACAT";

            var actuator = ActuatorManager.Instance.GetActuator(typeof(KeyboardActuator));
            if (actuator is KeyboardActuator)
            {
                _keyboardActuator = actuator as KeyboardActuator;
                _keyboardActuator.EvtKeyDown += keyboardActuator_EvtKeyDown;
            }

            Init();
        }
Exemple #13
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public YesNoDialogForm()
        {
            InitializeComponent();

            _invoker = new ExtensionInvoker(this);

            Choice = false;

            TextButton1 = "Yes";
            TextButton2 = "No";
            Caption = String.Empty;
            TitleBar = "ACAT";

            Init();
        }
Exemple #14
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public FileBrowserScanner()
        {
            InitializeComponent();
            ActionVerb = "Open";
            PanelClass = "FileBrowserScanner";

            _allFilesList = new List<FileInfo>();
            _fileList = new List<FileInfo>();

            _pageStartIndex = 0;
            _pageNumber = 0;
            _numPages = 0;

            _invoker = new ExtensionInvoker(this);
            SelectedFile = String.Empty;
            Folders = new String[] { };

            _includeFileExtensions = new String[] { };
            _excludeFileExtensions = new String[] { };

            KeyPreview = true;

            subscribeToEvents();

            var actuator = ActuatorManager.Instance.GetActuator(typeof(KeyboardActuator));
            if (actuator is KeyboardActuator)
            {
                _keyboardActuator = actuator as KeyboardActuator;
                _keyboardActuator.EvtKeyPress += _keyboardActuator_EvtKeyPress;
            }

            _dispatcher = new RunCommandDispatcher(this);

            createStatusBar();
        }
Exemple #15
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        /// <param name="panelClass">Panel class of the scanner</param>
        /// <param name="panelTitle">Title of the scanner</param>
        public YesNoScannerNarrow(String panelClass, String panelTitle)
        {
            InitializeComponent();

            Load += ContextMenu_Load;
            FormClosing += ContextMenu_FormClosing;

            Choice = false;
            _title = panelTitle;
            PanelClass = panelClass;
            Caption = String.Empty;

            _invoker = new ExtensionInvoker(this);
            _dispatcher = new Dispatcher(this);
        }