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 Microsoft.LightSwitch.Client; | |
| using Microsoft.LightSwitch.Details.Client; | |
| using Microsoft.LightSwitch.Framework.Client; | |
| using Microsoft.LightSwitch.Presentation; | |
| using Microsoft.LightSwitch.Presentation.Extensions; | |
| using Microsoft.LightSwitch.Presentation.Internal; | |
| using Microsoft.LightSwitch.Sdk.Proxy; | |
| using Microsoft.VisualStudio.ExtensibilityHosting; | |
| using System; | |
| using System.Collections.Generic; |
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; | |
| namespace CSharpVitamins | |
| { | |
| /// <summary> | |
| /// Represents a globally unique identifier (GUID) with a | |
| /// shorter string value. Sguid | |
| /// </summary> | |
| public struct ShortGuid | |
| { |
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
| /* | |
| * script to export data of the named sheet as an individual csv files | |
| * sheet downloaded to Google Drive and then downloaded as a CSV file | |
| * file named according to the name of the sheet | |
| * original author: Michael Derazon (https://gist.github.com/mderazon/9655893) | |
| */ | |
| function onOpen() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var csvMenuEntries = [{name: "Download Primary Time File", functionName: "saveAsCSV"}]; |
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
| <#@ template debug="false" hostspecific="true" language="C#" #> | |
| <#@ output extension=".cs" encoding="UTF8" #> | |
| <#@ assembly name="System.Core" #> | |
| <#@ assembly name="System.Xml" #> | |
| <#@ assembly name="System.Xml.Linq" #> | |
| <#@ import namespace="System.IO" #> | |
| <#@ import namespace="System.Xml" #> | |
| <#@ import namespace="System.Xml.Linq" #> | |
| <# | |
| // |
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"; } |
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
| 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
| 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
| 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
| 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; |
NewerOlder