public RaboFileReader(string FileToRead)
        {
            Transactions = new List<RaboTransaction>();

            if (File.Exists(FileToRead) == false)
            {
                throw new DirectoryNotFoundException("File '" + FileToRead + "' not found.");

            }

            string[] lines = Helpers.ReadLinesFromTextfile(FileToRead);

            foreach (string line in lines)
            {
                try
                {
                    RaboTransaction t = new RaboTransaction(line);
                    Transactions.Add(t);
                }
                catch (Exception e)
                {

                }
            }
        }
Esempio n. 2
0
        public Post(string _Naam, RaboTransaction _T)
        {
            this.Transactions = new HashSet<RaboTransaction>();
            this.Transactions.Add(_T);

            this.Naam = _Naam;
        }
 public void AddTransaction(RaboTransaction T)
 {
     if (T != null) this.Transactions.Add(T);
 }