private void bbiNew_ItemClick(object sender, ItemClickEventArgs e) { CourierId = 0; AddCourier addCourier = new AddCourier(); addCourier.ShowDialog(); bindData(); }
private void bbiEdit_ItemClick(object sender, ItemClickEventArgs e) { foreach (int i in gridView.GetSelectedRows()) { DataRow row = gridView.GetDataRow(i); CourierId = Convert.ToInt32(row[0].ToString()); AddCourier addCourier = new AddCourier(); addCourier.ShowDialog(); bindData(); } }