This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void GetImagefromUUID(string theuuid) | |
{ | |
string myuuid = "cf6a0e34-0301-4f61-999b-f16295c8f1dc"; | |
var doc = XDocument.Load("XMLInput/media.smg.images.data.pois.ort.Andrian-0.xml"); | |
var parser = new NodeParser(); | |
var elements = parser.GetNodes(doc); | |
foreach (var item in elements.Where(n => n.UUID == myuuid)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace Intranet.minicms | |
{ | |
public class MenuCMS : IMenu | |
{ | |
SmgIntranetContainer mycontainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace Intranet | |
{ | |
public static class MenuExtensions | |
{ | |
public static IMenu NextParent(this IMenu menu) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Configuration.Provider; | |
using System.Collections; | |
using System.Collections.Specialized; | |
using System.IO; | |
using System.Security.Permissions; | |
using System.Web; | |
using System.Linq; | |
using System.Web.Caching; | |
using System.Configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.UI; | |
using System.Web.UI.WebControls; | |
namespace Intranet | |
{ | |
public class CustomBreadcrumpCMS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET api/Poi/GetGolf | |
public IEnumerable<myGolf> GetGolf() | |
{ | |
var mypoi = (from xy in db.PoiSet where xy.Primarytype == "golf" | |
select new myGolf | |
{ | |
Id = xy.Id, | |
Poiname = xy.Nodename, | |
Region = xy.Region.RID, | |
Ort = xy.Ort.RID, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Dieser Manager sieht nach ob in der Session bereits was gespeichert ist, falls nicht wird diese neu erstellt | |
public static class BuchungsChartManager | |
{ | |
public static BuchungsChart GetBuchungsChart() | |
{ | |
if (HttpContext.Current.Session["ASPNETBuchung"] == null) | |
{ | |
var gc = new BuchungsChart(); | |
HttpContext.Current.Session["ASPNETBuchung"] = gc; | |
return gc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Console.ReadLine(); | |
//Create a Web-Request to an URL | |
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("http://demowebservice.suedtirol.info/service/MOBILEListener"); | |
//Defined poperties for the Web-Request | |
httpWebRequest.Method = "POST"; | |
httpWebRequest.MediaType = "HTTP/1.1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(from xy in Pois | |
where xy.Primarytype == "museen" | |
select new | |
{ | |
SMGId = xy.Id, | |
SMGPoiname = xy.Nodename, | |
Poityp = xy.Primarytype, | |
Region = (from xz in Locations where xz.MagnoliaID == xy.RegionId && xz.Type == "Region" select xz).FirstOrDefault().Name, | |
Ort = (from xz in Locations where xz.MagnoliaID == xy.OrtId && xz.Type == "Ort" select xz).FirstOrDefault().Name, | |
GPSEast = xy.PoiGps.Where(x => x.Type == "position" || x.Type == "ownerposition").FirstOrDefault().Gps.East, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
namespace TestMigration | |
{ |
OlderNewer