Exemplo n.º 1
0
        static void SaveTable(string filename, string[] timetable)
        {
            var table = timetable.Select(v => new List <string> ()
            {
                v
            }).ToList();

            CSVFormat.WriteCSVTable(filename, table);
        }
Exemplo n.º 2
0
        static void Tests()
        {
            //var credential = Auth();
            //var service = CreateCalendarService(credential);

            //RequestSample(service);
            //CreateSampleEvent(service);

            //var calendar = CreateSampleCalendar(service, "Test");

            // EventCSVFormat.CreateCSVFile("test_calendar", new List<Event>() { event_});

            //SheetsManager.Foo();
            //Console.WriteLine(new DateTime().ToString("t", new System.Globalization.CultureInfo("en-US")));

            var service = RemoteSheets.Auth();
            var table   = RemoteSheets.Read(service, "1zcN4wBLvq_tnYrY7BfGjW2zBhcX_rET0DO6iBgEFZPw", "Лист2", "B2");

            CSVFormat.WriteCSVTable("table.csv", table);
        }