Exemple #1
0
        public void WorkOnTenant_Handler()
        {
            string firstName = null;
            string lastName  = null;

            if (!terminalDevice.GetTenantName(ref firstName, ref lastName))
            {
                return;
            }
            if (admin.FindTenant(firstName, lastName) != null)
            {
                tenant = admin.FindTenant(firstName, lastName);
                terminalDevice.ShowTenantMenuDialog(this);
            }
        }
Exemple #2
0
        public void WorkOnTenant_Handler()
        {
            // Work on a specific tenant
            // Input the first name and the last name of the tenant to work on
            string firstName = null;
            string lastName  = null;

            if (!terminalDevice.GetTenantName(ref firstName, ref lastName))
            {
                return;
            }
            workOnTenant = Manager.FindTenant(firstName, lastName);
            if (workOnTenant != null)
            {
                terminalDevice.ShowTenantMenuDialog(this);
            }
        }
        public void WorkOnTenant_Handler()
        {
            // Work on a specific tenant
            // Input the first name and the last name of the tenant to work on
            string firstName = null;
            string lastName  = null;

            if (!terminalDevice.GetTenantName(ref firstName, ref lastName))
            {
                return;
            }
            //I think I may need a field for currently used user.
            currUser = apartment.GetWorkOnTenant(firstName, lastName);
            if (currUser != null)
            {
                terminalDevice.ShowTenantMenuDialog(this);
            }
        }
Exemple #4
0
        public void WorkOnTenant_Handler()
        {
            // Work on a specific tenant
            // Input the first name and the last name of the tenant to work on
            string firstName = null;
            string lastName  = null;

            if (!terminalDevice.GetTenantName(ref firstName, ref lastName))
            {
                return;
            }
            foreach (Tenant t in _tenants)
            {
                if (t._firstName.Equals(firstName))
                {
                    if (t._lastName.Equals(lastName))
                    {
                        _tenant = t;
                        terminalDevice.ShowTenantMenuDialog(this);
                    }
                }
            }
        }