Skip to content

Instantly share code, notes, and snippets.

<ToggleButton Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,0,2" Checked="btnFindIterationChecked">
<Grid>
<Popup PlacementTarget="{Binding ElementName=chkIteration}" Name="popSelectIteration" Closed="popSelectIteration_Closed"
AllowsTransparency="True" StaysOpen="False" PopupAnimation="Fade">
<Border BorderBrush="#FF000000" Background="LightBlue" BorderThickness="1,1,1,1" CornerRadius="8,8,8,8" Padding="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
ToggleButton button = (ToggleButton)sender;
Popup popup = (Popup)button.FindName("popSelectIteration");
public static void AnimatePaneBox(this IMain form, ContentControl destination, UIElementCollection source, Action<FrameworkElement, IEnumerable<WorkItem>> action, FrameworkElement parent, IEnumerable<WorkItem> itemsToDelselect)
{
// Create a NameScope for this page so that
// Storyboards can be used.
NameScope.SetNameScope((DependencyObject)form, new NameScope());
Canvas containerCanvas = new Canvas();
int curInteration = 0;
<ToggleButton Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,0,2" Checked="btnFindIterationChecked">
<Grid>
<Popup PlacementTarget="{Binding ElementName=chkIteration}" Name="popSelectIteration" Closed="popSelectIteration_Closed"
AllowsTransparency="True" StaysOpen="False" PopupAnimation="Fade">
<Border BorderBrush="#FF000000" Background="LightBlue" BorderThickness="1,1,1,1" CornerRadius="8,8,8,8" Padding="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<ToggleButton Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,0,2" Checked="btnFindIterationChecked">
<Grid>
<Popup PlacementTarget="{Binding ElementName=chkIteration}" Name="popSelectIteration" Closed="popSelectIteration_Closed"
AllowsTransparency="True" StaysOpen="False" PopupAnimation="Fade">
<Border BorderBrush="#FF000000" Background="LightBlue" BorderThickness="1,1,1,1" CornerRadius="8,8,8,8" Padding="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<ToggleButton Grid.Column="1" HorizontalAlignment="Right" Margin="0,2,0,2" Checked="btnFindIterationChecked">
<Grid>
<Popup PlacementTarget="{Binding ElementName=chkIteration}" Name="popSelectIteration" Closed="popSelectIteration_Closed"
AllowsTransparency="True" StaysOpen="False" PopupAnimation="Fade">
<Border BorderBrush="#FF000000" Background="LightBlue" BorderThickness="1,1,1,1" CornerRadius="8,8,8,8" Padding="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
/ <copyright file="WorkWithRandomsTest.CreateSomeRandoms.g.cs" company="ARUP Laboratories">Copyright © ARUP Laboratories 2010</copyright>
// <auto-generated>
// This file contains automatically generated unit tests.
// Do NOT modify this file manually.
//
// When Pex is invoked again,
// it might remove or update any previously generated unit tests.
//
// If the contents of this file becomes outdated, e.g. if it does not
// compile anymore, you may delete this file and invoke Pex again.
public class LambdaComparer<T> : IEqualityComparer<T>
{
Func<T, T, bool> _comparer;
Func<T, int> _hash;
public LambdaComparer(Func<T, T, bool> comparer)
{
_comparer = comparer;
_hash = t => t.GetHashCode();
}
/// <summary>
/// Useful for comparing two objects.
/// Example usage:
/// var dropOffComparer = new LambdaComparer<ConsolidationDropOff>((x, y) => x.Id == y.Id);
/// dropOffs.Contains(dropOff, dropOffComparer);
/// </summary>
/// <typeparam name="T"></typeparam>
public class LambdaComparer<T> : IEqualityComparer<T>
{
Func<T, T, bool> _comparer;
@Vaccano
Vaccano / EnumerableRewriter.ArgsMatch
Created March 24, 2010 16:20
Observed Call Mismatches
EnumerableRewriter.ArgsMatch(MethodInfo, ReadOnlyCollection`1<Expression>, Type[]) initiated call,
intended callee was RuntimeMethodInfo.GetParameters(),
actually observed callee was Array.Copy(Array, Array, Int32),
and arguments of intended callee don't match actual callee;
did some intermediate methods not get instrumented?
See the help for further information.
--- Stack Trace
at System.Void Microsoft.ExtendedReflection.Interpretation.States.Impl.Frame..ctor(Microsoft.ExtendedReflection.Interpretation.States.IThread thread, Microsoft.ExtendedReflection.Interpretation.States.IFrame prev, System.Int32 frameIndex, Microsoft.ExtendedReflection.Metadata.Method method, System.Boolean& needArguments)
at Microsoft.ExtendedReflection.Interpretation.States.IFrame Microsoft.Pex.Engine.States.EvolvingThread.CreateFrame(Microsoft.ExtendedReflection.Metadata.Method method, Microsoft.ExtendedReflection.Interpretation.States.IFrame previousFrame, System.Int32 frameIndex, System.Boolean& needArguments)