Class TenantEditorViewModel
Viewmodel for the TenantEditor
Inheritance
System.Object
TenantEditorViewModel
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class TenantEditorViewModel : UI.MVC.ViewModelBase
Constructors
| Improve this Doc View SourceTenantEditorViewModel()
Create a new viewmodel and initialize needed properties
Declaration
public TenantEditorViewModel()
Properties
| Improve this Doc View SourceHasDataOrganizationSelection
Information about whether a tenant is selected.
Declaration
public bool HasDataOrganizationSelection { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasDataSelection
Information about whether a tenant is selected.
Declaration
public bool HasDataSelection { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
OrganizationTenants
Gets a list of organization tenants
Declaration
public ObservableCollection<OrganizationTenantViewModel> OrganizationTenants { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<OrganizationTenantViewModel> |
SelectedOrganizationTenant
Gets or sets the selected organization tenant
Declaration
public OrganizationTenantViewModel SelectedOrganizationTenant { get; set; }
Property Value
Type | Description |
---|---|
OrganizationTenantViewModel |
SelectedTenant
Currently selected tenant
Declaration
public TenantViewModel SelectedTenant { get; set; }
Property Value
Type | Description |
---|---|
TenantViewModel |
Tenants
List of available tenants
Declaration
public ObservableCollection<TenantViewModel> Tenants { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<TenantViewModel> |
Methods
| Improve this Doc View SourceAddOrganizationTenant()
Add a new organization tenant
Declaration
public void AddOrganizationTenant()
AddTenant()
Creates a new tenant, adds it to Tenants and sets SelectedTenant to it
Declaration
public void AddTenant()
DeleteOrganizationTenant(OrganizationTenantViewModel)
Deletes a given tenant from Tenants. To delete it from the DB the save method has to be called.
Declaration
public void DeleteOrganizationTenant(OrganizationTenantViewModel tenant)
Parameters
Type | Name | Description |
---|---|---|
OrganizationTenantViewModel | tenant |
DeleteTenant(TenantViewModel)
Deletes a given tenant from Tenants. To delete it from the DB the save method has to be called.
Declaration
public void DeleteTenant(TenantViewModel tenant)
Parameters
Type | Name | Description |
---|---|---|
TenantViewModel | tenant |
Save()
Saves all tenantes that have a dirty viewmodel if there
Declaration
public void Save()