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(); }
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 }
void OnTriggerExit(Collider coll) { Blocs blocScript = coll.GetComponent <Blocs>(); if (Time.time - previousStayTime > 0.1f && blocScript != null) { blocScript.ActionOnExit(); } }
void OnTriggerEnter(Collider coll) { Blocs blocScript = coll.GetComponent <Blocs>(); if (blocScript != null) { blocScript.ActionOnEnter(); } }
void OnTriggerEnter(Collider coll) { Blocs blocScript = coll.GetComponent <Blocs>(); if (blocScript != null) { blocScript.ActionOnEnter(); previousStayTime = Time.time; } }
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"); } }
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); } } } }