public Person GetPerson(int id) { Data_People data_People = new Data_People(); var person = data_People.GetrById(id); return(person); }
public void ShowDetails(Data_People dataRef) { //get the data data = dataRef; LoadDetails(); //move the window Invoke("GrowCard", 0.4f); }
private void SortByFunction(Func <Data_People, string> GetAttribute) { foreach (GameObject person in displayedBlocks) { //get the data for according to the function Data_People personData = person.GetComponent <Data_People>(); string newName = GetAttribute(personData); //change the object name person.name = newName; } //sort grid by object name grid.Reposition(); }
public void UpdatePerson(int id, string Identification, string Name, string Mail, string Password, int points, bool state) { Data_People data_People = new Data_People(); Person person = new Person(); person.ID_Person = id; person.Identification = Identification; person.Name = Name; person.Mail = Mail; person.Password = Password; person.Points = points; person.Ind_User = state; data_People.Update(person); }
public void ShowDetails(Data_People dataRef) { //get the data data = dataRef; //the fade out loads the details FadeOutDetails(); //change the grid to 1 column SetGridColumns(1); Invoke("CentreOnCurrentData", 0.25f); //move the window PlayTween(detailWindow, true); }
public Person AddPerson(string Identification, string Name, string Mail, string Password, int points, bool state) { Data_People data_People = new Data_People(); Person person = new Person(); person.Identification = Identification; person.Name = Name; person.Mail = Mail; person.Password = Password; person.Points = points; person.Ind_User = state; data_People.Insert(person); return(person); }
protected override void LocalFilter() { if (currentFilters.Count > 0) { scrollView.ResetPosition(); List <GameObject> toAdd = new List <GameObject>(); foreach (GameObject block in displayedBlocks) { Data_People project = block.GetComponent <Data_People>(); if (!ContainsAllFilters(project.taxonomies, currentFilters)) { //save index to remove later block.SetActive(false); } } //empty the list downloadedStrings.Clear(); scrollView.ResetPosition(); } }
private string GetPersonJob(Data_People person) { return(person.jobObj.GetComponent <UILabel>().text); }
private string GetPersonName(Data_People person) { return(person.nameObj.GetComponent <UILabel>().text); }
public void DeletePerson(int id) { Data_People data_People = new Data_People(); data_People.Delete(id); }