Skip to content

Instantly share code, notes, and snippets.

View moaschterle's full-sized avatar

Rudi Thoeni moaschterle

View GitHub Profile
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))
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Intranet.minicms
{
public class MenuCMS : IMenu
{
SmgIntranetContainer mycontainer;
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)
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;
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
// 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,
//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;
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";
(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,
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
{