Last Updated: December 11, 2023 4:20 AM (UTC)
Developed by Hieu Pham, Sherif Mansour, and Kris Schneider
Once you've signed up and logged in, you can perform a search, choose a member from the search results, and add a new entry to update the desired field by clicking the update button. The process for deleting is similar: you search, select, click delete, confirm the deletion, and then voilĂ .
To use the SKH Gym Management App, you need to sign up with your credentials.
-
Open the app on your device.
-
Click on the "Sign Up" button.
-
Fill in the required information (e.g., username, password, email).
-
Click the "Submit" button to create your account.
After signing up, log in to access the app's functionalities.
-
Click on the "Log In" button.
-
Enter your username and password.
-
Click the "Login" button.
Once logged in, you can search for members in the database.
-
Click on the "Search" button.
-
Enter the member's information (e.g., name, ID) in the search field.
-
Select the desired member from the search results.
After selecting a member, you can update their information.
-
Click on the "Update" button.
-
Type the new information in the corresponding fields.
-
Click the "Update" button to save the changes.
If you need to remove a member from the database, follow these steps.
-
Search for the member as described in the "Search Members" section.
-
Select the member you want to delete.
-
Click on the "Delete" button.
-
Confirm the deletion.
-
App.xaml
&App.xaml.cs
:Defines the main application class and lifecycle events. Manages initialization and startup logic for the SKH Gym Management App.
-
MainPage.xaml
&MainPage.xaml.cs
:Scrollable main page with a logo, welcome message, and buttons for sign-up, log-in, and member management. Configured button properties for size, color, and event handlers. Logic for button clicks implemented in
MainPage.xaml.cs
. -
SignUp.xaml
&SignUp.xaml.cs
:Scrollable Sign-Up page with input fields organized using
ScrollView()
andVerticalStackLayout()
. Each input field arranged usingHorizontalStackLayout()
.SignUpButton
triggersOnClickSignUp()
event on click. -
LogIn.xaml
&LogIn.xaml.cs
:Scrollable Log In page with username, password input fields, and the "Login" button. Layout organized using
ScrollView()
andVerticalStackLayout()
. LogInButton triggersOnClickLogIn()
event on click. -
ManageMember.xaml
&ManageMember.xaml.cs
:Scrollable page for managing members with a search bar, search results, and sections for selected member details and update fields. Input fields organized using various layouts like
StackLayout()
andHorizontalStackLayout()
. Buttons for updating and deleting members with corresponding event handlers (OnClickUpdate()
andOnClickDelete()
).
-
In
SignUp.xaml.cs
OnClickSignUp()
Handles the click event of theSignUpButton()
. Includes logic to validate user inputs, process the sign-up request, and navigate to the appropriate page.
-
In
LogIn.xaml.cs
OnClickLogIn()
Handles the click event of theLogInButton()
. Includes logic to authenticate user credentials, process the log-in request, and navigate to the main application page.
-
In
ManageMember.xaml.cs
-
OnSearchTextChanged()
Handles the text changed event of theMemberSearchBar
. Includes logic to filter and update the displayed search results based on the entered text. -
OnItemSelected()
Handles the item selected event of theSearchResultsListView
. Includes logic to display detailed information about the selected member. -
OnClickUpdate()
Handles the click event of the "UpdateButton". Includes logic to update the member's information based on the entered data in the update fields. -
OnClickDelete()
Handles the click event of the "DeleteButton". Includes logic to delete the selected member from the system.
-
Feel free to reach out if you encounter any issues or have suggestions for improvement. Thank you for using the SKH Gym Management App!
- Visual Studio 2022/JetBrains Rider
- dotNET SDK
- Visual Studio Code (VSCode)/VSCodium (Optional)
-
Installation Clone the repository to your local machine.
git clone 'https://github.com/FlawlessCasual17/FP_SPSU23.git'
-
Navigate to the project directory.
cd "a_directory/FP_SPSU23"
-
Prerequisite Steps
-
Open the solution in Visual Studio 2022/JetBrains Rider, or your preferred IDE.
-
Please note, the following NuGet packages are required:
Microsoft.sqlite.core
andsqlitepclraw.bundle_E_sqlite3
. These can be installed by running,dotnet add package Microsoft.sqlite.core dotnet add package sqlitepclraw.bundle_E_sqlite3
Or by using your IDEs built-in NuGet package manager GUI.
-
-
Building and Running the App
IMPORTANT NOTE: Before running the app, ensure that you comment out the dummy data to prevent it from being inserted into the database inadvertently. Failure to do so may result in unwanted data being added to the database during the initial run. Please refer to the code comments for guidance on how to comment out the dummy data.
-
Make sure you have .NET MAUI installed on your machine. If you don't have .NET MAUI on your system; you can install it by running,
Note: Make sure your working directory in your terminal is SET to the folder you cloned the project to.
dotnet workload install maui -s 'https://api.nuget.org/v3/index.json'
-
In the IDE of your choice, click the "Build" button to compile the project. Then click the "Run" button to run and deploy the app.
-