Beispiel #1
0
        private void UpdateMapViewModule(Dictionary <Type, ModuleChild> childModules, IObjectSpace objectSpace)
        {
            var modules       = objectSpace.CreateModules(childModules.Values).ToList();
            var mapViewModule = modules.First(module => module.Name == "MapView");

            mapViewModule.Installation = GetType().Assembly.GetManifestResourceStream(GetType(), "MapViewInstalation.xml").ReadToEndAsString();
            var document = objectSpace.CreateObject <Document>();

            document.Name   = "How to display an address from and object property in Google Maps";
            document.Text   = GetType().Assembly.GetManifestResourceStream(GetType(), "HowToDisplayAddressInGoogleMaps.xml").ReadToEndAsString();
            document.Author = "Apostolis Bekiaris";
            mapViewModule.Documents.Add(document);
        }
Beispiel #2
0
 private void UpdateMapViewModule(Dictionary<Type, ModuleChild> childModules,IObjectSpace objectSpace) {
     var modules = objectSpace.CreateModules(childModules.Values).ToList();
     var mapViewModule = modules.First(module => module.Name == "MapView");
     mapViewModule.Installation = GetType().Assembly.GetManifestResourceStream(GetType(), "MapViewInstalation.xml").ReadToEndAsString();
     var document = objectSpace.CreateObject<Document>();
     document.Name = "How to display an address from and object property in Google Maps";
     document.Text = GetType().Assembly.GetManifestResourceStream(GetType(), "HowToDisplayAddressInGoogleMaps.xml").ReadToEndAsString();
     document.Author = "Apostolis Bekiaris";
     mapViewModule.Documents.Add(document);
 }