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 Show-MessageBox { | |
param( | |
$Title = "The cool Dialog", | |
[Parameter(Mandatory=$true)] | |
$Message, | |
[System.Windows.Forms.MessageBoxIcon]$Icon = "Information", | |
[System.Windows.Forms.MessageBoxButtons]$Buttons = "Ok" | |
) | |
[System.Windows.Forms.MessageBox]::Show($Message, $Title, $Buttons, $Icon) | Out-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
function Add-DataGridDoubleClickEventOnRow { | |
param( | |
[System.Windows.Controls.DataGrid]$DatagridControl, | |
[System.Windows.Input.MouseButtonEventHandler]$ScriptBlock | |
) | |
$rowStyle = New-Object System.Windows.Style -ArgumentList @([System.Windows.Controls.DataGridRow]) | |
$eventSetter = New-Object System.Windows.EventSetter -ArgumentList @([System.Windows.Controls.DataGridRow]::MouseDoubleClickEvent, $scriptBlock) | |
$rowStyle.Setters.Add($eventSetter) | |
$datagridControl.RowStyle = $rowStyle | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- | |
Defining custom Targets to execute before project compilation starts. | |
--> | |
<PropertyGroup> | |
<CompileDependsOn> | |
CommonBuildDefineModifiedAssemblyVersion; | |
$(CompileDependsOn); | |
</CompileDependsOn> |