In this video we will cover how to add data to a ComboBox through the Datasource binding, using an Interface and Polymorphism.
Basic Steps:
Build an interface for data repository
Design MockRepository with method return of ComboBox values
Outline future SQLite Repository
Create service class to loosely couple form from data.
Implement polymorphism of the new interface.
Refactor LoginForm
Update ComboBox with new values.
Read ComboBox as class object type and send data to next form.
C# .NET
Windows Form Application
Visual Studio
List
ComboBox
Datasource
DisplayMember
selectedItem
Interface
Polymorphism
class objects
IEnumberable
DialogResult
null