private void ccaattPostProcessing(DopaGeocodeList data) { data.RemoveAllKnownGeocodes(); data.ExportToXML(Path.Combine(GlobalSettings.XMLOutputDir, "unknowngeocodes.xml")); var form = new StringDisplayForm("New Geocodes", data.ToString()); form.Show(); }
private void openFileDialogCCAATT_FileOk(Object sender, CancelEventArgs e) { this.Activate(); String[] files = openFileDialogCCAATT.FileNames; foreach (String fileName in files) { var data = new DopaGeocodeList(fileName); ccaattPostProcessing(data); } }
static public DopaGeocodeList CreateFromOnline() { System.Net.WebClient lWebClient = new System.Net.WebClient(); System.IO.Stream WebStream = lWebClient.OpenRead(SourceURL); DopaGeocodeList retval = new DopaGeocodeList(); StreamReader lReader = new StreamReader(WebStream, TambonHelper.ThaiEncoding); retval.ParseList(lReader); return(retval); }
private void btn_DownloadCcaatt_Click(Object sender, EventArgs e) { var data = DopaGeocodeList.CreateFromOnline(); ccaattPostProcessing(data); }