public Tenant(string firstName, string lastName, string accessCode, BarredNumbersList barredList, CallData callData) { this.firstName = firstName; this.lastName = lastName; this.accessCode = accessCode; this.barredList = barredList; this.callData = callData; }
// handlers for MainMenuDialog public void AddTenant_Handler() { // Add a tenant // Get the name and access code of the tenant to be added string firstName = null; string lastName = null; string accessCode = null; if (!terminalDevice.GetTenantInfo(ref firstName, ref lastName, ref accessCode)) { return; } BarredNumbersList bnl = new BarredNumbersList(); CallData cl = new CallData(); TenantData.AddTenant(new Tenant(firstName, lastName, accessCode, bnl, cl)); }