private void onCommandadd() { PersonsCollection.Add(new Person( RandomHelper.RandomString(10, true), RandomHelper.RandomInt(1, 43), RandomHelper.RandomBool(), RandomHelper.RandomBool(), RandomHelper.RandomDate(new DateTime(1980, 1, 1), DateTime.Now), RandomHelper.RandomColor() )); }
private void FillUpPeople() { MKeyword kw = (MKeyword)lstResult.SelectedItem; if (kw != null) { lstResult.DataSource = null; lstResult.Items.Clear(); PersonsCollection collection = new PersonsCollection(); List <MVwPeopleKeyWord> lst = collection.GetPersonalCollectionByKW(kw.Idkw); FillListPeople(lst); } }
public AstroMapStaticStatistical(int id) { if (id > 0) { ID = id; PersonsCollection pc = new PersonsCollection(); Person = pc.GetPersonById(id); if (Person != null) { CreateMap(); } } else { MessageBox.Show("Unknown error in AstroMapStatic!"); } }