示例#1
0
        private void UpdateAppStatus()
        {
            if (m_persistorStatus == ServiceConnectionStatesEnum.Error)
            {
                UIHelper.SetFill(m_appStatusIcon, Colors.Red);
                UIHelper.SetText(m_provisioningStatusMessage, m_persistorStatusMessage + " " + m_entitiesServiceURL);

                if (m_userPage != null)
                {
                    m_userPage.SetProvisioningStatusIconColour(Colors.Red);
                    m_userPage.SetProvisioningStatusMessage(m_persistorStatusMessage + " " + m_entitiesServiceURL);
                }
            }
            else if (m_persistorStatus == ServiceConnectionStatesEnum.Ok)
            {
                UIHelper.SetFill(m_appStatusIcon, Colors.Green);
                UIHelper.SetText(m_provisioningStatusMessage, "Provisioning service ok. " + m_entitiesServiceURL);

                if (m_userPage != null)
                {
                    m_userPage.SetProvisioningStatusIconColour(Colors.Green);
                    m_userPage.SetProvisioningStatusMessage("Provisioning service ok. " + m_entitiesServiceURL);
                }

                if (m_loginControl.Visibility == System.Windows.Visibility.Visible)
                {
                    m_loginControl.FocusOnUsername();
                }
            }
        }