예제 #1
0
 private void UpdateOrderTable()
 {
     dgvShowOrders.DataSource = null;
     dgvShowOrders.DataSource = OrderDAO.GetOrderTable(user.IdUser);
     nudOrderID.Maximum       = dgvShowOrders.RowCount > 0 ? Convert.ToInt32(
         dgvShowOrders.Rows[dgvShowOrders.RowCount - 1].Cells[0].Value.ToString()) : 0;
 }
예제 #2
0
 private void UpdatedgvShowOrders()
 {
     dgvShowOrders.DataSource = null;
     dgvShowOrders.DataSource = OrderDAO.GetOrderTable();
 }