public UdpBIDProxyClient(BIDContext ctx) { this._ctx = ctx; this._proxyThread = new Thread(new ThreadStart(this.ProxyThread)); this._proxyThread.IsBackground = true; this._proxyThread.Start(); }
public static void screenCapture(BIDContext ctx) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(ctx.BIDNumer); stringBuilder.Append("_"); stringBuilder.Append(DateTime.Now.ToString("HH_mm_ss")); string imageSavePath = stringBuilder.ToString(); Point curPos = new Point(Cursor.Position.X, Cursor.Position.Y); Size curSize = new Size(); curSize.Height = Cursor.Current.Size.Height; curSize.Width = Cursor.Current.Size.Width; Rectangle bounds = Screen.GetBounds(Screen.GetBounds(Point.Empty)); CaptureImage(curSize, curPos, Point.Empty, Point.Empty, bounds, imageSavePath); }