private void ChangeImages() { if (RightPanel.Controls.Count > 0) { foreach (MetroTile tile in RightPanel.Controls) { tile.TileImage = UiSettings.ResizedImage(TileSize, TileSize); Application.DoEvents(); } } RightPanel.Refresh(); }
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(); } }
private void ChangeImage() { BackPicture.Image = UiSettings.ResizedImage(BackPicture.Width, BackPicture.Height, 45); }