Skip to content

Instantly share code, notes, and snippets.

View smwhit's full-sized avatar

Simon Whittemore smwhit

View GitHub Profile
@smwhit
smwhit / gist:aea23e1e4d85c03792fd
Created May 26, 2014 19:57
WPF - passing multiple parameters to a command
public class SendCommand : ICommand
{
public void Execute(object parameter)
{
var labels = ((object[]) parameter).OfType<Label>();
}
public bool CanExecute(object parameter)
{
return true;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Client
{
public class ProductInfo
{
public string ProductId { get; set; }