Exemple #1
0
 private static bool GetPage1PageAsync(out Bitmap lhc1Img)
 {
     if (!Retrieve.GetBitMap("https://vistar-capture.web.cern.ch/vistar-capture/lhc1.png", out lhc1Img))
     {
         return(false);
     }
     return(true);
 }
Exemple #2
0
 private static bool GetMagnetStatusPageAsync(out Bitmap expMagnetImg)
 {
     if (!Retrieve.GetBitMap("https://vistar-capture.web.cern.ch/vistar-capture/lhcexpmag.png", out expMagnetImg))
     {
         return(false);
     }
     return(true);
 }
Exemple #3
0
 private static bool GetVistarPageAsync(string webpage, out Bitmap lhc1Img)
 {
     if (!Retrieve.GetBitMap(webpage, out lhc1Img))
     {
         return(false);
     }
     return(true);
 }
 private static bool GetBeamDumpStatusAsync(out Bitmap beamDumpImg)
 {
     if (!Retrieve.GetBitMap("https://vistar-capture.web.cern.ch/vistar-capture/lhcbds.png", out beamDumpImg))
     {
         return(false);
     }
     return(true);
 }
 public void GetBitMapTest()
 {
     try
     {
         if (Retrieve.GetBitMap("https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png", out Bitmap bitmap))
         {
             Assert.IsNotNull(bitmap);
         }
         else
         {
             Assert.Fail("Was Unable to retrieve a bitmap.");
         }
     }
     catch (Exception ex)
     {
         Assert.Fail("Expected no exception, but got: " + ex.Message);
     }
 }