예제 #1
0
        public Person GetPerson(int id)
        {
            Data_People data_People = new Data_People();
            var         person      = data_People.GetrById(id);

            return(person);
        }
예제 #2
0
    public void ShowDetails(Data_People dataRef)
    {
        //get the data
        data = dataRef;
        LoadDetails();

        //move the window
        Invoke("GrowCard", 0.4f);
    }
예제 #3
0
 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();
 }
예제 #4
0
        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);
        }
예제 #5
0
    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);
    }
예제 #6
0
        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);
        }
예제 #7
0
    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();
        }
    }
예제 #8
0
 private string GetPersonJob(Data_People person)
 {
     return(person.jobObj.GetComponent <UILabel>().text);
 }
예제 #9
0
 private string GetPersonName(Data_People person)
 {
     return(person.nameObj.GetComponent <UILabel>().text);
 }
예제 #10
0
        public void DeletePerson(int id)
        {
            Data_People data_People = new Data_People();

            data_People.Delete(id);
        }