private void btnAddZone_Click(object sender, EventArgs e) { frmAddZone toOpen = new frmAddZone(_zoneService); toOpen.ShowDialog(); UpdateGrid(); }
private void button1_Click(object sender, EventArgs e) { var obj = grdZone.SelectedRows[0].DataBoundItem as Zone; frmAddZone toOpen = new frmAddZone(_zoneService, obj); toOpen.ShowDialog(); UpdateGrid(); }
private void btnUpdateZone_Click(object sender, EventArgs e) { try { var obj = grdZone.SelectedRows[0].DataBoundItem as Zone; frmAddZone toOpen = new frmAddZone(_zoneService, obj); toOpen.ShowDialog(); UpdateGrid(); } catch (Exception) { } }