Beispiel #1
0
 public static void NewRequest(AsyncGetResultsTask agr, int _imgWidth, int _imgHeight)
 {
     ClearState();
     AsyncResultTask = agr;
     image           = Bitmap.CreateBitmap(_imgWidth, _imgHeight, Bitmap.Config.Argb8888);
     imgWidth        = _imgWidth;
     imgHeight       = _imgHeight;
     arr             = new int[imgWidth * imgHeight];
 }
Beispiel #2
0
 public static void ClearState()
 {
     CommunicationPackages = new List <CommPackage>();
     WorkOrders            = new List <WorkOrderTrimmed>();
     image = null;
     ApplicationContext = null;
     AsyncResultTask    = null;
     deserialiseSecs    = 0;
     setPixelSecs       = 0;
 }