Skip to content

xeelo2000/Lab2

Repository files navigation

Lab 2 - .NET MAUI GUI for Lab 1

Purpose

This lab helps get us familiar with .NET MAUI by creating a UI for the backend that was established in Lab 1.

MainPage.xaml

  • Responsible for defining the user interface
  • This contains a ListView which is acquiring data from the Database (which is just a flat file titled clues.db)

MainPage.xaml.cs

  • Responsible for establishing the connection between the ListView and the database with:
EntriesLV.ItemsSource = MauiProgram.bl.GetEntries();
  • Also calls the proper BusinessLogic methods
  • Displays the alerts for any error messages that may appear

BusinessLogic.cs

  • Used as a means of communication between the UI (MainPage.xaml / MainPage.xaml.cs) and the Database (Database.cs) by calling proper methods
  • Checks user input via CheckEntryFields()

Database.cs

  • Connected to the file that serves as the "database"
  • This directly writes to and reads from the "database" and is responsible for serialization and deserialization

How to Run

  1. Open the Lab2.slnfile in the Visual Studio
  2. Ensure that an Android device is able to be simulated (Android Studio was used for this specific lab)
  3. Run the application via Visual Studio and ensure that the target is an Android device that is able to be emulated SCR-20220927-ijs
  4. The app should be exist within the tablet and function there!

Alternative Way to Run (Windows / Mac)

If there are issues that arise with running it via an emulated device, you're able to just target it to be ran just as .NET MAUI Application directly on your computer. SCR-20220927-iob

Lab Output (for Professor)

Before Insertion:
SS1

After Insertion:
SS2

About

Lab2 for Software Engineering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages