Beispiel #1
0
        private void btnChangeProfilePic_Click(object sender, EventArgs e)
        {
            string         file           = HelperTools.LoadFromFile();
            string         databasePath   = HelperTools.AddFileToStorage(file, (int)_currentUser.GetUserID());
            DataBaseAccess dataBaseAccess = new DataBaseAccess();

            dataBaseAccess.StartConnection();
            dataBaseAccess.ChangeUserProfile((int)_currentUser.GetUserID(), databasePath);
            dataBaseAccess.CloseConnection();
        }