Exemplo n.º 1
0
        public void ReadExcelTest()
        {
            excelService = Mvx.IoCProvider.Resolve <IExcelService>();

            var    assembly     = Assembly.GetExecutingAssembly();
            string resourceName = assembly.GetManifestResourceNames()
                                  .Single(str => str.EndsWith("Klasse3a.xlsx"));

            using (Stream stream = assembly.GetManifestResourceStream(resourceName))
            {
                excelService.OpenFile(stream);
            }
            excelService.ReadTables();

            mathe     = excelService.GetMathe();
            deutsch   = excelService.GetDeutsch();
            sachkunde = excelService.GetSachkunde();
            englisch  = excelService.GetEnglisch();
            kunst     = excelService.GetKunst();
            werken    = excelService.GetWerken();
            musik     = excelService.GetMusik();
            sport     = excelService.GetSport();
            ethik     = excelService.GetEthik();
            religion  = excelService.GetReligion();
            gesamtHj  = excelService.GetGesamtHj();
            gesamtEj  = excelService.GetGesamtEj();
            lehrer    = excelService.GetLehrer();
        }