private void OnLoadAuction(object pObjSender, LoadAuctionArgs pObjArgs) { if (pObjArgs.Auction != null) { //Enable LeftBatchForm.EnableForm(); LeftBatchForm.EnableBatchSearch(); LeftBatchForm.txtSellerCode.Focus(); //RightBatchForm.EnableForm(); } else { //Disable LeftBatchForm.DisableForm(); LeftBatchForm.DisableBatchSearch(); AuctionHeader.txtAuction.Focus(); RightBatchForm.DisableForm(); } btnSkip.IsEnabled = pObjArgs.Auction != null ? true : false; LeftBatchForm.AuctionId = pObjArgs.Auction != null ? pObjArgs.Auction.Id : 0; LeftBatchForm.AuctionType = pObjArgs.Auction != null ? pObjArgs.Auction.Type : 0; RightBatchForm.AuctionId = pObjArgs.Auction != null ? pObjArgs.Auction.Id : 0; RightBatchForm.AuctionType = pObjArgs.Auction != null ? pObjArgs.Auction.Type : 0; QuantitiesDetail.AuctionId = pObjArgs.Auction != null ? pObjArgs.Auction.Id : 0; }