Ejemplo n.º 1
0
        public static void RefreshUser()
        {
            if (Securities != null)
            {
                Securities.Clear();
            }
            if (Users != null)
            {
                Users.Clear();
            }
            if (Accounts != null)
            {
                Accounts.Clear();
            }
            if (Blocs != null)
            {
                Blocs.Clear();
            }
            if (Corporations != null)
            {
                Corporations.Clear();
            }
            if (Departments != null)
            {
                Departments.Clear();
            }
            if (Employees != null)
            {
                Employees.Clear();
            }

            User.MenuProvider.RefreshMenus();
        }
Ejemplo n.º 2
0
        private async void Guardar()
        {
            Bloc.Fecha     = DateTime.Now;
            Bloc.IdUsuario = (Session["usuario"] as Usuario).Id;
            Bloc.Icono     = "";
            await _servicio.AddBloc(Bloc); //Añade a azure

            Blocs.Add(Bloc);               //Añade a local
        }
Ejemplo n.º 3
0
    void OnTriggerExit(Collider coll)
    {
        Blocs blocScript = coll.GetComponent <Blocs>();

        if (Time.time - previousStayTime > 0.1f && blocScript != null)
        {
            blocScript.ActionOnExit();
        }
    }
Ejemplo n.º 4
0
    void OnTriggerEnter(Collider coll)
    {
        Blocs blocScript = coll.GetComponent <Blocs>();

        if (blocScript != null)
        {
            blocScript.ActionOnEnter();
        }
    }
Ejemplo n.º 5
0
    void OnTriggerEnter(Collider coll)
    {
        Blocs blocScript = coll.GetComponent <Blocs>();

        if (blocScript != null)
        {
            blocScript.ActionOnEnter();
            previousStayTime = Time.time;
        }
    }
Ejemplo n.º 6
0
        private async void Guardar()
        {
            try
            {
                Bloc.Fecha     = DateTime.Now;
                Bloc.IdUsuario = ((Usuario)Session["usuario"]).Id;
                Bloc.Icono     = "";
                await _servicio.AddBloc(Bloc);

                Blocs.Add(Bloc);

                await _navigator.PopAsync();
            }
            catch (Exception e)
            {
                await new Page().DisplayAlert("Error", e.Message, "OK");
            }
        }
Ejemplo n.º 7
0
    void InitHashtable()
    {
        blocsHash     = new Dictionary <Blocs.BLOC_TYPE, Object>();
        blocsTypeHash = new Dictionary <char, Blocs.BLOC_TYPE>();

        foreach (Object blocPrefab in blocsPrefab)
        {
            if (blocPrefab is GameObject)
            {
                Blocs blocScript = ((GameObject)blocPrefab).GetComponent <Blocs>();
                if (blocScript != null)
                {
                    blocsHash.Add(blocScript.type, blocPrefab);
                    blocsTypeHash.Add(blocScript.blocChar[0], blocScript.type);
                }
            }
        }
    }