protected override void ClearControls() { LblStockOrderID.Text = StockOrder.GenerateNewPrimaryKey().ToString(); StockIdToAdd = new List <string>(); QuantityToAdd = new List <string>(); NudStockQuantity.Value = 1; CbxStaffID.ResetText(); CbxStock.ResetText(); DtpStockOrderDate.Value = DateTime.Now; }
protected override void ClearControls() { LblOrderID.Text = CustomerOrder.GenerateNewPrimaryKey().ToString(); StockIdToAdd = new List <string>(); QuantityToAdd = new List <string>(); CbxStaffID.ResetText(); CbxCustomerID.ResetText(); CbxCardID.ResetText(); CbxStock.ResetText(); NudStockQuantity.Value = 1; CbxOrderPaid.Checked = false; DtpOrderDate.Value = DateTime.Now; TbxOrderAddress.ResetText(); TbxOrderNotes.ResetText(); }