void DesktopSettingsMenuController::OnAppModeChanged(const AppModes::AppModeChangedMessage& message)
            {
                m_currentAppMode = message.GetAppMode();

                if (!m_viewModel.IsFullyClosed())
                {
                    m_viewModel.Close();
                }
            }
 void MyPinCreationInitiationController::OnAppModeChangedMessage(const AppModes::AppModeChangedMessage& message)
 {
     m_appModeAllowsOpen = message.GetAppMode() == AppModes::SdkModel::WorldMode;
     
     if(m_appModeAllowsOpen)
     {
         m_viewModel.AddToScreen();
     }
     else
     {
         m_viewModel.RemoveFromScreen();
     }
 }
 void InteriorsExplorerViewModel::OnAppModeChanged(const AppModes::AppModeChangedMessage &message)
 {
     m_canAddToScreen = (message.GetAppMode() == AppModes::SdkModel::InteriorMode);
 }
 void InteriorsExplorerController::OnAppModeChanged(const AppModes::AppModeChangedMessage& message)
 {
     m_appMode = message.GetAppMode();
 }