Class DBListBoxHandler
Stellt Funktionen für eine ListBox bereit, die die ListBox automatisiert befüllen und Datensätze in der Datenbank manipulieren
Inheritance
System.Object
    DBListBoxHandler
  Implements
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class DBListBoxHandler : object, IDynamicSqlObjectAction
  Constructors
| Improve this Doc View SourceDBListBoxHandler(ListBox, String, String, String, String, String)
Handler erstellen
Declaration
public DBListBoxHandler(ListBox Control, string ConnectionName, string FillStatement, string InsertStatement, string DeleteStatement, string UpdateStatement = "")
  Parameters
| Type | Name | Description | 
|---|---|---|
| ListBox | Control | Instanz einer ListBox  | 
      
| System.String | ConnectionName | Name der Verbindungszeichenfolge  | 
      
| System.String | FillStatement | Statement zum Befüllen der ListBox  | 
      
| System.String | InsertStatement | Statement um ein Item aus der ListBox in die DB zu schreiben  | 
      
| System.String | DeleteStatement | Statement um ein Item aus der ListBox aus der DB zu löschen  | 
      
| System.String | UpdateStatement | Statement um ein Item aus der ListBox in der DB zu aktualisieren  | 
      
Properties
| Improve this Doc View SourceIsSortable
Declaration
public bool IsSortable { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
ValueBindingPropertyName
Wert der gebindet werden soll (es ist ausschließlich ListBoxHandler) erlaubt
Declaration
public string ValueBindingPropertyName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Methods
| Improve this Doc View SourceAddItemToUpdateStack(ListBoxItem)
ListBox - Item zu den gänderten Objekten hinzufügen
Declaration
public void AddItemToUpdateStack(ListBoxItem Item)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ListBoxItem | Item | LB-Item  | 
      
ExecuteAction(DynamicSqlObject, String, SqlObjectActionType)
Declaration
public void ExecuteAction(DynamicSqlObject dynamicSqlObject, string attachedMember, SqlObjectActionType actionType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DynamicSqlObject | dynamicSqlObject | |
| System.String | attachedMember | |
| SqlObjectActionType | actionType | 
Fill(String)
Befüllt die ListBox
Declaration
public void Fill(string GroupId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | GroupId | 
SaveChanges()
Speichert alle Änderungen
Declaration
public void SaveChanges()