Example #1
0
        public async Task Initialize()
        {
            Sheet sheet;

            if (Settings.Instance.RecentFile != null)
            {
                try
                {
                    sheet = await CsvLoader.LoadLocal(Settings.Instance.RecentFile);
                }
                catch
                {
                    sheet = await CsvLoader.Load("student-mat.csv");
                }
            }
            else
            {
                sheet = await CsvLoader.Load("student-mat.csv");
            }

            await Logger.Instance.Initialize();

            Logger.Instance.Log("Logging has been started.");

            Initialize(sheet);
        }