This file contains hidden or 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
| 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'); |
This file contains hidden or 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
| body | |
| { | |
| background: url(TMMSCM.jpg) center bottom fixed; | |
| background-repeat: no-repeat; | |
| height: 100%; | |
| width: 100%; | |
| background-size: cover; | |
| } |
This file contains hidden or 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; | |
| namespace LightSwitchApplication | |
| { | |
| /// <summary> | |
| /// Generic Equality comparer that can be used of linq | |
| /// </summary> | |
| /// <typeparam name="T"></typeparam> | |
| public class EqualityComparer<T> : IEqualityComparer<T> |
This file contains hidden or 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
| partial void Tickets_Created() | |
| { | |
| this.FindControl("ScreenLayout").ControlAvailable += Tickets_ControlAvailable; | |
| } | |
| void Tickets_ControlAvailable(object sender, Microsoft.LightSwitch.Presentation.ControlAvailableEventArgs e) | |
| { | |
| var screenLayout = e.Control as System.Windows.Controls.Grid; | |
| if (screenLayout == null) return; |
This file contains hidden or 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
| partial void Plants_Changed(NotifyCollectionChangedEventArgs e) | |
| { | |
| if (e.Action == NotifyCollectionChangedAction.Add) | |
| { | |
| var addedItem = e.NewItems[0] as HaulerPlant; | |
| if (addedItem == null) return; | |
| addedItem.IsActive = true; | |
| } |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Management; | |
| using System.Linq; | |
| using System.Text.RegularExpressions; | |
| namespace YourApp | |
| { |
This file contains hidden or 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.Linq; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using Microsoft.LightSwitch.Framework.Client; | |
| using LightSwitch = Microsoft.LightSwitch.Model.Storage; | |
| using Microsoft.LightSwitch.Model; | |
| using System.Runtime.InteropServices.Automation; | |
| namespace ODataFinderLibrary |
This file contains hidden or 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
| [Export(typeof(IShellCommandGroupProvider))] | |
| public class MyGroupProvider : IShellCommandGroupProvider | |
| { | |
| public IEnumerable<IShellCommandGroup> GetShellCommandGroups(Microsoft.LightSwitch.Client.IScreenObject currentScreen) | |
| { | |
| yield return new MyGroup(); | |
| } | |
| } |
This file contains hidden or 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 class MyCommand : IShellCommand | |
| { | |
| public string Description | |
| { | |
| get { return "This is My Command"; } | |
| } | |
| public string DisplayName | |
| { | |
| get { return "My Command"; } |
OlderNewer