Пример #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);
        }