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
CREATE SCHEMA Customer | |
GO | |
CREATE SCHEMA detail | |
go | |
CREATE TABLE Customer.Customer | |
( | |
CustomerId BIGINT IDENTITY(1,1) PRIMARY KEY, | |
CurrentCustomerIdentifierId BIGINT 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
<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> |
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
<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> |
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
ToggleButton button = (ToggleButton)sender; | |
Popup popup = (Popup)button.FindName("popSelectIteration"); |
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 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; |
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
<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> |
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
/ <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. |
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 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(); | |
} |
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
/// <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; |
OlderNewer