/// <summary>
    /// go to page type T where T:Page
    /// </summary>
    /// <typeparam name="T">go to page type T</typeparam>
    public void SwitchEnviromentOn <T>(params object[] parameters) where T : Enviroment
    {
        Enviroment enviromentActvate = null;

        foreach (var enviroment in _enviroments)
        {
            if (enviroment.GetType() == typeof(T))
            {
                enviromentActvate = enviroment;
                //PageSetActivate(page);
                _enviromentsHistory.Push(enviroment);
            }
            else
            {
                enviroment.SetActivate(false);
            }
        }
        enviromentActvate.SetActivate(true, parameters);
    }