Esempio n. 1
0
        private void TestMe10()
        {
            var kundeA = ModelManager.CustomerService.GetKunde("4901100000", false);
            var kundeB = ModelManager.CustomerService.GetKunde("4988900000", false);
            var kundeC = ModelManager.CustomerService.GetKunde("4918800000", false);
            var kundeD = ModelManager.CustomerService.GetKunde("4906900000", false);
            var coords = new Dictionary <string, GeoCoordinate>();

            coords.Add(kundeA.Matchcode.Substring(0, 1), kundeA.Adresskoordinaten);
            coords.Add(kundeB.Matchcode.Substring(0, 1), kundeB.Adresskoordinaten);
            coords.Add(kundeC.Matchcode.Substring(0, 1), kundeC.Adresskoordinaten);
            coords.Add(kundeD.Matchcode.Substring(0, 1), kundeD.Adresskoordinaten);
            var picture = GeoData.GetPoisImage(coords);
            var tv      = new TestView(picture);

            tv.Show();
        }
Esempio n. 2
0
        void XcmdShowPoisImage_Click(object sender, EventArgs e)
        {
            var coords = new Dictionary <string, GeoCoordinate>();

            coords.Add("X", this.ReferenzKunde.Adresskoordinaten);
            var counter = 65;

            foreach (DataGridViewRow item in this.DgvMachines.SelectedRows)
            {
                var kunde = (item.DataBoundItem as Wartungstermin).Kunde;
                if (kunde != null)
                {
                    coords.Add(char.ConvertFromUtf32(counter), kunde.Adresskoordinaten);
                    counter++;
                }
            }
            if (coords.Count > 0)
            {
                var picture = GeoData.GetPoisImage(coords, 1200, 800);
                var tv      = new TestView(picture);
                tv.Show();
            }
        }