Skip to content

Commit

Permalink
Add some verbosity messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lazywinadmin committed Apr 2, 2017
1 parent a5630a9 commit 9431d21
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Globals.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#requires -version 3

Write-Verbose -Message "[$ScriptName] Globals.ps1 processing..."
#--------------------------------------------
# Declare Global Variables and Functions here
#--------------------------------------------
Expand Down
Binary file added LazyTS.psproj.psbuild
Binary file not shown.
6 changes: 1 addition & 5 deletions LazyTS.psprojs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@
<OpenFolders>
<Folder>functions</Folder>
</OpenFolders>
<OpenFiles>
<File>Globals.ps1</File>
<File>config.psd1</File>
<File>MainForm.psf</File>
</OpenFiles>
<OpenFiles />
</ProjectState>
10 changes: 6 additions & 4 deletions MainForm.psf
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ RK5CYII=</Binary>
<Property name="Name">contextmenustrip1</Property>
<Property name="RenderMode">System</Property>
<Property name="ShowImageMargin">False</Property>
<Property name="Size">233, 142</Property>
<Property name="Size">233, 164</Property>
<Property name="Text">TSSession</Property>
</Object>
<Object type="System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="disconnectTSSessionToolStripMenuItem">
Expand Down Expand Up @@ -1105,7 +1105,7 @@ RK5CYII=</Binary>
<Property name="Name">contextmenustripTSProcess</Property>
<Property name="RenderMode">System</Property>
<Property name="ShowImageMargin">False</Property>
<Property name="Size">233, 120</Property>
<Property name="Size">233, 142</Property>
</Object>
<Object type="System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="sendTSMessageToolStripMenuItem">
<Property name="Name">sendTSMessageToolStripMenuItem</Property>
Expand Down Expand Up @@ -1205,15 +1205,17 @@ RK5CYII=</Binary>
<Property name="Text">Contribute</Property>
<Event name="Click">toolstripstatuslabel3_Click</Event>
</Object>
<Code><![CDATA[$OnLoadFormEvent={
<Code><![CDATA[Write-Verbose -Message "[$ScriptName] MainForm processing..."

$OnLoadFormEvent={
#Stuff to do when the Form is loading
Write-Verbose -Message "[$ScriptName] Loading Form..."
Set-DataGridView -DataGridView $datagridviewOutput -AlternativeRowColor -ForeColor 'black' -BackColor 'AliceBlue'
}
$buttonGetTsSession_Click={
TRY{
# Set the ContextMenuStrip for TsSession
$datagridviewOutput.ContextMenuStrip = $contextmenustripTSSession

# Show the progression in the Richtextbox
Append-RichtextboxStatus -ComputerName $textboxComputerName.Text -Source "Get-TSSession" -Message "Loading"

Expand Down
6 changes: 5 additions & 1 deletion Startup.pss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<File version="2.1">
<Code><![CDATA[#Define a Param block to use custom parameters in the project
<Code><![CDATA[[CmdletBinding()]
PARAM()
#Define a Param block to use custom parameters in the project
#Param ($CustomParameter)
$scriptname = (Get-Variable -Name MyInvocation -Scope 0 -ValueOnly).Mycommand
Write-Verbose -Message "[$ScriptName] Startup..."

function Main {
Param ([String]$Commandline)
Expand Down

0 comments on commit 9431d21

Please sign in to comment.