public void ReloadData() { if (_itemLogin != null) { SystemConfig.UserID = _itemLogin.UserID; SystemConfig.UserName = _itemLogin.Name; SystemConfig.DisplayName = _itemLogin.LastName + " " + _itemLogin.FirstName; SystemConfig.UserType = _itemLogin.UserType; SystemConfig.CurrentDate = DateTime.Now; DisplayName = "Người dùng: " + SystemConfig.DisplayName; DisplayDate = "Ngày: " + DateTime.Now.ToString("dd/MM/yyyy"); if (SystemConfig.UserType > 1) { _listAuth = null; _modelAuth.GetListAuthenticationMenuAsync(); } else { _listAuth = new List <Authentication>(); LoadInitComplete(); } } }
public void ReloadData() { if (SystemConfig.UserID != -1) { DisplayName = "Người dùng: " + SystemConfig.DisplayName; DisplayDate = "Ngày: " + DateTime.Now.ToString("dd/MM/yyyy"); if (ListAuth == null) { if (SystemConfig.UserType > 1) { _modelAuth.GetListAuthenticationMenuAsync(); } else { ListAuth = new List <Authentication>(); LoadInitComplete(); } } else { LoadInitComplete(); } } }