Пример #1
0
        public bool Process()
        {
            Debug.WriteLine("start AddMaterialChangeEntry");
            WorksheetEntry sheet = GetWorksheet("Materials");

            if (sheet == null)
            {
                _finishCallback(false);
                return(false);
            }

            sheet = CheckColumns(sheet, LogData.MaterialChangeInfo.SpreadsheetColumnTitle());

            ListFeed listFeed = _wrapper.Query(sheet);

            //ListEntry listRow = new ListEntry();
            ListEntry row = (ListEntry)listFeed.CreateFeedEntry();

            foreach (var it in _info.KeyValue)
            {
                row.Add(it);
            }

            listFeed.Insert(row);

            _finishCallback(true);
            return(true);
        }
Пример #2
0
        public bool Process()
        {
            Debug.WriteLine("start AddMissionResultEntry");
            WorksheetEntry sheet = GetWorksheet("Mission");

            if (sheet == null)
            {
                _finishCallback(false);
                return(false);
            }

            ListFeed listFeed = _wrapper.Query(sheet);

            //ListEntry listRow = new ListEntry();
            ListEntry row = (ListEntry)listFeed.CreateFeedEntry();

            foreach (var it in _info.KeyValue)
            {
                row.Add(it);
            }

            listFeed.Insert(row);

            _finishCallback(true);
            return(true);
        }