Browse files

Fixed line endings and added git ingore

  • Loading branch information...
1 parent 51641ff commit 00ae70447bcc7860ca6f6a02595e5dc503030010 @jbtule jbtule committed Aug 27, 2012
Showing with 9,879 additions and 9,701 deletions.
  1. +22 −0 .gitattributes
  2. +166 −0 .gitignore
  3. +27 −27 .hgignore
  4. +5 −5 .nuget/NuGet.Config
  5. +51 −51 .nuget/NuGet.targets
  6. +3 −3 .nuget/packages.config
  7. +84 −84 ImpromptuInterface.FSharp.Silverlight/ImpromptuInterface.FSharp (Silverlight).fsproj
  8. +43 −43 ImpromptuInterface.FSharp/AssemblyInfo.fs
  9. +121 −121 ImpromptuInterface.FSharp/FSharp.fs
  10. +64 −64 ImpromptuInterface.FSharp/ImpromptuInterface.FSharp.fsproj
  11. +28 −28 ImpromptuInterface.FSharp/Util.fs
  12. +172 −172 ImpromptuInterface.MVVM.Silverlight/ImpromptuInterface.MVVM (Silverlight).csproj
  13. +17 −17 ImpromptuInterface.MVVM.Silverlight/src/Support.cs
  14. +168 −168 ImpromptuInterface.MVVM.Silverlight5/ImpromptuInterface.MVVM (Silverlight5).csproj
  15. +103 −103 ImpromptuInterface.MVVM/ImpromptuInterface.MVVM.csproj
  16. +47 −47 ImpromptuInterface.MVVM/Properties/AssemblyInfo.cs
  17. +52 −52 ImpromptuInterface.MVVM/src/DialogBox.cs
  18. +365 −365 ImpromptuInterface.MVVM/src/Event.cs
  19. +91 −91 ImpromptuInterface.MVVM/src/FireOnChange.cs
  20. +84 −84 ImpromptuInterface.MVVM/src/IContainer.cs
  21. +33 −33 ImpromptuInterface.MVVM/src/ISetupViewModel.cs
  22. +76 −76 ImpromptuInterface.MVVM/src/ImpromptuCommandBinder.cs
  23. +161 −161 ImpromptuInterface.MVVM/src/ImpromptuRelayCommand.cs
  24. +191 −191 ImpromptuInterface.MVVM/src/ImpromptuToString.cs
  25. +451 −451 ImpromptuInterface.MVVM/src/ImpromptuViewModel-Nested.cs
  26. +276 −276 ImpromptuInterface.MVVM/src/ImpromptuViewModel.cs
  27. +140 −140 ImpromptuInterface.MVVM/src/ImpromptuWindowBuilder.cs
  28. +120 −120 ImpromptuInterface.MVVM/src/IoC.cs
  29. +153 −153 ImpromptuInterface.MVVM/src/MEF/Container.cs
  30. +20 −20 ImpromptuInterface.MVVM/src/MEF/ViewAttribute.cs
  31. +20 −20 ImpromptuInterface.MVVM/src/MEF/ViewModelAttribute.cs
  32. +184 −184 ImpromptuInterface.MVVM/src/Ninject/Container.cs
  33. +21 −21 ImpromptuInterface.MVVM/src/Ninject/Extensions.cs
  34. +150 −150 ImpromptuInterface.MVVM/src/Runtime.cs
  35. +132 −132 ImpromptuInterface.MVVM/src/TinyIoC/Container.cs
  36. +147 −147 ImpromptuInterface.MVVM/src/Unity/Container.cs
  37. +293 −293 ImpromptuInterface.Silverlight/ImpromptuInterface (Silverlight).csproj
  38. +75 −75 ImpromptuInterface.Silverlight/src/Optimization/SilverlightConverter.cs
  39. +253 −253 ImpromptuInterface.Silverlight5/ImpromptuInterface (Silverlight5).csproj
  40. +377 −377 ImpromptuInterface.Silverlight5/src/Dynamic/ImpromptuRuntimeType.cs
  41. +91 −91 ImpromptuInterface.mono.sln
  42. +301 −311 ImpromptuInterface.sln
  43. +193 −193 ImpromptuInterface/ImpromptuInterface.csproj
  44. +67 −67 ImpromptuInterface/Properties/AssemblyInfo.cs
  45. +49 −49 ImpromptuInterface/src/ActLikeCaster.cs
  46. +231 −231 ImpromptuInterface/src/Dynamic/Builder.cs
  47. +314 −314 ImpromptuInterface/src/Dynamic/CacheableInvocation.cs
  48. +391 −391 ImpromptuInterface/src/Dynamic/DynamicLinq.cs
  49. +65 −65 ImpromptuInterface/src/Dynamic/FluentRegex.cs
  50. +60 −60 ImpromptuInterface/src/Dynamic/FluentStringLookup.cs
  51. +34 −34 ImpromptuInterface/src/Dynamic/IActLike.cs
  52. +36 −36 ImpromptuInterface/src/Dynamic/IDynamicKnowLike.cs
  53. +415 −415 ImpromptuInterface/src/Dynamic/ImpromptuBuilder.cs
  54. +182 −182 ImpromptuInterface/src/Dynamic/ImpromptuDictionary.cs
  55. +392 −392 ImpromptuInterface/src/Dynamic/ImpromptuDictionaryBase.cs
  56. +109 −109 ImpromptuInterface/src/Dynamic/ImpromptuDummy.cs
  57. +148 −148 ImpromptuInterface/src/Dynamic/ImpromptuFactory.cs
  58. +311 −311 ImpromptuInterface/src/Dynamic/ImpromptuForwarder.cs
  59. +51 −51 ImpromptuInterface/src/Dynamic/ImpromptuForwarderAddRemove.cs
  60. +161 −161 ImpromptuInterface/src/Dynamic/ImpromptuGet.cs
  61. +104 −104 ImpromptuInterface/src/Dynamic/ImpromptuLateLibraryType.cs
  62. +119 −119 ImpromptuInterface/src/Dynamic/ImpromptuLazy.cs
  63. +434 −434 ImpromptuInterface/src/Dynamic/ImpromptuList.cs
  64. +115 −115 ImpromptuInterface/src/Dynamic/ImpromptuMatch.cs
  65. +220 −220 ImpromptuInterface/src/Dynamic/ImpromptuObject.cs
  66. +129 −129 ImpromptuInterface/src/Dynamic/ImpromptuPropertyDescriptor.cs
  67. +171 −171 ImpromptuInterface/src/Dynamic/ImpromptuRecorder.cs
Sorry, we could not display the entire diff because it was too big.
View
22 .gitattributes
@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs diff=csharp
+*.sln merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
View
166 .gitignore
@@ -0,0 +1,166 @@
+#################
+## Eclipse
+#################
+nuget
+*~
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+[Dd]ebug/
+[Rr]elease/
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.vspscc
+.builds
+*.dotCover
+
+## TODO: If you have NuGet Package Restore enabled, uncomment this
+#packages/
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+
+# Visual Studio profiler
+*.psess
+*.vsp
+
+# ReSharper is a .NET coding add-in
+_ReSharper*
+
+# Installshield output folder
+[Ee]xpress
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish
+
+# Others
+[Bb]in
+[Oo]bj
+sql
+TestResults
+*.Cache
+ClientBin
+stylecop.*
+~$*
+*.dbmdl
+Generated_Code #added for RIA/Silverlight projects
+packages
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+
+
+
+############
+## Windows
+############
+
+# Windows image file caches
+Thumbs.db
+
+# Folder config file
+Desktop.ini
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
+
+# Mac crap
+.DS_Store
View
54 .hgignore
@@ -1,27 +1,27 @@
-relre:.*\.user$
-relre:_ReSharper.*
-relre:.*/obj/.*
-relre:.*/bin/.*
-relre:.*\.suo$
-glob:*test-results*
-glob:.DS_Store
-relre:.*\.pidb$
-relre:.*\.userprefs$
-glob:nuget/*.nupkg
-glob:nuget/ImpromptuInterface.1.2.0/lib/*
-glob:nuget/NuGet.exe
-glob:nuget/*.zip
-glob:nuget/ImpromptuInterface/lib/net40/*
-glob:*~
-glob:*/Bin/*
-glob:speed/*
-glob:*.orig
-glob:*.ReSharper
-glob:dist/*
-glob:_UpgradeReport_Files/*
-glob:UpgradeLog.XML
-glob:nuget/symbols/*.nupkg
-glob:Thumbs.db
-syntax: glob
-packages/*
-*.swp
+relre:.*\.user$
+relre:_ReSharper.*
+relre:.*/obj/.*
+relre:.*/bin/.*
+relre:.*\.suo$
+glob:*test-results*
+glob:.DS_Store
+relre:.*\.pidb$
+relre:.*\.userprefs$
+glob:nuget/*.nupkg
+glob:nuget/ImpromptuInterface.1.2.0/lib/*
+glob:nuget/NuGet.exe
+glob:nuget/*.zip
+glob:nuget/ImpromptuInterface/lib/net40/*
+glob:*~
+glob:*/Bin/*
+glob:speed/*
+glob:*.orig
+glob:*.ReSharper
+glob:dist/*
+glob:_UpgradeReport_Files/*
+glob:UpgradeLog.XML
+glob:nuget/symbols/*.nupkg
+glob:Thumbs.db
+syntax: glob
+packages/*
+*.swp
View
10 .nuget/NuGet.Config
@@ -1,6 +1,6 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <solution>
- <add key="disableSourceControlIntegration" value="true" />
- </solution>
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <solution>
+ <add key="disableSourceControlIntegration" value="true" />
+ </solution>
</configuration>
View
102 .nuget/NuGet.targets
@@ -1,52 +1,52 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
- <NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
- <NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath>
- <PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
- <PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
- <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
-
- <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
- <PackageSources>""</PackageSources>
-
- <!-- Enable the restore command to run before builds -->
- <RestorePackages Condition="$(RestorePackages) == ''">false</RestorePackages>
-
- <!-- Property that enables building a package from a project -->
- <BuildPackage Condition="$(BuildPackage) == ''">false</BuildPackage>
-
- <!-- Commands -->
- <RestoreCommand>"$(NuGetExePath)" install "$(PackagesConfig)" -source $(PackageSources) -o "$(PackagesDir)"</RestoreCommand>
- <BuildCommand>"$(NuGetExePath)" pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
-
- <!-- Make the build depend on restore packages -->
- <BuildDependsOn Condition="$(RestorePackages) == 'true'">
- RestorePackages;
- $(BuildDependsOn);
- </BuildDependsOn>
-
- <!-- Make the build depend on restore packages -->
- <BuildDependsOn Condition="$(BuildPackage) == 'true'">
- $(BuildDependsOn);
- BuildPackage;
- </BuildDependsOn>
- </PropertyGroup>
-
- <Target Name="CheckPrerequisites">
- <!-- Raise an error if we're unable to locate nuget.exe -->
- <Error Condition="!Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
- </Target>
-
- <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
- <Exec Command="$(RestoreCommand)"
- LogStandardErrorAsError="true"
- Condition="Exists('$(PackagesConfig)')" />
- </Target>
-
- <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
- <Exec Command="$(BuildCommand)"
- LogStandardErrorAsError="true" />
- </Target>
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
+ <NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
+ <NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath>
+ <PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
+ <PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
+ <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
+
+ <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
+ <PackageSources>""</PackageSources>
+
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition="$(RestorePackages) == ''">false</RestorePackages>
+
+ <!-- Property that enables building a package from a project -->
+ <BuildPackage Condition="$(BuildPackage) == ''">false</BuildPackage>
+
+ <!-- Commands -->
+ <RestoreCommand>"$(NuGetExePath)" install "$(PackagesConfig)" -source $(PackageSources) -o "$(PackagesDir)"</RestoreCommand>
+ <BuildCommand>"$(NuGetExePath)" pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(RestorePackages) == 'true'">
+ RestorePackages;
+ $(BuildDependsOn);
+ </BuildDependsOn>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
+ $(BuildDependsOn);
+ BuildPackage;
+ </BuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate nuget.exe -->
+ <Error Condition="!Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
+ </Target>
+
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)"
+ LogStandardErrorAsError="true"
+ Condition="Exists('$(PackagesConfig)')" />
+ </Target>
+
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(BuildCommand)"
+ LogStandardErrorAsError="true" />
+ </Target>
</Project>
View
6 .nuget/packages.config
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="NuGet.CommandLine" version="2.0.0" />
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="NuGet.CommandLine" version="2.0.0" />
</packages>
View
168 ImpromptuInterface.FSharp.Silverlight/ImpromptuInterface.FSharp (Silverlight).fsproj
@@ -1,85 +1,85 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{c6f699c3-c2c7-4393-b8c2-b5c234ed23d7}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AssemblyName>ImpromptuInterface.FSharp</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
- <FileAlignment>512</FileAlignment>
- <AllowCrossTargeting>true</AllowCrossTargeting>
- <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{f2a71f9b-5d33-465a-a702-920d77279786}</ProjectTypeGuids>
- <Name>ImpromptuInterface.FSharp (Silverlight)</Name>
- <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
- <SilverlightApplication>false</SilverlightApplication>
- <ValidateXaml>true</ValidateXaml>
- <ThrowErrorsInValidation>false</ThrowErrorsInValidation>
- <RootNamespace>ImpromptuInterface.FSharp.Silverlight</RootNamespace>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Debug\ImpromptuInterface.FSharp.Silverlight.XML</DocumentationFile>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Release\ImpromptuInterface.FSharp.XML</DocumentationFile>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="!Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
- <Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.Common.targets" />
- <ItemGroup>
- <Compile Include="..\ImpromptuInterface.FSharp\AssemblyInfo.fs">
- <Link>AssemblyInfo.fs</Link>
- </Compile>
- <Content Include="..\NuGetBuild\FSharp\ImpromptuInterface.FSharp.MetaData.xml">
- <Link>ImpromptuInterface.FSharp.MetaData.xml</Link>
- </Content>
- <Compile Include="..\ImpromptuInterface.FSharp\Util.fs">
- <Link>Util.fs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.FSharp\FSharp.fs">
- <Link>FSharp.fs</Link>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <Reference Include="Microsoft.CSharp">
- <HintPath>c:\Program Files\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\Microsoft.CSharp.dll</HintPath>
- </Reference>
- <Reference Include="mscorlib" />
- <Reference Include="FSharp.Core">
- <HintPath>$(ProgramFiles)\Microsoft F#\Silverlight\Libraries\Client\$(SilverlightVersion)\FSharp.Core.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Net" />
- <Reference Include="System.Windows" />
- <Reference Include="System.Windows.Browser" />
- <ProjectReference Include="..\ImpromptuInterface.Silverlight\ImpromptuInterface %28Silverlight%29.csproj">
- <Name>ImpromptuInterface (Silverlight)</Name>
- <Project>{9181a92f-9a17-45a3-bbdb-eac085a901a0}</Project>
- <Private>True</Private>
- </ProjectReference>
- </ItemGroup>
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{c6f699c3-c2c7-4393-b8c2-b5c234ed23d7}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AssemblyName>ImpromptuInterface.FSharp</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
+ <FileAlignment>512</FileAlignment>
+ <AllowCrossTargeting>true</AllowCrossTargeting>
+ <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{f2a71f9b-5d33-465a-a702-920d77279786}</ProjectTypeGuids>
+ <Name>ImpromptuInterface.FSharp (Silverlight)</Name>
+ <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
+ <SilverlightApplication>false</SilverlightApplication>
+ <ValidateXaml>true</ValidateXaml>
+ <ThrowErrorsInValidation>false</ThrowErrorsInValidation>
+ <RootNamespace>ImpromptuInterface.FSharp.Silverlight</RootNamespace>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>3</WarningLevel>
+ <DocumentationFile>bin\Debug\ImpromptuInterface.FSharp.Silverlight.XML</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>3</WarningLevel>
+ <DocumentationFile>bin\Release\ImpromptuInterface.FSharp.XML</DocumentationFile>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="!Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
+ <Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.Common.targets" />
+ <ItemGroup>
+ <Compile Include="..\ImpromptuInterface.FSharp\AssemblyInfo.fs">
+ <Link>AssemblyInfo.fs</Link>
+ </Compile>
+ <Content Include="..\NuGetBuild\FSharp\ImpromptuInterface.FSharp.MetaData.xml">
+ <Link>ImpromptuInterface.FSharp.MetaData.xml</Link>
+ </Content>
+ <Compile Include="..\ImpromptuInterface.FSharp\Util.fs">
+ <Link>Util.fs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.FSharp\FSharp.fs">
+ <Link>FSharp.fs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.CSharp">
+ <HintPath>c:\Program Files\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\Microsoft.CSharp.dll</HintPath>
+ </Reference>
+ <Reference Include="mscorlib" />
+ <Reference Include="FSharp.Core">
+ <HintPath>$(ProgramFiles)\Microsoft F#\Silverlight\Libraries\Client\$(SilverlightVersion)\FSharp.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Net" />
+ <Reference Include="System.Windows" />
+ <Reference Include="System.Windows.Browser" />
+ <ProjectReference Include="..\ImpromptuInterface.Silverlight\ImpromptuInterface %28Silverlight%29.csproj">
+ <Name>ImpromptuInterface (Silverlight)</Name>
+ <Project>{9181a92f-9a17-45a3-bbdb-eac085a901a0}</Project>
+ <Private>True</Private>
+ </ProjectReference>
+ </ItemGroup>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
86 ImpromptuInterface.FSharp/AssemblyInfo.fs
@@ -1,44 +1,44 @@
-namespace ImpromptuInterface
-open System
-open System.Reflection;
-open System.Runtime.CompilerServices;
-open System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-#if SILVERLIGHT
-[<assembly: AssemblyTitle("ImpromptuInterface.FSharp (Silverlight)")>]
-#else
-[<assembly: AssemblyTitle("ImpromptuInterface.FSharp")>]
-#endif
-[<assembly: AssemblyDescription("")>]
-[<assembly: AssemblyConfiguration("")>]
-[<assembly: AssemblyCompany("Ekon Benefits")>]
-[<assembly: AssemblyProduct("ImpromptuInterface.FSharp")>]
-[<assembly: AssemblyCopyright("Copyright © Ekon Benefits 2011")>]
-[<assembly: AssemblyTrademark("")>]
-[<assembly: AssemblyCulture("")>]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[<assembly: ComVisible(false)>]
-
-[<assembly: CLSCompliant(false)>]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[<assembly: Guid("d053ec41-bf49-4470-9dc7-d1257accc0e0")>]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the ‘*’ as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[<assembly: AssemblyVersion("1.2.7.0")>]
+namespace ImpromptuInterface
+open System
+open System.Reflection;
+open System.Runtime.CompilerServices;
+open System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+#if SILVERLIGHT
+[<assembly: AssemblyTitle("ImpromptuInterface.FSharp (Silverlight)")>]
+#else
+[<assembly: AssemblyTitle("ImpromptuInterface.FSharp")>]
+#endif
+[<assembly: AssemblyDescription("")>]
+[<assembly: AssemblyConfiguration("")>]
+[<assembly: AssemblyCompany("Ekon Benefits")>]
+[<assembly: AssemblyProduct("ImpromptuInterface.FSharp")>]
+[<assembly: AssemblyCopyright("Copyright © Ekon Benefits 2011")>]
+[<assembly: AssemblyTrademark("")>]
+[<assembly: AssemblyCulture("")>]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[<assembly: ComVisible(false)>]
+
+[<assembly: CLSCompliant(false)>]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[<assembly: Guid("d053ec41-bf49-4470-9dc7-d1257accc0e0")>]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the ‘*’ as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[<assembly: AssemblyVersion("1.2.7.0")>]
()
View
242 ImpromptuInterface.FSharp/FSharp.fs
@@ -1,122 +1,122 @@
-//
-// Copyright 2011 Ekon Benefits
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-namespace ImpromptuInterface
-
-///Module to add DLR dynamic invocation to FSharp through the dynamic operator (?) and other extensions
-module FSharp=
-
- open System
- open Microsoft.CSharp.RuntimeBinder
- open Microsoft.FSharp.Reflection
- open ImpromptuInterface
- open ImpromptuInterface.Dynamic
- open FSharpUtil
-
-
- type dynAddAssign = PropertySetCallsAddAssign
- type dynSubtractAssign = PropertySetCallsSubtractAssign
- type dynArg = PropertyGetCallsNamedArgument
-
- ///Wrap type to dynamically call static methods
- let inline dynStaticContext (target:Type) = InvokeContext.CreateStatic.Invoke(target)
-
- ///dynamic implict convert to type
- let (>?>) (target:obj) (convertType: Type) : 'TResult =
- Impromptu.InvokeConvert(target, convertType, explicit = false) :?> 'TResult
-
- ///dynamic explicit convert to type dynamically
- let (>>?>>) (target:obj) (convertType: Type) : 'TResult =
- Impromptu.InvokeConvert(target, convertType, explicit = true) :?> 'TResult
-
- ///Use type inteference to dynamically convert implicitly
- let inline dynImplicit (target:obj) : 'TResult =
- target >?> typeof<'TResult>
-
- ///Use type inteference to dynamically convert explicitly
- let inline dynExplicit (target:obj) : 'TResult =
- target >>?>> typeof<'TResult>
-
- ///Dynamic get property or method invocation
- let (?) (target : obj) (name:string) : 'TResult =
- let resultType = typeof<'TResult>
- let (|NoConversion| Conversion|) t = if t = typeof<obj> then NoConversion else Conversion
-
- if not (FSharpType.IsFunction resultType)
- then
- let convert r = match resultType with
- | NoConversion -> r
- | ____________ -> dynImplicit(r)
-
- Impromptu.InvokeGet(target, name)
- |> convert
- |> unbox
- else
- let lambda = fun arg ->
- let argType,returnType = FSharpType.GetFunctionElements resultType
-
- let argArray =
- match argType with
- | a when FSharpType.IsTuple(a) -> FSharpValue.GetTupleFields(arg)
- | a when a = typeof<unit> -> [| |]
- | ____________________________ -> [|arg|]
-
- let invoker k = Invocation(k, InvokeMemberName(name ,null)).Invoke(target, argArray)
-
- let (|Action|Func|) t = if t = typeof<unit> then Action else Func
- let (|Invoke|InvokeMember|) n = if n = "_" then Invoke else InvokeMember
-
- let result =
- try //Either it has a member or it's something directly callable
- match (returnType, name) with
- | (Action,Invoke) -> invoker(InvocationKind.InvokeAction)
- | (Action,InvokeMember) -> invoker(InvocationKind.InvokeMemberAction)
- | (Func, Invoke) -> invoker(InvocationKind.Invoke)
- | (Func, InvokeMember) -> invoker(InvocationKind.InvokeMember)
- with //Last chance incase we are trying to invoke an fsharpfunc
- | :? RuntimeBinderException as e ->
- try
- let invokeName =InvokeMemberName("Invoke", null) //FSharpFunc Invoke
- let invokeContext t = InvokeContext(t,typeof<obj>) //Improve cache hits by using the same context
- let invokeFSharpFoldBack (a:obj) t =
- Impromptu.InvokeMember(invokeContext(t),invokeName,a)
- let seed = match name with
- |InvokeMember -> Impromptu.InvokeGet(target,name)
- |Invoke -> target
- let reverseArgList = argArray
- |> List.ofArray
- |> List.rev
- List.foldBack invokeFSharpFoldBack reverseArgList seed
- with
- #if SILVERLIGHT
- | :? RuntimeBinderException
- -> raise e
- #else
- | :? RuntimeBinderException as e2
- -> AggregateException(e,e2) |> raise
- #endif
-
- match returnType with
- | Action | NoConversion -> result
- | _____________________ -> result >?> returnType
-
- FSharpValue.MakeFunction(resultType,lambda) |> unbox<'TResult>
-
- ///Dynamic set property
- let (?<-) (target : obj) (name : string) (value : 'TValue) : unit =
- Impromptu.InvokeSet(target, name, value) |> ignore
-
- ///Prefix operator that allows direct dynamic invocation of the object
- let (!?) (target:obj) : 'TResult =
+//
+// Copyright 2011 Ekon Benefits
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+namespace ImpromptuInterface
+
+///Module to add DLR dynamic invocation to FSharp through the dynamic operator (?) and other extensions
+module FSharp=
+
+ open System
+ open Microsoft.CSharp.RuntimeBinder
+ open Microsoft.FSharp.Reflection
+ open ImpromptuInterface
+ open ImpromptuInterface.Dynamic
+ open FSharpUtil
+
+
+ type dynAddAssign = PropertySetCallsAddAssign
+ type dynSubtractAssign = PropertySetCallsSubtractAssign
+ type dynArg = PropertyGetCallsNamedArgument
+
+ ///Wrap type to dynamically call static methods
+ let inline dynStaticContext (target:Type) = InvokeContext.CreateStatic.Invoke(target)
+
+ ///dynamic implict convert to type
+ let (>?>) (target:obj) (convertType: Type) : 'TResult =
+ Impromptu.InvokeConvert(target, convertType, explicit = false) :?> 'TResult
+
+ ///dynamic explicit convert to type dynamically
+ let (>>?>>) (target:obj) (convertType: Type) : 'TResult =
+ Impromptu.InvokeConvert(target, convertType, explicit = true) :?> 'TResult
+
+ ///Use type inteference to dynamically convert implicitly
+ let inline dynImplicit (target:obj) : 'TResult =
+ target >?> typeof<'TResult>
+
+ ///Use type inteference to dynamically convert explicitly
+ let inline dynExplicit (target:obj) : 'TResult =
+ target >>?>> typeof<'TResult>
+
+ ///Dynamic get property or method invocation
+ let (?) (target : obj) (name:string) : 'TResult =
+ let resultType = typeof<'TResult>
+ let (|NoConversion| Conversion|) t = if t = typeof<obj> then NoConversion else Conversion
+
+ if not (FSharpType.IsFunction resultType)
+ then
+ let convert r = match resultType with
+ | NoConversion -> r
+ | ____________ -> dynImplicit(r)
+
+ Impromptu.InvokeGet(target, name)
+ |> convert
+ |> unbox
+ else
+ let lambda = fun arg ->
+ let argType,returnType = FSharpType.GetFunctionElements resultType
+
+ let argArray =
+ match argType with
+ | a when FSharpType.IsTuple(a) -> FSharpValue.GetTupleFields(arg)
+ | a when a = typeof<unit> -> [| |]
+ | ____________________________ -> [|arg|]
+
+ let invoker k = Invocation(k, InvokeMemberName(name ,null)).Invoke(target, argArray)
+
+ let (|Action|Func|) t = if t = typeof<unit> then Action else Func
+ let (|Invoke|InvokeMember|) n = if n = "_" then Invoke else InvokeMember
+
+ let result =
+ try //Either it has a member or it's something directly callable
+ match (returnType, name) with
+ | (Action,Invoke) -> invoker(InvocationKind.InvokeAction)
+ | (Action,InvokeMember) -> invoker(InvocationKind.InvokeMemberAction)
+ | (Func, Invoke) -> invoker(InvocationKind.Invoke)
+ | (Func, InvokeMember) -> invoker(InvocationKind.InvokeMember)
+ with //Last chance incase we are trying to invoke an fsharpfunc
+ | :? RuntimeBinderException as e ->
+ try
+ let invokeName =InvokeMemberName("Invoke", null) //FSharpFunc Invoke
+ let invokeContext t = InvokeContext(t,typeof<obj>) //Improve cache hits by using the same context
+ let invokeFSharpFoldBack (a:obj) t =
+ Impromptu.InvokeMember(invokeContext(t),invokeName,a)
+ let seed = match name with
+ |InvokeMember -> Impromptu.InvokeGet(target,name)
+ |Invoke -> target
+ let reverseArgList = argArray
+ |> List.ofArray
+ |> List.rev
+ List.foldBack invokeFSharpFoldBack reverseArgList seed
+ with
+ #if SILVERLIGHT
+ | :? RuntimeBinderException
+ -> raise e
+ #else
+ | :? RuntimeBinderException as e2
+ -> AggregateException(e,e2) |> raise
+ #endif
+
+ match returnType with
+ | Action | NoConversion -> result
+ | _____________________ -> result >?> returnType
+
+ FSharpValue.MakeFunction(resultType,lambda) |> unbox<'TResult>
+
+ ///Dynamic set property
+ let (?<-) (target : obj) (name : string) (value : 'TValue) : unit =
+ Impromptu.InvokeSet(target, name, value) |> ignore
+
+ ///Prefix operator that allows direct dynamic invocation of the object
+ let (!?) (target:obj) : 'TResult =
target?``_``
View
128 ImpromptuInterface.FSharp/ImpromptuInterface.FSharp.fsproj
@@ -1,65 +1,65 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{d4d82191-1f83-43fb-8309-83637d8d11e8}</ProjectGuid>
- <OutputType>Library</OutputType>
- <RootNamespace>ImpromptuInterface.FSharp</RootNamespace>
- <AssemblyName>ImpromptuInterface.FSharp</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <Name>ImpromptuInterface.FSharp</Name>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <Tailcalls>false</Tailcalls>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Debug\ImpromptuInterface.FSharp.XML</DocumentationFile>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <Tailcalls>true</Tailcalls>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <WarningLevel>3</WarningLevel>
- <DocumentationFile>bin\Release\ImpromptuInterface.FSharp.XML</DocumentationFile>
- <PlatformTarget>AnyCPU</PlatformTarget>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="!Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
- <Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
- <ItemGroup>
- <Compile Include="AssemblyInfo.fs" />
- <None Include="..\NuGetBuild\FSharp\ImpromptuInterface.FSharp.MetaData.xml">
- <Link>ImpromptuInterface.FSharp.MetaData.xml</Link>
- </None>
- <Compile Include="Util.fs" />
- <Compile Include="FSharp.fs" />
- </ItemGroup>
- <ItemGroup>
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="mscorlib" />
- <Reference Include="FSharp.Core" />
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Numerics" />
- <ProjectReference Include="..\ImpromptuInterface\ImpromptuInterface.csproj">
- <Name>ImpromptuInterface</Name>
- <Project>{dab7c056-660a-4153-8ff2-b80a41310ad7}</Project>
- <Private>True</Private>
- </ProjectReference>
- </ItemGroup>
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{d4d82191-1f83-43fb-8309-83637d8d11e8}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>ImpromptuInterface.FSharp</RootNamespace>
+ <AssemblyName>ImpromptuInterface.FSharp</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <Name>ImpromptuInterface.FSharp</Name>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <Tailcalls>false</Tailcalls>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <WarningLevel>3</WarningLevel>
+ <DocumentationFile>bin\Debug\ImpromptuInterface.FSharp.XML</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <Tailcalls>true</Tailcalls>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <WarningLevel>3</WarningLevel>
+ <DocumentationFile>bin\Release\ImpromptuInterface.FSharp.XML</DocumentationFile>
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="!Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
+ <Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
+ <ItemGroup>
+ <Compile Include="AssemblyInfo.fs" />
+ <None Include="..\NuGetBuild\FSharp\ImpromptuInterface.FSharp.MetaData.xml">
+ <Link>ImpromptuInterface.FSharp.MetaData.xml</Link>
+ </None>
+ <Compile Include="Util.fs" />
+ <Compile Include="FSharp.fs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="mscorlib" />
+ <Reference Include="FSharp.Core" />
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Numerics" />
+ <ProjectReference Include="..\ImpromptuInterface\ImpromptuInterface.csproj">
+ <Name>ImpromptuInterface</Name>
+ <Project>{dab7c056-660a-4153-8ff2-b80a41310ad7}</Project>
+ <Private>True</Private>
+ </ProjectReference>
+ </ItemGroup>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
56 ImpromptuInterface.FSharp/Util.fs
@@ -1,29 +1,29 @@
-namespace ImpromptuInterface
-
-module FSharpUtil=
- open ImpromptuInterface
- open System.Dynamic
-
- ///Wrap object to call the c# equivalent += dynamically when using f# dynamic set operator
- type PropertySetCallsAddAssign(target:obj)=
- inherit DynamicObject()
-
- override this.TrySetMember(binder:SetMemberBinder, value:obj) =
- Impromptu.InvokeAddAssign(target,binder.Name,value)
- true
-
- ///Wrap object to call the c# equivalent -= dynamically when using f# dynamic set operator
- type PropertySetCallsSubtractAssign(target:obj)=
- inherit DynamicObject()
-
- override this.TrySetMember(binder:SetMemberBinder, value:obj) =
- Impromptu.InvokeSubtractAssign(target,binder.Name,value)
- true
-
- ///Wrap object to use get operator to attach argument name for dynamic invocation
- type PropertyGetCallsNamedArgument(target:obj)=
- inherit DynamicObject()
-
- override this.TryGetMember(binder:GetMemberBinder, result: obj byref) =
- result <- InvokeArg(binder.Name,target)
+namespace ImpromptuInterface
+
+module FSharpUtil=
+ open ImpromptuInterface
+ open System.Dynamic
+
+ ///Wrap object to call the c# equivalent += dynamically when using f# dynamic set operator
+ type PropertySetCallsAddAssign(target:obj)=
+ inherit DynamicObject()
+
+ override this.TrySetMember(binder:SetMemberBinder, value:obj) =
+ Impromptu.InvokeAddAssign(target,binder.Name,value)
+ true
+
+ ///Wrap object to call the c# equivalent -= dynamically when using f# dynamic set operator
+ type PropertySetCallsSubtractAssign(target:obj)=
+ inherit DynamicObject()
+
+ override this.TrySetMember(binder:SetMemberBinder, value:obj) =
+ Impromptu.InvokeSubtractAssign(target,binder.Name,value)
+ true
+
+ ///Wrap object to use get operator to attach argument name for dynamic invocation
+ type PropertyGetCallsNamedArgument(target:obj)=
+ inherit DynamicObject()
+
+ override this.TryGetMember(binder:GetMemberBinder, result: obj byref) =
+ result <- InvokeArg(binder.Name,target)
true
View
344 ImpromptuInterface.MVVM.Silverlight/ImpromptuInterface.MVVM (Silverlight).csproj
@@ -1,173 +1,173 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.50727</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{56215C8D-85AE-4FCB-BD33-89E6ABBA407B}</ProjectGuid>
- <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>ImpromptuInterface.MVVM</RootNamespace>
- <AssemblyName>ImpromptuInterface.MVVM</AssemblyName>
- <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
- <SilverlightApplication>false</SilverlightApplication>
- <ValidateXaml>true</ValidateXaml>
- <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\impromptu-interface.stable\</SolutionDir>
- <RestorePackages>true</RestorePackages>
- </PropertyGroup>
- <!-- This property group is only here to support building this project using the
- MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
- to set the TargetFrameworkVersion to v3.5 -->
- <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>Bin\Debug</OutputPath>
- <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>Bin\Release</OutputPath>
- <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <DocumentationFile>Bin\Release\ImpromptuInterface.MVVM.XML</DocumentationFile>
- </PropertyGroup>
- <PropertyGroup>
- <SignAssembly>true</SignAssembly>
- </PropertyGroup>
- <PropertyGroup>
- <AssemblyOriginatorKeyFile>sn.snk</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- </Reference>
- <Reference Include="mscorlib" />
- <Reference Include="System.ComponentModel.Composition, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="System.Windows" />
- <Reference Include="system" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Net" />
- <Reference Include="System.Windows.Browser" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\ImpromptuInterface.MVVM\Properties\AssemblyInfo.cs">
- <Link>Properties\AssemblyInfo.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\DialogBox.cs">
- <Link>src\DialogBox.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Event.cs">
- <Link>src\Event.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\FireOnChange.cs">
- <Link>src\FireOnChange.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\IContainer.cs">
- <Link>src\IContainer.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuBindingList.cs">
- <Link>src\ImpromptuBindingList.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuCommandBinder.cs">
- <Link>src\ImpromptuCommandBinder.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuRelayCommand.cs">
- <Link>src\ImpromptuRelayCommand.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuToString.cs">
- <Link>src\ImpromptuToString.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuViewModel-Nested.cs">
- <Link>src\ImpromptuViewModel-Nested.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuViewModel.cs">
- <Link>src\ImpromptuViewModel.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuWindowBuilder.cs">
- <Link>src\ImpromptuWindowBuilder.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\IoC.cs">
- <Link>src\IoC.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ISetupViewModel.cs">
- <Link>src\ISetupViewModel.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\Container.cs">
- <Link>src\MEF\Container.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\ViewAttribute.cs">
- <Link>src\MEF\ViewAttribute.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\ViewModelAttribute.cs">
- <Link>src\MEF\ViewModelAttribute.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Ninject\Container.cs">
- <Link>src\Ninject\Container.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Ninject\Extensions.cs">
- <Link>src\Ninject\Extensions.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Runtime.cs">
- <Link>src\Runtime.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\TinyIoC\Container.cs">
- <Link>src\TinyIoC\Container.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Unity\Container.cs">
- <Link>src\Unity\Container.cs</Link>
- </Compile>
- <Compile Include="src\Support.cs" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="..\NuGetBuild\MVVM\ImpromptuInterface.MVVM.MetaData.xml">
- <Link>Properties\ImpromptuInterface.MVVM.MetaData.xml</Link>
- </Content>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\ImpromptuInterface.Silverlight\ImpromptuInterface %28Silverlight%29.csproj">
- <Project>{9181A92F-9A17-45A3-BBDB-EAC085A901A0}</Project>
- <Name>ImpromptuInterface %28Silverlight%29</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <None Include="sn.snk" />
- </ItemGroup>
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
- <ProjectExtensions>
- <VisualStudio>
- <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
- <SilverlightProjectProperties />
- </FlavorProperties>
- </VisualStudio>
- </ProjectExtensions>
- <PropertyGroup>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
- <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{56215C8D-85AE-4FCB-BD33-89E6ABBA407B}</ProjectGuid>
+ <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ImpromptuInterface.MVVM</RootNamespace>
+ <AssemblyName>ImpromptuInterface.MVVM</AssemblyName>
+ <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
+ <SilverlightApplication>false</SilverlightApplication>
+ <ValidateXaml>true</ValidateXaml>
+ <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\impromptu-interface.stable\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <!-- This property group is only here to support building this project using the
+ MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
+ to set the TargetFrameworkVersion to v3.5 -->
+ <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>Bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>Bin\Release</OutputPath>
+ <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>Bin\Release\ImpromptuInterface.MVVM.XML</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>sn.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ </Reference>
+ <Reference Include="mscorlib" />
+ <Reference Include="System.ComponentModel.Composition, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="System.Windows" />
+ <Reference Include="system" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Net" />
+ <Reference Include="System.Windows.Browser" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\ImpromptuInterface.MVVM\Properties\AssemblyInfo.cs">
+ <Link>Properties\AssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\DialogBox.cs">
+ <Link>src\DialogBox.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Event.cs">
+ <Link>src\Event.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\FireOnChange.cs">
+ <Link>src\FireOnChange.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\IContainer.cs">
+ <Link>src\IContainer.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuBindingList.cs">
+ <Link>src\ImpromptuBindingList.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuCommandBinder.cs">
+ <Link>src\ImpromptuCommandBinder.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuRelayCommand.cs">
+ <Link>src\ImpromptuRelayCommand.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuToString.cs">
+ <Link>src\ImpromptuToString.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuViewModel-Nested.cs">
+ <Link>src\ImpromptuViewModel-Nested.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuViewModel.cs">
+ <Link>src\ImpromptuViewModel.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuWindowBuilder.cs">
+ <Link>src\ImpromptuWindowBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\IoC.cs">
+ <Link>src\IoC.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ISetupViewModel.cs">
+ <Link>src\ISetupViewModel.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\Container.cs">
+ <Link>src\MEF\Container.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\ViewAttribute.cs">
+ <Link>src\MEF\ViewAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\ViewModelAttribute.cs">
+ <Link>src\MEF\ViewModelAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Ninject\Container.cs">
+ <Link>src\Ninject\Container.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Ninject\Extensions.cs">
+ <Link>src\Ninject\Extensions.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Runtime.cs">
+ <Link>src\Runtime.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\TinyIoC\Container.cs">
+ <Link>src\TinyIoC\Container.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Unity\Container.cs">
+ <Link>src\Unity\Container.cs</Link>
+ </Compile>
+ <Compile Include="src\Support.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\NuGetBuild\MVVM\ImpromptuInterface.MVVM.MetaData.xml">
+ <Link>Properties\ImpromptuInterface.MVVM.MetaData.xml</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\ImpromptuInterface.Silverlight\ImpromptuInterface %28Silverlight%29.csproj">
+ <Project>{9181A92F-9A17-45A3-BBDB-EAC085A901A0}</Project>
+ <Name>ImpromptuInterface %28Silverlight%29</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="sn.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
+ <SilverlightProjectProperties />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <PropertyGroup>
+ <PostBuildEvent>
+ </PostBuildEvent>
+ </PropertyGroup>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
34 ImpromptuInterface.MVVM.Silverlight/src/Support.cs
@@ -1,17 +1,17 @@
-using System;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-
-namespace ImpromptuInterface.MVVM
-{
-#if SILVERLIGHT
- public interface IBindingList{ }
-#endif
-}
+using System;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace ImpromptuInterface.MVVM
+{
+#if SILVERLIGHT
+ public interface IBindingList{ }
+#endif
+}
View
336 ImpromptuInterface.MVVM.Silverlight5/ImpromptuInterface.MVVM (Silverlight5).csproj
@@ -1,169 +1,169 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.50727</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{4D6515F6-A10B-4EA8-A9E3-7C621DEB0D73}</ProjectGuid>
- <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>ImpromptuInterface.MVVM</RootNamespace>
- <AssemblyName>ImpromptuInterface.MVVM</AssemblyName>
- <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
- <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
- <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
- <SilverlightApplication>false</SilverlightApplication>
- <ValidateXaml>true</ValidateXaml>
- <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\impromptuinterface\</SolutionDir>
- <RestorePackages>true</RestorePackages>
- </PropertyGroup>
- <!-- This property group is only here to support building this project using the
- MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
- to set the TargetFrameworkVersion to v3.5 -->
- <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>Bin\Debug</OutputPath>
- <DefineConstants>TRACE;DEBUG;SILVERLIGHT SILVERLIGHT5</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>Bin\Release</OutputPath>
- <DefineConstants>TRACE;SILVERLIGHT SILVERLIGHT5</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <DocumentationFile>Bin\Release\ImpromptuInterface.MVVM.XML</DocumentationFile>
- </PropertyGroup>
- <PropertyGroup>
- <SignAssembly>true</SignAssembly>
- </PropertyGroup>
- <PropertyGroup>
- <AssemblyOriginatorKeyFile>sn.snk</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.CSharp, Version=5.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="mscorlib" />
- <Reference Include="System.ComponentModel.Composition, Version=5.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="System.Windows" />
- <Reference Include="system" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Net" />
- <Reference Include="System.Windows.Browser" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\ImpromptuInterface.MVVM.Silverlight\src\Support.cs">
- <Link>src\Support.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\Properties\AssemblyInfo.cs">
- <Link>Properties\AssemblyInfo.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\DialogBox.cs">
- <Link>DialogBox.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Event.cs">
- <Link>Event.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\FireOnChange.cs">
- <Link>FireOnChange.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\IContainer.cs">
- <Link>IContainer.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuBindingList.cs">
- <Link>ImpromptuBindingList.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuCommandBinder.cs">
- <Link>ImpromptuCommandBinder.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuRelayCommand.cs">
- <Link>ImpromptuRelayCommand.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuToString.cs">
- <Link>ImpromptuToString.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuViewModel-Nested.cs">
- <Link>ImpromptuViewModel-Nested.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuViewModel.cs">
- <Link>ImpromptuViewModel.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuWindowBuilder.cs">
- <Link>ImpromptuWindowBuilder.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\IoC.cs">
- <Link>IoC.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\ISetupViewModel.cs">
- <Link>ISetupViewModel.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\Container.cs">
- <Link>src\MEF\Container.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\ViewAttribute.cs">
- <Link>src\MEF\ViewAttribute.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\ViewModelAttribute.cs">
- <Link>src\MEF\ViewModelAttribute.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Ninject\Container.cs">
- <Link>src\Ninject\Container.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Ninject\Extensions.cs">
- <Link>src\Ninject\Extensions.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Runtime.cs">
- <Link>Runtime.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\TinyIoC\Container.cs">
- <Link>src\TinyIoc\Container.cs</Link>
- </Compile>
- <Compile Include="..\ImpromptuInterface.MVVM\src\Unity\Container.cs">
- <Link>src\Unity\Container.cs</Link>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <Content Include="..\NuGetBuild\MVVM\ImpromptuInterface.MVVM.MetaData.xml">
- <Link>ImpromptuInterface.MVVM.MetaData.xml</Link>
- </Content>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\ImpromptuInterface.Silverlight5\ImpromptuInterface %28Silverlight5%29.csproj">
- <Project>{EC1B3513-CB1E-4796-899F-125FC05B2F41}</Project>
- <Name>ImpromptuInterface %28Silverlight5%29</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <None Include="sn.snk" />
- </ItemGroup>
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
- <ProjectExtensions>
- <VisualStudio>
- <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
- <SilverlightProjectProperties />
- </FlavorProperties>
- </VisualStudio>
- </ProjectExtensions>
- <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{4D6515F6-A10B-4EA8-A9E3-7C621DEB0D73}</ProjectGuid>
+ <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ImpromptuInterface.MVVM</RootNamespace>
+ <AssemblyName>ImpromptuInterface.MVVM</AssemblyName>
+ <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
+ <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
+ <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
+ <SilverlightApplication>false</SilverlightApplication>
+ <ValidateXaml>true</ValidateXaml>
+ <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\impromptuinterface\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <!-- This property group is only here to support building this project using the
+ MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
+ to set the TargetFrameworkVersion to v3.5 -->
+ <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>Bin\Debug</OutputPath>
+ <DefineConstants>TRACE;DEBUG;SILVERLIGHT SILVERLIGHT5</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>Bin\Release</OutputPath>
+ <DefineConstants>TRACE;SILVERLIGHT SILVERLIGHT5</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>Bin\Release\ImpromptuInterface.MVVM.XML</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>sn.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.CSharp, Version=5.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="mscorlib" />
+ <Reference Include="System.ComponentModel.Composition, Version=5.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="System.Windows" />
+ <Reference Include="system" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Net" />
+ <Reference Include="System.Windows.Browser" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\ImpromptuInterface.MVVM.Silverlight\src\Support.cs">
+ <Link>src\Support.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\Properties\AssemblyInfo.cs">
+ <Link>Properties\AssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\DialogBox.cs">
+ <Link>DialogBox.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Event.cs">
+ <Link>Event.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\FireOnChange.cs">
+ <Link>FireOnChange.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\IContainer.cs">
+ <Link>IContainer.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuBindingList.cs">
+ <Link>ImpromptuBindingList.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuCommandBinder.cs">
+ <Link>ImpromptuCommandBinder.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuRelayCommand.cs">
+ <Link>ImpromptuRelayCommand.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuToString.cs">
+ <Link>ImpromptuToString.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuViewModel-Nested.cs">
+ <Link>ImpromptuViewModel-Nested.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuViewModel.cs">
+ <Link>ImpromptuViewModel.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ImpromptuWindowBuilder.cs">
+ <Link>ImpromptuWindowBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\IoC.cs">
+ <Link>IoC.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\ISetupViewModel.cs">
+ <Link>ISetupViewModel.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\Container.cs">
+ <Link>src\MEF\Container.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\ViewAttribute.cs">
+ <Link>src\MEF\ViewAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\MEF\ViewModelAttribute.cs">
+ <Link>src\MEF\ViewModelAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Ninject\Container.cs">
+ <Link>src\Ninject\Container.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Ninject\Extensions.cs">
+ <Link>src\Ninject\Extensions.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Runtime.cs">
+ <Link>Runtime.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\TinyIoC\Container.cs">
+ <Link>src\TinyIoc\Container.cs</Link>
+ </Compile>
+ <Compile Include="..\ImpromptuInterface.MVVM\src\Unity\Container.cs">
+ <Link>src\Unity\Container.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\NuGetBuild\MVVM\ImpromptuInterface.MVVM.MetaData.xml">
+ <Link>ImpromptuInterface.MVVM.MetaData.xml</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\ImpromptuInterface.Silverlight5\ImpromptuInterface %28Silverlight5%29.csproj">
+ <Project>{EC1B3513-CB1E-4796-899F-125FC05B2F41}</Project>
+ <Name>ImpromptuInterface %28Silverlight5%29</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="sn.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
+ <SilverlightProjectProperties />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
206 ImpromptuInterface.MVVM/ImpromptuInterface.MVVM.csproj
@@ -1,104 +1,104 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{D6AFD960-23A5-4EB0-9EEE-33AEC422B1CB}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>ImpromptuInterface.MVVM</RootNamespace>
- <AssemblyName>ImpromptuInterface.MVVM</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\impromptu-interface.stable\</SolutionDir>
- <RestorePackages>true</RestorePackages>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <DocumentationFile>bin\Release\ImpromptuInterface.MVVM.XML</DocumentationFile>
- </PropertyGroup>
- <PropertyGroup>
- <SignAssembly>true</SignAssembly>
- </PropertyGroup>
- <PropertyGroup>
- <AssemblyOriginatorKeyFile>sn.snk</AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="PresentationCore" />
- <Reference Include="PresentationFramework" />
- <Reference Include="System" />
- <Reference Include="System.ComponentModel.Composition" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xaml" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="WindowsBase" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="src\DialogBox.cs" />
- <Compile Include="src\Event.cs" />
- <Compile Include="src\FireOnChange.cs" />
- <Compile Include="src\IContainer.cs" />
- <Compile Include="src\ImpromptuBindingList.cs" />
- <Compile Include="src\ImpromptuRelayCommand.cs" />
- <Compile Include="src\ImpromptuToString.cs" />
- <Compile Include="src\ImpromptuViewModel-Nested.cs" />
- <Compile Include="src\ImpromptuViewModel.cs" />
- <Compile Include="src\ImpromptuWindowBuilder.cs" />
- <Compile Include="src\ImpromptuCommandBinder.cs" />
- <Compile Include="src\IoC.cs" />
- <Compile Include="src\ISetupViewModel.cs" />
- <Compile Include="src\MEF\Container.cs" />
- <Compile Include="src\MEF\ViewAttribute.cs" />
- <Compile Include="src\MEF\ViewModelAttribute.cs" />
- <Compile Include="src\Ninject\Container.cs" />
- <Compile Include="src\Ninject\Extensions.cs" />
- <Compile Include="src\Runtime.cs" />
- <Compile Include="src\TinyIoC\Container.cs" />
- <Compile Include="src\Unity\Container.cs" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="..\NuGetBuild\MVVM\ImpromptuInterface.MVVM.MetaData.xml">
- <Link>Properties\ImpromptuInterface.MVVM.MetaData.xml</Link>
- <SubType>Designer</SubType>
- </Content>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\ImpromptuInterface\ImpromptuInterface.csproj">
- <Project>{DAB7C056-660A-4153-8FF2-B80A41310AD7}</Project>
- <Name>ImpromptuInterface</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <None Include="sn.snk" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{D6AFD960-23A5-4EB0-9EEE-33AEC422B1CB}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ImpromptuInterface.MVVM</RootNamespace>
+ <AssemblyName>ImpromptuInterface.MVVM</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\impromptu-interface.stable\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Release\ImpromptuInterface.MVVM.XML</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>sn.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="PresentationCore" />
+ <Reference Include="PresentationFramework" />
+ <Reference Include="System" />
+ <Reference Include="System.ComponentModel.Composition" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xaml" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="WindowsBase" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="src\DialogBox.cs" />
+ <Compile Include="src\Event.cs" />
+ <Compile Include="src\FireOnChange.cs" />
+ <Compile Include="src\IContainer.cs" />
+ <Compile Include="src\ImpromptuBindingList.cs" />
+ <Compile Include="src\ImpromptuRelayCommand.cs" />
+ <Compile Include="src\ImpromptuToString.cs" />
+ <Compile Include="src\ImpromptuViewModel-Nested.cs" />
+ <Compile Include="src\ImpromptuViewModel.cs" />
+ <Compile Include="src\ImpromptuWindowBuilder.cs" />
+ <Compile Include="src\ImpromptuCommandBinder.cs" />
+ <Compile Include="src\IoC.cs" />
+ <Compile Include="src\ISetupViewModel.cs" />
+ <Compile Include="src\MEF\Container.cs" />
+ <Compile Include="src\MEF\ViewAttribute.cs" />
+ <Compile Include="src\MEF\ViewModelAttribute.cs" />
+ <Compile Include="src\Ninject\Container.cs" />
+ <Compile Include="src\Ninject\Extensions.cs" />
+ <Compile Include="src\Runtime.cs" />
+ <Compile Include="src\TinyIoC\Container.cs" />
+ <Compile Include="src\Unity\Container.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\NuGetBuild\MVVM\ImpromptuInterface.MVVM.MetaData.xml">
+ <Link>Properties\ImpromptuInterface.MVVM.MetaData.xml</Link>
+ <SubType>Designer</SubType>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\ImpromptuInterface\ImpromptuInterface.csproj">
+ <Project>{DAB7C056-660A-4153-8FF2-B80A41310AD7}</Project>
+ <Name>ImpromptuInterface</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="sn.snk" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
</Project>
View
94 ImpromptuInterface.MVVM/Properties/AssemblyInfo.cs
@@ -1,48 +1,48 @@
-using System;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-
-
-#if SILVERLIGHT
-[assembly: AssemblyTitle("ImpromptuInterface.MVVM (Silverlight)")]
-#else
-[assembly: AssemblyTitle("ImpromptuInterface.MVVM")]
-#endif
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Ekon Benefits")]
-[assembly: AssemblyProduct("ImpromptuInterface.MVVM")]
-[assembly: AssemblyCopyright("Copyright © Ekon Benefits 2011")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-[assembly: CLSCompliant(true)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("770f9380-29e4-45f2-b042-e11e704fb38e")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-#if SILVERLIGHT
-[assembly: AssemblyVersion("4.0.6.0")]
-#else
-[assembly: AssemblyVersion("4.0.7.*")]
+using System;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+
+
+#if SILVERLIGHT
+[assembly: AssemblyTitle("ImpromptuInterface.MVVM (Silverlight)")]
+#else
+[assembly: AssemblyTitle("ImpromptuInterface.MVVM")]
+#endif
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Ekon Benefits")]
+[assembly: AssemblyProduct("ImpromptuInterface.MVVM")]
+[assembly: AssemblyCopyright("Copyright © Ekon Benefits 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+[assembly: CLSCompliant(true)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("770f9380-29e4-45f2-b042-e11e704fb38e")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+#if SILVERLIGHT
+[assembly: AssemblyVersion("4.0.6.0")]
+#else
+[assembly: AssemblyVersion("4.0.7.*")]
#endif
View
104 ImpromptuInterface.MVVM/src/DialogBox.cs
@@ -1,52 +1,52 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-
-namespace ImpromptuInterface.MVVM
-{
- public class DialogBox
- {
-
-#if !SILVERLIGHT
-
- public MessageBoxOptions Options { get; set; }
-
- public MessageBoxResult DefaultResult { get; set; }
-
- public MessageBoxImage Icon { get; set; }
-#endif
-
- public MessageBoxButton Button { get; set; }
-
- public string Caption { get; set; }
-
- public string MessageBoxText { get; set; }
-
- public bool? ShowDialog(Window owner =null)
- {
- MessageBoxResult tResult;
- if(owner ==null)
- {
- tResult = MessageBox.Show(MessageBoxText, Caption, Button
-#if !SILVERLIGHT
- , Icon, DefaultResult, Options
-#endif
- );
- }else
- {
- tResult = MessageBox.Show(
-#if !SILVERLIGHT