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
//$(".msls-navmenu-button").hide(); | |
$(".msls-screen-buttons").empty(); | |
var hijackUI = function (contentItem) { | |
var user = contentItem.value; | |
//Create a link | |
var userViewer = $('<a id="userviewer" href="#" target="_self" >' + user.Name + '</a>'); | |
userViewer.appendTo($(".msls-screen-buttons")); | |
//Bind the click event |
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
var userViewer = $('<a id="userviewer" href="#" target="_self" >' + user.Name + '</a>'); | |
userViewer.appendTo($(".msls-screen-buttons")); | |
//interaction 1 | |
userViewer.on('click', function () { | |
myapp.showEditMyProfile(user); | |
}); | |
contentItem.dataBind("value.Name", function () { | |
//interaction 2 | |
$("#userviewer").text(contentItem.value.Name); |
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
/// <reference path="jquery-1.7.1.js" /> | |
/// <reference path="jquery.mobile-1.1.1.js" /> | |
/// <reference path="msls-1.0.0.js" /> | |
(function ($) { | |
$.widget("switchtory.lightswitchSlider", { | |
options: { | |
timerInterval: 4000 | |
}, |
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
(function ($) { | |
$.widget("switchtory.lightswitchsearchbox", { | |
_create: function () { | |
}, | |
_init: function () { |
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
<EntityProperty | |
Name="Color" | |
PropertyType=":String"> | |
<EntityProperty.Attributes> | |
<Required /> | |
<MaxLength | |
Value="255" /> | |
<SupportedValue | |
DisplayName="Aero" | |
Value="#7CB9E8" /> |
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
namespace LightSwitchApplication | |
{ | |
public partial class SchedulingViewDiagram | |
{ | |
partial void SchedulingViewDiagram_Created() | |
{ | |
this.FindControl("ReallyCoolImageButton").ControlAvailable += SchedulingViewDiagram_ControlAvailable; | |
} | |
void SchedulingViewDiagram_ControlAvailable(object sender, ControlAvailableEventArgs e) |
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
<script type="text/javascript"> | |
$(document).ready(function () { | |
var supported = $.mobile.gradeA(); | |
if (!supported) { | |
$(".ui-icon-loading").hide(); | |
$(".ui-bottom-load").append('<div class="msls-header">This browser is not supported. Please upgrade to a more recent, <a href="http://jquerymobile.com/gbs/">supported</a> version.</div>'); | |
} else { | |
msls._run() | |
.then(null, function failure(error) { | |
alert(error); |
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
/// <reference path="JQuery/jquery-1.6.1.js" /> | |
/// <reference path="JQueryMobile/jquery.mobile-1.0.js" /> | |
/// <reference path="../Libraries/MsLs/msls-1.0.0.js" /> | |
/// <reference path="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0" /> | |
/* | |
Usage example | |
myapp.AddEditCustomer.HowDoIGetThere_execute = function (screen) { | |
$("#addressMap").lightswitchBingMapsControl("getLocationOfUser", $("#directions")); | |
}; |
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
private static IEnumerable<string> _allScreens; | |
static BuildingBlockProvider() | |
{ | |
List<string> screens = new List<string>(); | |
foreach (var screenModel in ServiceProxy.Instance.ModelService.Items.OfType<IScreenDefinition>()) | |
{ | |
if (screenModel.Members.Any(m => m.Attributes.OfType<IIsParameterAttribute>().Any(att => !(att.Parent as IScreenPropertyDefinition).PropertyType.Name.EndsWith("?")))) { | |
continue; | |
} | |
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
SET IDENTITY_INSERT [dbo].[Customers] ON; | |
MERGE INTO [dbo].[Customers] AS Target | |
USING (VALUES | |
(1, 'Beth Massi', 'F', 'Burg 1', '8000', 'Brugge', 'Belgium', 1.00), | |
(2, 'Chris Rummel', 'M', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.90 ), | |
(3, 'Matt Evans', 'M', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.80 ), | |
(4, 'Andy Kung', 'M', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.70 ), | |
(5, 'Brian Moore', 'M', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.60 ), | |
(6, 'Matt Sampson', 'F', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.50 ), |
OlderNewer