private void btnDetail_Click(object sender, EventArgs e) { frmOrderDetail _frmDetail = new frmOrderDetail(orderBindingSource.Current as Order); if (_frmDetail.ShowDialog() == DialogResult.Cancel) { orderTBBindingSource.DataSource = OrderBUS.getAll(); } }
private void frmOrder_Load(object sender, EventArgs e) { orderTBBindingSource.DataSource = OrderBUS.getAll(); orderBindingSource.DataSource = new Order(); }