Exemplo n.º 1
0
 public HtmlFileBrowser()
 {
     Text              = "";
     _resourceFiles    = new List <WebResourceFile>();
     this.SizeMode     = PictureBoxSizeMode.StretchImage;
     this.Image        = WinUtil.SetImageOpacity(Resource1.folderBrowser, (float)0.5);
     PositionAnchor    = AnchorStyles.Left | AnchorStyles.Top;
     PositionAlignment = ContentAlignment.TopLeft;
 }
 public HtmlDatePicker()
 {
     _ft               = new Font("Times New Roman", (float)16);
     _resourceFiles    = new List <WebResourceFile>();
     this.Size         = new Size(231, 284);
     _img              = WinUtil.SetImageOpacity(Resource1.datepicker16, (float)0.3);
     PositionAnchor    = AnchorStyles.Left | AnchorStyles.Top;
     PositionAlignment = ContentAlignment.TopLeft;
     IncludeTime       = true;
     Movable           = true;
 }
Exemplo n.º 3
0
 private void takesnapshot()
 {
     if (_page != null)
     {
         Bitmap bmp = ExportImage();
         if (bmp != null)
         {
             Bitmap bmp2 = WinUtil.SetImageOpacity(bmp, (float)0.5);
             if (bmp2 != null)
             {
                 _page.BackgroundImage = bmp2;
             }
             else
             {
                 _page.BackgroundImage = bmp;
             }
         }
     }
     Close();
 }
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (_page != null)
     {
         Bitmap bmp = ExportImage();
         if (bmp != null)
         {
             Bitmap bmp2 = WinUtil.SetImageOpacity(bmp, (float)0.5);
             if (bmp2 != null)
             {
                 _page.BackgroundImage = bmp2;
             }
             else
             {
                 _page.BackgroundImage = bmp;
             }
         }
     }
     Close();
 }