Esempio n. 1
0
        public ChangeProfile(Dashboard frm)
        {
            InitializeComponent();

            admin = frm;
            LoadProfile profile = new LoadProfile();

            lblUserID.Text          = profile.UserID;
            lblUsername.Text        = profile.Username;
            lblEmail.Text           = profile.Email;
            lblAccountID.Text       = profile.AccountID;
            pbxProfilePicture.Image = Image.FromFile($"UserImages\\{profile.UserID}.jpg");
        }
Esempio n. 2
0
        public EditProfile()
        {
            InitializeComponent();

            LoadProfile profile = new LoadProfile();

            txtFirstName.Text       = profile.FirstName;
            txtMiddleName.Text      = profile.MiddleName;
            txtLastName.Text        = profile.Lastname;
            txtEmail.Text           = profile.Email;
            txtPassword.Text        = profile.Password;
            txtConfirmPassword.Text = txtPassword.Text;
            txtUsername.Text        = profile.Username;
            lblUserID.Text          = profile.UserID;
        }