Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What were the reasons for your conversion or resistance?

Answered: 1 week ago