Esempio n. 1
0
        public static void InitImageLinks()
        {
            hashMap.Clear();
            TextFileReader reader = new TextFileReader();

            string[] data = reader.FetchStringArrayByLocation(System.AppDomain.CurrentDomain.BaseDirectory + @"..\..\Data\ImageLinks.txt");
            if (data == null)
            {
                return;
            }

            for (int x = 0; x < data.Length; x++)
            {
                if (data[x] == "")
                {
                    continue;
                }

                int    posOfSepperator = data[x].IndexOf(':');
                string key             = data[x].Substring(0, posOfSepperator);
                string link            = data[x].Substring(posOfSepperator + 1, data[x].Length - key.Length - 2);

                hashMap.Add(key, link);
            }
        }
Esempio n. 2
0
        void LoadTransactionsList()
        {
            ListItemTransactions[] listItems = new ListItemTransactions[20];
            TextFileReader         reader    = new TextFileReader();

            string[] data = reader.FetchStringArrayByLocation(System.AppDomain.CurrentDomain.BaseDirectory + @"..\..\Data\Transactions.txt");

            TransactionService instance = TransactionService.GetTransactionService();

            instance.InitListByStringArray(data);
        }