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; }
private void UserControl_Loaded(object pObjSender, RoutedEventArgs pObjArgs) { LeftBatchForm.DisableForm(); RightBatchForm.DisableForm(); AuctionHeader.LoadAuction += new LoadAuctionEventHandler(OnLoadAuction); AuctionHeader.ChangeBatchNumber += new ChangeBatchNumberEventHandler(OnChangeBatchNumber); LeftBatchForm.LoadSeller += new LoadPartnerEventHandler(OnLoadLeftSeller); LeftBatchForm.LoadBatch += new LoadBatchEventHandler(OnLoadLeftBatch); LeftBatchForm.EditBatch += new EditBatchEventHandler(OnEditBatch); LeftBatchForm.ConfirmBatch += new ConfirmBatchEventHandler(OnConfirmBatch); RightBatchForm.CompleteBatch += new CompleteBatchEventHandler(OnCompleteBatch); RightBatchForm.SaveBatch += new SaveBatchEventHandler(OnSaveBatch); RightBatchForm.UndoBatch += new UndoBatchEventHandler(OnUndoBatch); RightBatchForm.ChangeFormMode += new ChangeFormModeEventHandler(OnChangeRightFormMode); if (!grdBatchAuction.IsBlocked()) { mObjInternalWorker = new Thread(ConnectBoardsService); mObjInternalWorker.Start(); } AuctionHeader.txtAuction.Focus(); }