SplashForm.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Windows.Forms;
  2. namespace Optimizer
  3. {
  4. public partial class SplashForm : Form
  5. {
  6. public SplashForm()
  7. {
  8. InitializeComponent();
  9. this.DoubleBuffered = true;
  10. CheckForIllegalCrossThreadCalls = false;
  11. switch (Options.CurrentOptions.Color)
  12. {
  13. case Theme.Amber:
  14. pictureBox1.Image = Properties.Resources.loadingAmber;
  15. pictureBox2.Image = Properties.Resources.bannerAmber;
  16. break;
  17. case Theme.Jade:
  18. pictureBox1.Image = Properties.Resources.loadingJade;
  19. pictureBox2.Image = Properties.Resources.bannerJade;
  20. break;
  21. case Theme.Ruby:
  22. pictureBox1.Image = Properties.Resources.loadingRuby;
  23. pictureBox2.Image = Properties.Resources.bannerRuby;
  24. break;
  25. case Theme.Silver:
  26. pictureBox1.Image = Properties.Resources.loadingSilver;
  27. pictureBox2.Image = Properties.Resources.bannerSilver;
  28. break;
  29. case Theme.Azurite:
  30. pictureBox1.Image = Properties.Resources.loadingAzurite;
  31. pictureBox2.Image = Properties.Resources.bannerAzurite;
  32. break;
  33. case Theme.Amethyst:
  34. pictureBox1.Image = Properties.Resources.loadingAmethyst;
  35. pictureBox2.Image = Properties.Resources.bannerAmethyst;
  36. break;
  37. }
  38. }
  39. }
  40. }