public void ReadFromFile()
        {
            var content = _converter.ReadFromFile();

            foreach (var expense in content)
            {
                Console.WriteLine(expense.ToString());
            }
        }
 private void InitGrid()
 {
     var convertor = new ConvertToJson(ProjectEnvironment.FILEPATH);
     var readData = convertor.ReadFromFile();
     foreach (var expense in readData)
     {
         _gridData.Add(expense);
     }
     _form.SetGrid(_gridData);
 }
Exemple #3
0
        private void InitGrid()
        {
            var convertor = new ConvertToJson(ProjectEnvironment.FILEPATH);
            var readData  = convertor.ReadFromFile();

            foreach (var expense in readData)
            {
                _gridData.Add(expense);
            }
            _form.SetGrid(_gridData);
        }