Skip to content

Instantly share code, notes, and snippets.

@incoplex
incoplex / Generic Equality comparer
Created September 14, 2019 03:48 — forked from iamrommel/Generic Equality comparer
Generic Equality comparer that can be used of linq
using System;
using System.Collections.Generic;
namespace LightSwitchApplication
{
/// <summary>
/// Generic Equality comparer that can be used of linq
/// </summary>
/// <typeparam name="T"></typeparam>
public class EqualityComparer<T> : IEqualityComparer<T>
body
{
background: url(TMMSCM.jpg) center bottom fixed;
background-repeat: no-repeat;
height: 100%;
width: 100%;
background-size: cover;
}
@incoplex
incoplex / PremiumComponentFactory
Created September 14, 2019 03:46 — forked from iamrommel/PremiumComponentFactory
Using the Microsoft.LightSwitch.ExportProvider.dll to utilize the MEF in LightSwitch
using System;
using LightSwitchApplication.UserCode.Constants;
using Microsoft.VisualStudio.ExtensibilityHosting;
using System.Linq;
namespace LightSwitchApplication.UserCode.Premium
{
/// <summary>
/// To centralize the method selection use this factory
/// So in the future it will not be cluttered
myapp.menuHome.buttonResources_postRender = function (element, contentItem) {
$(element).spOverlay(contentItem, 'Content/Images/TouchIcons/ResourcesLarge.png', { height:170, width:170});
};
myapp.menuHome.buttonDesigns_postRender = function (element, contentItem) {
$(element).spOverlay(contentItem, 'Content/Images/TouchIcons/DesignsLarge.png');
};
myapp.menuHome.buttonProjects_postRender = function (element, contentItem) {
$(element).spOverlay(contentItem, 'Content/Images/TouchIcons/ProjectsLarge.png');