Ejemplo n.º 1
0
 public static PeopleService GetInstance()
 {
     if (service == null)
     {
         service = new PeopleService();
     }
     return(service);
 }
Ejemplo n.º 2
0
 public AddPerson()
 {
     InitializeComponent();
     service = PeopleService.GetInstance();
 }
Ejemplo n.º 3
0
 public MainScreen()
 {
     InitializeComponent();
     service = PeopleService.GetInstance();
     dataGridView1.DataSource = service.GetPeople();
 }