Exemplo n.º 1
0
 private void btnAddRenter_Click(object sender, EventArgs e)
 {
     AddRenter form = new AddRenter();
     form.DataSource = Renters;
     form.Token = this.Token;
     form.Add_Callback += Add_Callback;
     form.ShowDialog(this);
 }
Exemplo n.º 2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     AddRenter form = new AddRenter();
     form.DataSource = dgvList.DataSource as List<Customer>;
     form.Token = this.Token;
     form.Add_Callback += Add_Callback;
     form.ShowDialog(this);
     this.Activate();
 }