Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using DevExpress.XtraEditors;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace installer
- {
- public partial class Form1 : XtraForm
- {
- public Form1()
- {
- InitializeComponent();
- DevExpress.Skins.SkinManager.EnableFormSkins();
- DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Visual Studio 2013 Dark");
- }
- private void simpleButton1_Click(object sender, EventArgs e) //The boy pic :; False
- {
- Properties.Settings.Default.Profile = false;
- Properties.Settings.Default.Save();
- girlPic.Visible = false;
- boyPic.Visible = true;
- }
- //Fix profile picture later!
- private void simpleButton2_Click(object sender, EventArgs e) //The Girl pic :; True
- {
- Properties.Settings.Default.Profile = true;
- Properties.Settings.Default.Save();
- girlPic.Visible = true;
- boyPic.Visible = false;
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- boyPic.Visible = false ;
- girlPic.Visible = false;
- if (Properties.Settings.Default.Profile)
- {
- simpleButton2.Text = "Girl Profile PIC";
- Properties.Settings.Default.Profile = true;
- Properties.Settings.Default.Save();
- girlPic.Visible = true;
- boyPic.Visible = false;
- }
- else
- {
- simpleButton2.Text = "Girl Profile PIC";
- Properties.Settings.Default.Profile = false;
- Properties.Settings.Default.Save();
- boyPic.Visible = true;
- girlPic.Visible = false;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement