Advertisement
iceymods

tutoria

Nov 26th, 2017
15,989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 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 DevExpress.XtraEditors;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11.  
  12. namespace installer
  13. {
  14. public partial class Form1 : XtraForm
  15. {
  16. public Form1()
  17. {
  18. InitializeComponent();
  19. DevExpress.Skins.SkinManager.EnableFormSkins();
  20. DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Visual Studio 2013 Dark");
  21. }
  22.  
  23. private void simpleButton1_Click(object sender, EventArgs e) //The boy pic :; False
  24. {
  25. Properties.Settings.Default.Profile = false;
  26. Properties.Settings.Default.Save();
  27. girlPic.Visible = false;
  28. boyPic.Visible = true;
  29. }
  30.  
  31.  
  32. //Fix profile picture later!
  33. private void simpleButton2_Click(object sender, EventArgs e) //The Girl pic :; True
  34. {
  35. Properties.Settings.Default.Profile = true;
  36. Properties.Settings.Default.Save();
  37. girlPic.Visible = true;
  38. boyPic.Visible = false;
  39. }
  40.  
  41. private void Form1_Load(object sender, EventArgs e)
  42. {
  43. boyPic.Visible = false ;
  44. girlPic.Visible = false;
  45. if (Properties.Settings.Default.Profile)
  46. {
  47. simpleButton2.Text = "Girl Profile PIC";
  48. Properties.Settings.Default.Profile = true;
  49. Properties.Settings.Default.Save();
  50. girlPic.Visible = true;
  51. boyPic.Visible = false;
  52. }
  53. else
  54. {
  55. simpleButton2.Text = "Girl Profile PIC";
  56. Properties.Settings.Default.Profile = false;
  57. Properties.Settings.Default.Save();
  58. boyPic.Visible = true;
  59. girlPic.Visible = false;
  60. }
  61. }
  62. }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement