/// <summary> /// Load interface and binding to ComoboBox control; /// </summary> private void LoadInterfaces() { // create interfacelist object Tik4Net.Objects.InterfaceList interfaceList = new Tik4Net.Objects.InterfaceList(); // load interface interfaceList.LoadAll(); // binding to ComboBox interfaceComboBox.DataSource = interfaceList.ToList(); interfaceComboBox.DisplayMember = "Name"; }
/// <summary> /// Load interface and binding to ComoboBox control; /// </summary> private void LoadInterfaces() { // create interfacelist object Tik4Net.Objects.InterfaceList interfaceList = new Tik4Net.Objects.InterfaceList(); // load interface interfaceList.LoadAll(); // binding to ComboBox interfaceComboBox.DataSource = interfaceList.ToList(); interfaceComboBox.DisplayMember = "Name"; }