Example #1
0
        static void Main(string[] args)
        {
            string jPath = args[0];
            string jText = System.IO.File.ReadAllText(jPath);

            JsonCollection jColl = JsonConvert.DeserializeObject <JsonCollection>(jText);
            //JsonSettings jSettings = JsonConvert.DeserializeObject<JsonSettings>(jText);

            double?breakDist    = 0.0;
            double?refLatitude  = 0.0;
            double?refLongitude = 0.0;
            double?refElevation = 0.0;

            //foreach(JsonSettings json in jColl.JsonSettings)
            //{
            //    string eingabe = json.fileName;
            //    string ausgabe = json.destFileName;
            //    MessageBox.Show(eingabe);
            //    MessageBox.Show(eingabe);
            //}

            var conn = new ConnectionInterface();

            foreach (JsonSettings jSettings in jColl.JsonSettings)
            {
                conn.mapProcess(jSettings, breakDist, refLatitude, refLongitude, refElevation);
            }
        }
Example #2
0
        private void backgroundWorkerIFC_DoWork(object sender, DoWorkEventArgs e)
        {
            //BackgroundWorker workerSender = sender as BackgroundWorker;

            //// get a node list from agrument passed to RunWorkerAsync
            //XmlNodeList node = e.Argument as XmlNodeList;

            //for (int i = 0; i < node.Count; i++)
            //{
            //    textBox2.Text = node[i].InnerText;
            //    workerSender.ReportProgress(node.Count / i);
            //}

            ConnectionInterface conInt = new ConnectionInterface();

            conInt.mapProcess(this.jSettings);
        }
Example #3
0
        static void Main(string[] args)
        {
            string jPath = args[0];
            string jText = System.IO.File.ReadAllText(jPath);

            JsonCollection jColl = JsonConvert.DeserializeObject <JsonCollection>(jText);

            double?breakDist    = 0.0;
            double?refLatitude  = 0.0;
            double?refLongitude = 0.0;
            double?refElevation = 0.0;

            var conn = new ConnectionInterface();

            foreach (JsonSettings jSettings in jColl.JsonSettings)
            {
                conn.mapProcess(jSettings, breakDist, refLatitude, refLongitude, refElevation);
            }
        }