示例#1
0
        // handlers for MainMenuDialog
        public void AddTenant_Handler()
        {
            string firstName  = null;
            string lastName   = null;
            string accessCode = null;

            if (!terminalDevice.GetTenantInfo(ref firstName, ref lastName, ref accessCode))
            {
                return;
            }
            admin.AddTenant(firstName, lastName, accessCode);
        }
        // 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;
            }

            apartment.CreateUser(firstName, lastName, accessCode);
        }
示例#3
0
        // 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;
            }
            Tenant tenant = new Tenant(firstName, lastName, accessCode);

            _tenants.Add(tenant);
        }