public override List<BankTransfer> GetBankTransfers()
 {
     BankFileOperation = new FileOperationFoonesh();
     List<BankTransfer> bankTransferList = new List<BankTransfer>();
     string bankTransfers = BankFileOperation.GetFileContent(@"D:\Szkolenie C#\Code\Hornets\training\Toci.Hornets.GhostRider\Toci.Hornets.Rzeszow\Foonesh\TrainingThree\TransferData\TransferOne.txt");
     foreach (String s in bankTransfers.Split('\n'))
     {
         bankTransferList.Add(GetTransferEntry(s));
     }
     return bankTransferList;
 }
Exemplo n.º 2
0
        public override List <BankTransfer> GetBankTransfers()
        {
            BankFileOperation = new FileOperationFoonesh();
            List <BankTransfer> bankTransferList = new List <BankTransfer>();
            string bankTransfers = BankFileOperation.GetFileContent(@"D:\Szkolenie C#\Code\Hornets\training\Toci.Hornets.GhostRider\Toci.Hornets.Rzeszow\Foonesh\TrainingThree\TransferData\TransferOne.txt");

            foreach (String s in bankTransfers.Split('\n'))
            {
                bankTransferList.Add(GetTransferEntry(s));
            }
            return(bankTransferList);
        }
 public override List<BankTransfer> GetBankTransfers()
 {
     BankFileOperation = new FileOperationFoonesh();
     var lines = BankFileOperation.GetFileContent(UserPath.find()+"\\SuperBank.txt").Split(new[] {"\n"}, StringSplitOptions.None);
     return lines.Select(GetTransferEntry).ToList();
 }