public LBNode LB() { if (lexer.GetToken().Id == 3) { var result = new LBNode(lexer.GetText()); lexer.NextToken(); return(result); } throw new ParserException("Got unxpected token from lexer"); }
private LBNode GetNode() { const string conPROC_NAME = "GetNode"; string strCurrentOpp = "prior to TRY"; ArrayList arrLBSubCases = null; try { mobjPerson.Database.Logger.EnterFunction(conPROC_NAME); try { arrLBSubCases = mobjLBNLCore.GetCase(mintSubLink).GetSubCases("Week Activity"); } catch { MessageBox.Show("Error retrieving LB Sub cases.", mconPROJECT_NAME, MessageBoxButtons.OK, MessageBoxIcon.Information); //throw new Exception("Error retrieving LB Sub cases"); } try { mobjLBNode = ((LBSubCase)arrLBSubCases[arrLBSubCases.Count - 1]).GetLatestNode(); } catch { MessageBox.Show("Error getting LB node (TimePeriod maybe in use by another user).", mconPROJECT_NAME, MessageBoxButtons.OK, MessageBoxIcon.Information); //throw new Exception("Error getting latest LB node"); } return(mobjLBNode); } catch (Exception objException) { mobjPerson.Database.Logger.LogFunctionError(mconCLASS_NAME, conPROC_NAME, strCurrentOpp, objException.Message); throw objException; } finally { mobjPerson.Database.Logger.LeaveFunction(conPROC_NAME); } }
public bool Lock() { return(LBNode.Lock()); }
public bool UnLock() { return(LBNode.UnLock()); }