Advertisement
Guest User

Untitled

a guest
Oct 11th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace Sokoban
  12. {
  13. public partial class EndGame : Form
  14. {
  15. private CustomButton cbExit;
  16. private CustomButton cbSave;
  17. private Bitmap pngLogo;
  18. private PictureBox logo;
  19. private Bitmap pngMSG;
  20. private PictureBox logoMSG;
  21. private PictureBox logoEnterName;
  22.  
  23.  
  24. public EndGame()
  25. {
  26. InitializeComponent();
  27. FormBorderStyle = FormBorderStyle.None;
  28. WindowState = FormWindowState.Maximized;
  29.  
  30. pngLogo = new Bitmap(@"Drawable\logoEndGame.png");
  31. logo = new PictureBox();
  32. logo.BackColor = Color.Transparent;
  33. logo.Image = pngLogo;
  34. logo.Width = pngLogo.Width;
  35. logo.Height = pngLogo.Height;
  36. logo.Location = new Point(170, 20);
  37.  
  38. pngMSG = new Bitmap(@"Drawable\logoMSG.png");
  39. logoMSG = new PictureBox();
  40. logoMSG.BackColor = Color.Transparent;
  41. logoMSG.Image = pngMSG;
  42. logoMSG.Width = pngMSG.Width;
  43. logoMSG.Height = pngMSG.Height;
  44. logoMSG.Location = new Point(160, 300);
  45.  
  46. logoEnterName = new PictureBox();
  47. logoEnterName.Image = new Bitmap(@"Drawable\logoEnterName.png");
  48. logoEnterName.Width = logoEnterName.Image.Width;
  49. logoEnterName.Height = logoEnterName.Image.Height;
  50. logoEnterName.Location = new Point(350, 450);
  51. logoEnterName.BackColor = Color.Transparent;
  52.  
  53. this.BackgroundImage = new Bitmap(@"Drawable\Wall_Beige.png");
  54.  
  55. cbExit = new CustomButton(@"Buttons\EndGameButtons\ExitNormal.png", @"Buttons\EndGameButtons\ExitPress.png", @"Buttons\EndGameButtons\ExitFocus.png", 1050, 650, "ExitTag");
  56. cbSave = new CustomButton(@"Buttons\EndGameButtons\SaveNormal.png", @"Buttons\EndGameButtons\SavePress.png", @"Buttons\EndGameButtons\SaveFocus.png", 20, 650, "SaveTag");
  57.  
  58. this.Controls.Add(logoMSG);
  59. this.Controls.Add(logo);
  60. this.Controls.Add(cbExit);
  61. this.Controls.Add(cbSave);
  62. this.Controls.Add(logoEnterName);
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement