void checkDataSource() { //ToolMobile.setRuntimeMsg("checkDataSource starting"); var s = SettingsFromXmlDoc.createDummy(); string old_ = s.format(); fillDataForRequest(s); string new_ = s.format(); if (old_ != new_) { AgentData ad = new AgentData(environment); string res_ = ad.sendText(new_); if (!string.IsNullOrEmpty(res_)) { var newS_ = new SettingsFromXmlDoc(res_); // checkDataFromRespose(newS_); } } if (getUnSyncedDocs().Rows.Count > 0) { log.set(MessageCollection.T_MSG_RECORD_NOT_SYNCED, new object[] { getRecDesc(getUnSyncedDocs().Rows[0]) }); throw new MyExceptionError(MessageCollection.T_MSG_RECORD_NOT_SYNCED); } ToolMobile.setRuntimeMsg("checkDataSource finished"); }