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 namespace System.Collections.Generic | |
# Encapsulate an arbitrary command | |
class PaneCommand { | |
[string]$Command | |
PaneCommand() { | |
$this.Command = ""; | |
} |
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 class CampContextFactory : IDesignTimeDbContextFactory | |
{ | |
public CampContext CreateDbContext(string[] args) | |
{ | |
var configuration = new ConfigurationBuilder() | |
.SetBasePath(Directory.GetCurrentDirectory()) | |
.AddJsonFile("appsettings.json") | |
.Build(); | |
var dbContextBuilder = new DbContextOptionsBuilder(); |
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
# | |
# ROBOCOPY Script | |
# | |
# This script calls robocopy over a few folders, and then emails you when they're done | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$basesrc, #"G:\", | |
[Parameter(Mandatory=$true)] | |
[string]$basedst, # |
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
// Updated Ultimate WPF Event Method Binding implementation by Mike Marynowski | |
// View the article here: http://www.singulink.com/CodeIndex/post/updated-ultimate-wpf-event-method-binding | |
// Licensed under the Code Project Open License: http://www.codeproject.com/info/cpol10.aspx | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Linq; |