Exemplo n.º 1
0
        public IDs MostRecentOpen(ID group)
        {
            List <IDs> allIDsPermLocal  = new List <IDs>();
            IDs        mostRecentOpenID = new IDs();

            allIDsPermLocal = group.allIDsPerm.ToList <IDs>();
            foreach (IDs thing in allIDsPermLocal)
            {
                if (thing.state == 1)
                {
                    mostRecentOpenID = thing;
                }
            }
            return(mostRecentOpenID);
        }
Exemplo n.º 2
0
        public void AddID(List <object> FinalInstructions)
        {
            IDs temporaryPlaceholderID = new IDs();                                                    // Just a temporary ID to access the most recent ID function, it is not added to anything.

            curleyContents[temporaryPlaceholderID.MostRecentOpen(curleyBrackets)] = FinalInstructions; // Add the final instructions of that line to the dict with a key of the ID of the block (set of { } ) it is in.
        }