public ShowForm DescribeMerchChargeOnBlock( Form parentForm, NavBox.NavBoxActionFired fxn, DesktopSession desktopSession) { var descMerchFrm = new DescribeMerchandise(desktopSession, CurrentContext.AUDITCHARGEON); return(this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, descMerchFrm, descMerchFrm.NavControlBox, fxn, true)); }
public ShowForm CreateEnterCaccItemsShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var enterCaccItems = new EnterCaccItems(); return(this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, enterCaccItems, enterCaccItems.NavControlBox, fxn)); }
public ShowForm CreateClosedAuditShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var auditResults = new ClosedAudit(); return(this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, auditResults, auditResults.NavControlBox, fxn)); }
public ShowForm CreateUploadFromTrakkerShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var uploadFromTrakker = new UploadFromTrakker(); return(this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, uploadFromTrakker, uploadFromTrakker.NavControlBox, fxn)); }
public ShowForm CreateProcessUnexpectedItemsShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var processUnexpectedItems = new ProcessUnexpectedItems(); return(this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, processUnexpectedItems, processUnexpectedItems.NavControlBox, fxn)); }
public ShowForm CreateInventoryQuestionsShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var inventoryQuestions = new InventoryQuestions(); return(this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, inventoryQuestions, inventoryQuestions.NavControlBox, fxn)); }
public ShowForm CreateSelectStoreShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var selectStore = new SelectStore(); var selectStoreBlk = this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, selectStore, selectStore.NavControlBox, fxn); return(selectStoreBlk); }
public ShowForm CreateDownloadToTrakkerShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var downloadToTrakker = new DownloadToTrakker(); var downloadToTrakkerBlk = this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, downloadToTrakker, downloadToTrakker.NavControlBox, fxn); return(downloadToTrakkerBlk); }
public ShowForm CreateAuditManagerShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var auditManager = new AuditManager(); var auditManagerBlk = this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, auditManager, auditManager.NavControlBox, fxn); return(auditManagerBlk); }
public ShowForm CreateInitiateAuditShowBlock( Form parentForm, NavBox.NavBoxActionFired fxn) { var initiateAudit = new InitiateAudit(); var initiateAuditBlk = this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, initiateAudit, initiateAudit.NavControlBox, fxn); return(initiateAuditBlk); }
private ShowForm createShowFormBlock( ValidFormBlockTypes nm, Form pFm, Form fm, NavBox nvBox, NavBox.NavBoxActionFired nvBoxDeleg) { if (fm == null) { return(null); } var sFm = new ShowForm(AuditDesktopSession.Instance, pFm, fm, nvBox, nvBoxDeleg); return(sFm); }
public ShowForm DescribeItemBlock( Form parentForm, NavBox.NavBoxActionFired fxn, DesktopSession desktopSession) { var descItemFrm = new DescribeItem(desktopSession, AuditDesktopSession.Instance.DescribeItemContext, AuditDesktopSession.Instance.DescribeItemPawnItemIndex); ShowForm describeItemBlk = this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, descItemFrm, descItemFrm.NavControlBox, fxn); return(describeItemBlk); }
protected ShowForm createShowFormBlock( uint nm, Form pFm, Form fm, NavBox nvBox, NavBox.NavBoxActionFired nvBoxDeleg, bool showFormAsDialog) { if (fm == null) { return(null); } var sFm = new ShowForm(desktopSession, pFm, fm, nvBox, nvBoxDeleg, showFormAsDialog); return(sFm); }
/// <summary> /// Show form with form's specified nav box and /// explicitly set the navbox onactionfired /// delegate /// </summary> /// <param name="parentForm"> </param> /// <param name="fm"></param> /// <param name="fmNavBoxInst"></param> /// <param name="navBoxDelegate"></param> /// <param name="desktopSession"> </param> public ShowForm( DesktopSession desktopSession, Form parentForm, Form fm, NavBox fmNavBoxInst, NavBox.NavBoxActionFired navBoxDelegate) : base(NAME) { if (fm == null) { throw new ApplicationException("Cannot create ShowForm block"); } this.DesktopSession = desktopSession; this.form = fm; this.formNavBox = fmNavBoxInst; this.formNavBox.OnActionFire = navBoxDelegate; this.hasValidNavBox = true; this.Action = new FxnBlock(); this.Action.InputParameter = parentForm; this.Action.Function = displayForm; }
protected ShowForm createShowFormBlock( uint nm, Form pFm, Form fm, NavBox nvBox, NavBox.NavBoxActionFired nvBoxDeleg) { if (fm == null || nvBox == null || nvBoxDeleg == null) { if (FileLogger.Instance.IsLogError) { FileLogger.Instance.logMessage(LogLevel.ERROR, "CommonAppBlocksBase::ShowForm(nm,pFm,fm,nvBox,nvBoxDeleg)", "Attempted to create ShowForm block with null form or null NavBox"); } BasicExceptionHandler.Instance.AddException("CommonAppBlocksBase::ShowForm(nm,pFm,fm,nvBox,nvBoxDeleg) failed", new Exception("CommonAppBlocksBase::ShowForm(nm,pFm,fm,nvBox,nvBoxDeleg) failed")); } var sFm = new ShowForm(desktopSession, pFm, fm, nvBox, nvBoxDeleg); return(sFm); }