Question: Part 1 1. Create an C# Class library project LibLoginAuthenticator with solution name YourFirstName_YourLastName_Lab1 2. Change the default class file name to LoginAuthenticator.cs. 3. Create

Part 1

1. Create an C# Class library project LibLoginAuthenticator with solution name YourFirstName_YourLastName_Lab1

2. Change the default class file name to LoginAuthenticator.cs.

3. Create a static class in the file created with one function named Authenticate, this function will take username and password as parameters and return if the authentication is successful. The authenticated credential will be username PRG650 and password pass.

Part 2

1. Add an C# Console Application project LoginAuthenticatorConsole to the solution created from part 1.

2. Add the project from part 1 to the new project as reference and use the Authenticate function to check if authentication is successful.

3. This project will keep asking user to enter the username and password until user enter the correct information.

Part 3

1. Add an C# Windows Forms App project LoginAuthenticatorWinForms to the solution created from part 1.

2. Add the project from part 1 to the new project as reference and use the Authenticate function to check if authentication is successful.

3. Create a simple Form to keep asking user to enter the username and password until user enter the correct information.

Part 4

1. Change the Startup setting of the solution to start up all projects at once. (Hint: since the reference is setup before, start the class library project is not necessary).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!