Skip to content

Commit ee1a4de

Browse files
committed
Initial commit from legacy repo on codeplex
1 parent 0b4c5a5 commit ee1a4de

File tree

316 files changed

+29284
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+29284
-0
lines changed

BuildProcessTemplates/DefaultTemplate.11.1.xaml

+543
Large diffs are not rendered by default.

BuildProcessTemplates/LabDefaultTemplate.11.xaml

+208
Large diffs are not rendered by default.
+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<Activity mc:Ignorable="sad" x:Class="TfsBuild.Process" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mtbc="clr-namespace:Microsoft.TeamFoundation.Build.Client;assembly=Microsoft.TeamFoundation.Build.Client" xmlns:mtbw="clr-namespace:Microsoft.TeamFoundation.Build.Workflow;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtbwa="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtbwt="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Tracking;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtvc="clr-namespace:Microsoft.TeamFoundation.VersionControl.Client;assembly=Microsoft.TeamFoundation.VersionControl.Client" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:sad="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sad1="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:this="clr-namespace:TfsBuild;" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2+
<x:Members>
3+
<x:Property Name="ConfigurationFolderPath" Type="InArgument(x:String)" />
4+
<x:Property Name="AgentSettings" Type="InArgument(mtbwa:AgentSettings)" />
5+
<x:Property Name="MSBuildArguments" Type="InArgument(x:String)" />
6+
<x:Property Name="MSBuildPlatform" Type="InArgument(mtbwa:ToolPlatform)" />
7+
<x:Property Name="DoNotDownloadBuildType" Type="InArgument(x:Boolean)" />
8+
<x:Property Name="LogFilePerProject" Type="InArgument(x:Boolean)" />
9+
<x:Property Name="SourcesSubdirectory" Type="InArgument(x:String)" />
10+
<x:Property Name="BinariesSubdirectory" Type="InArgument(x:String)" />
11+
<x:Property Name="TestResultsSubdirectory" Type="InArgument(x:String)" />
12+
<x:Property Name="RecursionType" Type="InArgument(mtvc:RecursionType)" />
13+
<x:Property Name="Verbosity" Type="InArgument(mtbw:BuildVerbosity)" />
14+
<x:Property Name="Metadata" Type="mtbw:ProcessParameterMetadataCollection" />
15+
<x:Property Name="SupportedReasons" Type="mtbc:BuildReason" />
16+
</x:Members>
17+
<this:Process.ConfigurationFolderPath>
18+
<InArgument x:TypeArguments="x:String" />
19+
</this:Process.ConfigurationFolderPath>
20+
<this:Process.AgentSettings>[New Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings() With {.MaxWaitTime = New System.TimeSpan(4, 0, 0), .MaxExecutionTime = New System.TimeSpan(0, 0, 0), .TagComparison = Microsoft.TeamFoundation.Build.Workflow.Activities.TagComparison.MatchExactly }]</this:Process.AgentSettings>
21+
<this:Process.MSBuildArguments>
22+
<InArgument x:TypeArguments="x:String" />
23+
</this:Process.MSBuildArguments>
24+
<this:Process.MSBuildPlatform>[Microsoft.TeamFoundation.Build.Workflow.Activities.ToolPlatform.Auto]</this:Process.MSBuildPlatform>
25+
<this:Process.DoNotDownloadBuildType>[False]</this:Process.DoNotDownloadBuildType>
26+
<this:Process.LogFilePerProject>[False]</this:Process.LogFilePerProject>
27+
<this:Process.SourcesSubdirectory>
28+
<InArgument x:TypeArguments="x:String" />
29+
</this:Process.SourcesSubdirectory>
30+
<this:Process.BinariesSubdirectory>
31+
<InArgument x:TypeArguments="x:String" />
32+
</this:Process.BinariesSubdirectory>
33+
<this:Process.TestResultsSubdirectory>
34+
<InArgument x:TypeArguments="x:String" />
35+
</this:Process.TestResultsSubdirectory>
36+
<this:Process.RecursionType>[Microsoft.TeamFoundation.VersionControl.Client.RecursionType.OneLevel]</this:Process.RecursionType>
37+
<this:Process.Verbosity>[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal]</this:Process.Verbosity>
38+
<this:Process.Metadata>
39+
<mtbw:ProcessParameterMetadataCollection />
40+
</this:Process.Metadata>
41+
<this:Process.SupportedReasons>All</this:Process.SupportedReasons>
42+
<mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings>
43+
<Sequence mtbwt:BuildTrackingParticipant.Importance="None">
44+
<Sequence.Variables>
45+
<Variable x:TypeArguments="mtbc:IBuildDetail" Name="BuildDetail" />
46+
</Sequence.Variables>
47+
<mtbwa:GetBuildDetail DisplayName="Get the Build" Result="[BuildDetail]" />
48+
<mtbwa:InvokeForReason DisplayName="Update Build Number for Triggered Builds" Reason="Triggered">
49+
<mtbwa:UpdateBuildNumber BuildNumberFormat="[&quot;$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)&quot;]" DisplayName="Update Build Number" />
50+
</mtbwa:InvokeForReason>
51+
<mtbwa:AgentScope DisplayName="Run On Agent" MaxExecutionTime="[AgentSettings.MaxExecutionTime]" MaxWaitTime="[AgentSettings.MaxWaitTime]" ReservationSpec="[AgentSettings.GetAgentReservationSpec()]">
52+
<mtbwa:AgentScope.Variables>
53+
<Variable x:TypeArguments="x:String" Name="buildDirectory" />
54+
</mtbwa:AgentScope.Variables>
55+
<mtbwa:GetBuildDirectory DisplayName="Get the Build Directory" Result="[buildDirectory]" />
56+
<If Condition="[Not String.IsNullOrEmpty(ConfigurationFolderPath)]" DisplayName="If Not String.IsNullOrEmpty(ConfigurationFolderPath)">
57+
<If.Then>
58+
<mtbwa:TfsBuild BinariesSubdirectory="[BinariesSubdirectory]" BuildDirectory="[buildDirectory]" CommandLineArguments="[MSBuildArguments]" ConfigurationFolderPath="[ConfigurationFolderPath]" DisplayName="Run TfsBuild for Configuration Folder" DoNotDownloadBuildType="[DoNotDownloadBuildType]" LogFilePerProject="[LogFilePerProject]" RecursionType="[RecursionType]" SourcesSubdirectory="[SourcesSubdirectory]" TargetsNotLogged="[New String() {&quot;GetNativeManifest&quot;, &quot;GetCopyToOutputDirectoryItems&quot;, &quot;GetTargetPath&quot;}]" TestResultsSubdirectory="[TestResultsSubdirectory]" ToolPlatform="[MSBuildPlatform]" Verbosity="[Verbosity]" />
59+
</If.Then>
60+
</If>
61+
<If Condition="[BuildDetail.CompilationStatus = Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Unknown]" DisplayName="If CompilationStatus = Unknown">
62+
<If.Then>
63+
<mtbwa:SetBuildProperties CompilationStatus="[Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Succeeded]" DisplayName="Set CompilationStatus to Succeeded" PropertiesToSet="CompilationStatus" />
64+
</If.Then>
65+
</If>
66+
<If Condition="[BuildDetail.TestStatus = Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Unknown]" DisplayName="If TestStatus = Unknown">
67+
<If.Then>
68+
<mtbwa:SetBuildProperties DisplayName="Set TestStatus to Succeeded" PropertiesToSet="TestStatus" TestStatus="[Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Succeeded]" />
69+
</If.Then>
70+
</If>
71+
</mtbwa:AgentScope>
72+
<mtbwa:InvokeForReason Reason="CheckInShelveset">
73+
<mtbwa:CheckInGatedChanges DisplayName="Check In Gated Changes" />
74+
</mtbwa:InvokeForReason>
75+
</Sequence>
76+
</Activity>

TestRunner/Program.cs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using Yamaha.AVControl;
6+
using System.Net;
7+
using System.Xml.Linq;
8+
using Yamaha.AVControl.Util;
9+
10+
namespace TestRunner {
11+
class Program {
12+
static void Main(string[] args) {
13+
14+
Controller c = new Controller(@"192.168.0.103");
15+
16+
if (c.TryConnect()) {
17+
c.UpdateStatus();
18+
19+
Console.ReadLine();
20+
} else {
21+
Console.WriteLine("There was an error attempting to connet to the service");
22+
}
23+
}
24+
}
25+
}

TestRunner/Properties/AssemblyInfo.cs

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("TestRunner")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("Microsoft")]
12+
[assembly: AssemblyProduct("TestRunner")]
13+
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("6e6aeeb5-60b9-4e2c-a555-6825aec24365")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

TestRunner/TestRunner.csproj

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{390A2167-FB5C-4216-B5ED-D24C7E0DADFB}</ProjectGuid>
9+
<OutputType>Exe</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>TestRunner</RootNamespace>
12+
<AssemblyName>TestRunner</AssemblyName>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14+
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
15+
<FileAlignment>512</FileAlignment>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
18+
<PlatformTarget>x86</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
28+
<PlatformTarget>x86</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="System" />
38+
<Reference Include="System.Core" />
39+
<Reference Include="System.Xml.Linq" />
40+
<Reference Include="System.Data.DataSetExtensions" />
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="System.Data" />
43+
<Reference Include="System.Xml" />
44+
</ItemGroup>
45+
<ItemGroup>
46+
<Compile Include="Program.cs" />
47+
<Compile Include="Properties\AssemblyInfo.cs" />
48+
</ItemGroup>
49+
<ItemGroup>
50+
<ProjectReference Include="..\Yamaha.AVControl\Yamaha.AVControl.Lib.csproj">
51+
<Project>{D9BC722A-1ADC-4988-B61F-25B3322ABF5D}</Project>
52+
<Name>Yamaha.AVControl.Lib</Name>
53+
</ProjectReference>
54+
</ItemGroup>
55+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
56+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
57+
Other similar extension points exist, see Microsoft.Common.targets.
58+
<Target Name="BeforeBuild">
59+
</Target>
60+
<Target Name="AfterBuild">
61+
</Target>
62+
-->
63+
</Project>

Yamaha.AVControl.Desktop/App.xaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Application x:Class="Yamaha.AVControl.Desktop.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
StartupUri="MainWindow.xaml">
5+
<Application.Resources>
6+
7+
</Application.Resources>
8+
</Application>

Yamaha.AVControl.Desktop/App.xaml.cs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Windows;
7+
8+
namespace Yamaha.AVControl.Desktop {
9+
/// <summary>
10+
/// Interaction logic for App.xaml
11+
/// </summary>
12+
public partial class App : Application {
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Windows.Data;
6+
7+
namespace Yamaha.AVControl.Desktop.Controls {
8+
public class BooleanInverterConverter : IValueConverter {
9+
10+
#region IValueConverter Members
11+
12+
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
13+
if (true.Equals(value))
14+
return false;
15+
else if (false.Equals(value))
16+
return true;
17+
else
18+
return value;
19+
}
20+
21+
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
22+
return Convert(value, targetType, parameter, culture);
23+
}
24+
25+
#endregion
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Windows.Data;
6+
using System.Windows;
7+
8+
namespace Yamaha.AVControl.Desktop.Controls {
9+
public class BooleanVisibilityConverter : IValueConverter{
10+
11+
public Visibility FalseVisibility { get; set; }
12+
public Visibility TrueVisibility { get; set; }
13+
14+
public BooleanVisibilityConverter() {
15+
FalseVisibility = Visibility.Collapsed;
16+
TrueVisibility = Visibility.Visible;
17+
}
18+
19+
#region IValueConverter Members
20+
21+
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
22+
if (value == null)
23+
return null;
24+
25+
try {
26+
bool bVal = (bool)value;
27+
if (bVal)
28+
return TrueVisibility;
29+
else
30+
return FalseVisibility;
31+
} catch { return value; }
32+
}
33+
34+
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
35+
throw new NotImplementedException();
36+
}
37+
38+
#endregion
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<UserControl x:Class="Yamaha.AVControl.Desktop.Controls.SelectorView"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
mc:Ignorable="d"
7+
d:DesignHeight="300" d:DesignWidth="300">
8+
<UserControl.Resources>
9+
<ResourceDictionary>
10+
<ResourceDictionary.MergedDictionaries>
11+
<ResourceDictionary Source="..\Styles\DefaultTheme.xaml" />
12+
</ResourceDictionary.MergedDictionaries>
13+
</ResourceDictionary>
14+
</UserControl.Resources>
15+
<ScrollViewer VerticalScrollBarVisibility="Auto">
16+
<ItemsControl x:Name="icSelectables" ItemsSource="{Binding}">
17+
<ItemsControl.ItemsPanel>
18+
<ItemsPanelTemplate>
19+
<WrapPanel Orientation="Horizontal" />
20+
</ItemsPanelTemplate>
21+
</ItemsControl.ItemsPanel>
22+
<ItemsControl.ItemTemplate>
23+
<DataTemplate>
24+
<Button Click="Button_Click" Tag="{Binding}" Margin="10" Padding="10" Width="100">
25+
<Button.Style>
26+
<Style TargetType="Button" BasedOn="{StaticResource DefaultButton}">
27+
<Setter Property="Foreground" Value="{StaticResource SelectionTextForeground}" />
28+
<Style.Triggers>
29+
<Trigger Property="IsMouseOver" Value="True">
30+
<Setter Property="Foreground" Value="{StaticResource SelectionTextForegroundHover}" />
31+
</Trigger>
32+
</Style.Triggers>
33+
</Style>
34+
</Button.Style>
35+
<StackPanel Orientation="Vertical" HorizontalAlignment="Center">
36+
<Image Source="{Binding ImageUri}" Height="48" Width="48" />
37+
<TextBlock Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Button}, Path=Foreground}"
38+
TextWrapping="Wrap"
39+
Text="{Binding DisplayName}" FontWeight="Bold" FontSize="16">
40+
</TextBlock>
41+
</StackPanel>
42+
</Button>
43+
</DataTemplate>
44+
</ItemsControl.ItemTemplate>
45+
</ItemsControl>
46+
</ScrollViewer>
47+
</UserControl>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Windows;
6+
using System.Windows.Controls;
7+
using System.Windows.Data;
8+
using System.Windows.Documents;
9+
using System.Windows.Input;
10+
using System.Windows.Media;
11+
using System.Windows.Media.Imaging;
12+
using System.Windows.Navigation;
13+
using System.Windows.Shapes;
14+
using Yamaha.AVControl.Desktop.Models;
15+
16+
namespace Yamaha.AVControl.Desktop.Controls {
17+
/// <summary>
18+
/// Interaction logic for SelectorView.xaml
19+
/// </summary>
20+
public partial class SelectorView : UserControl {
21+
public SelectorView() {
22+
InitializeComponent();
23+
}
24+
25+
private void Button_Click(object sender, RoutedEventArgs e) {
26+
Button b = sender as Button;
27+
VMSelectable selected = b.Tag as VMSelectable;
28+
29+
if (selected != null) {
30+
selected.Select();
31+
}
32+
}
33+
34+
private void Button_Click_1(object sender, RoutedEventArgs e) {
35+
MessageBox.Show("OK");
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)