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
// This function updates application controls once a navigation | |
// has completed. | |
navigated: function () { | |
// Do application specific on-navigated work here | |
var backButton = this.pageElement.querySelector("header[role=banner] .win-backbutton"); | |
var forceShowBack = false; | |
if (backButton) { | |
// Si estoy en una sección, entonces el back es a la home | |
if (nav.location == "pages/section/groupDetailPage.html" || nav.location == "pages/video/landingVideoSection.html") { |
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
[TestFixture] | |
class TileNotificationBuilderTest | |
{ | |
[Test] | |
public void EmptyReturnEmpty() | |
{ | |
TileNotificationBuilder builder = new TileNotificationBuilder(); | |
Assert.That(builder.Build(), Is.StringContaining("<text id=\"1\"></text>")); | |
} |
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
(function () { | |
"use strict"; | |
function request() { | |
var WNSRegistrationUrl = ApplicationConfiguration.getServiceRootSite() + "/MyService/Register"; | |
var notificationChannel = Windows.Networking.PushNotifications.PushNotificationChannelManager.createPushNotificationChannelForApplicationAsync(); | |
notificationChannel | |
.then(function (channel) { |
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
[TestFixture] | |
class MailBuilderTest | |
{ | |
[Test] | |
public void TestContactInformation() | |
{ | |
// arrange | |
ContactInformation contactInformation = new ContactInformation() | |
{ | |
FirstName = "Homero", |
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
class ContactInformationAuctionMessageBuilder : IMailMessageBuilder<ContactInformationAuction> | |
{ | |
private MailMessage mailMessage; | |
private StringBuilder body = new StringBuilder(); | |
public ContactInformationAuctionMessageBuilder() | |
{ | |
mailMessage = new MailMessage(); | |
} |
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
(function () { | |
"use strict"; | |
var registry = []; | |
function wire(key, constructor) { | |
var object = constructor(this); | |
registry.push({ key: key, object: object }); | |
} |
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
(function () { | |
"use strict"; | |
var bookmarks = []; | |
function init() { | |
} | |
var instanceMembers = { | |
addNews: function (news) { |
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
(function () { | |
"use strict"; | |
var localstorage; | |
var bookmarks = []; | |
function saveBookmarksToStorage() { | |
localstorage["bookmarks"] = JSON.stringify(bookmarks); | |
} |
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
(function () { | |
"use strict"; | |
var localstorage; | |
var bookmarks = []; | |
function saveBookmarksToStorage() { | |
localstorage["bookmarks"] = JSON.stringify(bookmarks); | |
} |
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
(function () { | |
"use strict"; | |
var nav = WinJS.Navigation; | |
function goOfflineMode() { | |
ShowErrorPopup(); | |
nav.navigate("/pages/bookmark/landingBookmark.html", null); | |
} | |
function ShowErrorPopup() { |