//event data proceed public void eventDataProceed(string eventid, string pagename, string lable = "", int acc = 1, double count = 0.0) { Event obj = model.getEventInfo(eventid, pagename, lable, acc); if (settings["repolicy"].Equals("1") && Utility.isNetWorkConnected()) { Post post = new Post((int)UMSAgent.UMSApi.DataType.EVENTDATA, obj); post.stateChanged += new Post.stateChangedHandler(this.getData); post.sendData(model.getUrl((int)UMSAgent.UMSApi.DataType.EVENTDATA)); } else { FileSave.saveFile((int)UMSAgent.UMSApi.DataType.EVENTDATA, obj); } }
//event data proceed public void eventDataProceed(string eventid, string pagename, string lable = "", int acc = 1) { Event obj = model.getEventInfo(eventid, pagename, lable, acc); if ("1".Equals(ApplicationSettings.GetSetting <string>(SettingKeys.REPORT_POLICY)) && Utility.isNetWorkConnected()) { Post post = new Post((int)UMSAgent.UMSApi.DataType.EVENTDATA, obj); post.stateChanged += new Post.stateChangedHandler(this.getData); post.sendData(model.getUrl((int)UMSAgent.UMSApi.DataType.EVENTDATA)); } else { FileSave.saveFile((int)UMSAgent.UMSApi.DataType.EVENTDATA, obj); } }