예제 #1
0
        public CheckedOutItem CreateCheckedOutItemFromLine(string line)
        {
            string[] items = line.Split(',');

            CheckedOutItem checkedOutItem = new CheckedOutItem(items[0], items[1], items[2], items[3], items[4], items[5], items[6]);

            return(checkedOutItem);
        }
예제 #2
0
        //should be called when program is opened
        public void LoadLinkedList(string filePath)
        {
            string[] fileLines = File.ReadLines(filePath).ToArray();

            foreach (string line in fileLines)
            {
                CheckedOutItem checkedOutItem = CreateCheckedOutItemFromLine(line);
                list.AddLast(checkedOutItem);
            }
        }
예제 #3
0
 public void AddCheckedOutItemToList(CheckedOutItem checkedOutItem)
 {
     list.AddLast(checkedOutItem);
 }