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
protected void Inventorize() | |
{ | |
// Generate a container: | |
DataTable dtResult = new DataTable(); | |
dtResult.Columns.Add("DisplayName"); | |
dtResult.Columns.Add("DisplayVersion"); | |
dtResult.Columns.Add("Publisher"); | |
#region -- RxOps -- | |
string keyUninstall = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"; | |
RegistryKey rk = Registry.LocalMachine.OpenSubKey(keyUninstall, false); |
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
/* Original */ | |
<appSettings> | |
<add key="MyUsername" value="hello-user"/> | |
<add key="MyPassword" value="yadayadayada"/> | |
</appSettings> | |
/* Overload */ | |
<appSettings> | |
<add key="MyPassword" value="xxx......" xdt:Transform="Replace" xdt:Locator="Match(key)" /> | |
</appSettings> |
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
[TestMethod] | |
public void HelloWorldTest() | |
{ | |
var writer = new StringWriter(); | |
Console.SetOut(writer); | |
var target = new HelloWorld(); | |
WorkflowInvoker.Invoke(target); | |
// [??] Waarom werkt dit verdomme nog niet?? |
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
<Listeners> | |
<%-- This works! | |
<RowDblClick Handler="alert(#{myGridPanel}.getSelectionModel().getSelected().data.CustomerId);" /> | |
--%> | |
<RowDblClick Handler="MyApplication.addTab({ title: 'Details', url: '/Customer/Customer/Detail/' + #{myGridPanel}.getSelectionModel().getSelected().data.CustomerId});" /> | |
</Listeners> |
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 IsIFrame = (window.location != window.parent.location) ? true : false; |
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; | |
using System.Text; | |
using System.Windows.Forms; | |
using Securancy.Common; | |
namespace WindowsApplication1 | |
{ |
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 void MultiColumnRepeater<T>(this HtmlHelper helper, IEnumerable<T> model, int columnCount, Action rowHeader, Action<T> itemTemplate, Action rowFooter) | |
{ | |
int currentColumn = 0; | |
foreach (T item in model) | |
{ | |
if (currentColumn == 0) | |
rowHeader(); | |
itemTemplate(item); |
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 () { | |
$("#dialog-modal").dialog({ | |
closeOnEscape: true, | |
//closeText: 'Sluiten', | |
draggable: false, | |
resizable: false, | |
width: 550, | |
height: 500, | |
modal: true, | |
overlay: { |
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
[MetadataType(typeof(HappyFunBallMetadata))] | |
public partial class HappyFunBall | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public Color Colour { get; set; } | |
public int Weight { get; set; } | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content=""> | |
<meta name="author" content="Juliën Hanssens"> | |
<title>Empty HTML5 Page</title> | |
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> | |
</head> |
OlderNewer