Question: this is visual studio 2022 C# language On the employee list form, clicking the Delete Employee button will delete selected employees in the ListView. If
this is visual studio 2022 C# language
On the employee list form,
clicking the Delete Employee button will delete selected employees in the ListView. If no employee records are selected, clicking this button will display a warning message. If there are any employee records deleted in the ListView, the EmployeeList.txt file must be updated accordingly, that is, the ListView must be synchronized with the EmployeeList.txt file.
clicking the Add Employee button shows the add employee form and the employee list form can be either shown or hidden. See Figure 2.
Clicking the Edit Employee button shows the edit employee form. The edit employee form populates the selected employee object for editing. See Figure 3.

Figure 1 The Form of Employee List
On the add employee form, user can add a Fulltime or Parttime employee. All data inputs must be validated. Clicking the Save and Close button will save the new employee into the EmployeeList.txt file and refresh the ListView in the employee list form to show the new employee, that is, the ListView must be synchronized with the EmployeeList.txt file.

Figure 2 The Form of Adding New Employee
The edit employee form populates the selected employee object. User is not allowed to change employee type (the employee type dropdown is disabled shown below). All data inputs must be validated. Clicking the Save and Close button will save the edited employee into the EmployeeList.txt file and refresh the ListView in the employee list form to show the updated employee, that is, the ListView must be synchronized with the EmployeeList.txt file.
Note: My demo program uses one Form for both editing and adding new employee. If you cannot figure out how to use one form for both adding and editing, you can use two Forms, one for editing, the other for adding.

Figure 3 The Form of Editing Employee
Generate Employoe Report Employoe Type Full Time Fullname Address Annual Salary Swe and Close Ede Engtyon Employee Type Part Tine Fulfario Address 123N23St Hoxily Rate 50.00 Total Annuell Hours 2000 Savo and Close Generate Employoe Report Employoe Type Full Time Fullname Address Annual Salary Swe and Close Ede Engtyon Employee Type Part Tine Fulfario Address 123N23St Hoxily Rate 50.00 Total Annuell Hours 2000 Savo and Close
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
