示例#1
0
 private void ChangeImages()
 {
     if (RightPanel.Controls.Count > 0)
     {
         foreach (MetroTile tile in RightPanel.Controls)
         {
             tile.TileImage = UiSettings.ResizedImage(TileSize, TileSize);
             Application.DoEvents();
         }
     }
     RightPanel.Refresh();
 }
示例#2
0
        private void ChangeImage()
        {
            if (RightPanel.Controls.Count <= 0)
            {
                return;
            }
            var currentImage = _random.Next(RightPanel.Controls.Count);
            var imageControl = RightPanel.Controls[currentImage];

            if (imageControl is MetroTile)
            {
                var tile = (MetroTile)RightPanel.Controls[currentImage];
                tile.TileImage = UiSettings.ResizedImage(TileSize, TileSize);
                tile.Refresh();
            }
        }
示例#3
0
 private void ChangeImage()
 {
     BackPicture.Image = UiSettings.ResizedImage(BackPicture.Width, BackPicture.Height, 45);
 }