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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace Launcher | |
{ | |
class ConsoleHelper | |
{ |
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
internal static class ChromeLauncher | |
{ | |
private const string ChromeAppKey = @"\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe"; | |
private static string ChromeAppFileName | |
{ | |
get | |
{ | |
return (string) (Registry.GetValue("HKEY_LOCAL_MACHINE" + ChromeAppKey, "", null) ?? | |
Registry.GetValue("HKEY_CURRENT_USER" + ChromeAppKey, "", null)); |
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
internal static class ChromeLauncher | |
{ | |
private const string ChromeAppKey = @"\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe"; | |
private static string ChromeAppFileName | |
{ | |
get | |
{ | |
return (string) (Registry.GetValue("HKEY_LOCAL_MACHINE" + ChromeAppKey, "", null) ?? | |
Registry.GetValue("HKEY_CURRENT_USER" + ChromeAppKey, "", null)); |
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
public static string ProcessFilename | |
{ | |
get { return Process.GetCurrentProcess().MainModule.FileName; } | |
} | |
private static bool HasAdministrativeRight() | |
{ | |
WindowsIdentity windowsIdentity = WindowsIdentity.GetCurrent(); | |
return windowsIdentity != null | |
&& new WindowsPrincipal(windowsIdentity).IsInRole(WindowsBuiltInRole.Administrator); |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Web; | |
using EPiServer; | |
using EPiServer.Cms.Shell.UI.ObjectEditing.EditorDescriptors.SelectionFactories; | |
using EPiServer.Core; | |
using EPiServer.DataAbstraction; | |
using EPiServer.DataAnnotations; |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using EPiServer.Core; | |
using EPiServer.DataAbstraction; | |
using EPiServer.DataAnnotations; | |
using EPiServer.SpecializedProperties; | |
using EPiServer.Validation; | |
namespace EPiServerSite5.Models.Pages |
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
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Mvc; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.Framework.DataAnnotations; | |
using EPiServer.Web; | |
using EPiServer.Web.Mvc; | |
using EPiServer.Web.Routing; | |
using EPiServerSite9.Business; |
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
Intended for EPiServer Alloy MVC demo templates or lab instructions for Episerver Fundamentals Developer training. |
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
This lab shows how to add a system integration job in EPiServer that loads a list of data and create, update and delete pages programmatically. |
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
@using EPiServer.Core | |
@using EPiServer.Editor | |
@using EPiServer.Web.Mvc.Html | |
@model EPiServer.Core.ContentArea | |
@* Note! Put this file in /Shared/DisplayTemplates/ to make it available as a template *@ | |
@{ | |
var idAccordion = Guid.NewGuid().ToString("N"); | |
var first = true; |