-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4dc9b98
Showing
25 changed files
with
211 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.vs | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.30413.136 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpBindingHelpers", "CSharpBindingHelpers\CSharpBindingHelpers.csproj", "{25D42186-BA20-4EB7-AB6C-C5A7923DA8D7}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{25D42186-BA20-4EB7-AB6C-C5A7923DA8D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{25D42186-BA20-4EB7-AB6C-C5A7923DA8D7}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{25D42186-BA20-4EB7-AB6C-C5A7923DA8D7}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{25D42186-BA20-4EB7-AB6C-C5A7923DA8D7}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {3A563242-1BF9-4091-BAAD-634B2F17AFAC} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{25D42186-BA20-4EB7-AB6C-C5A7923DA8D7}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>CSharpBindingHelpers</RootNamespace> | ||
<AssemblyName>CSharpBindingHelpers</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
</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> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="NotifyPropertyChanged.cs" /> | ||
<Compile Include="RelayCommand.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace CSharpBindingHelpers | ||
{ | ||
public class NotifyPropertyChanged : INotifyPropertyChanged | ||
{ | ||
public event PropertyChangedEventHandler PropertyChanged; | ||
|
||
protected void OnPropertyChanged([CallerMemberName] string name = null) | ||
{ | ||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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. | ||
[assembly: AssemblyTitle("BindingHelpers")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("BindingHelpers")] | ||
[assembly: AssemblyCopyright("Copyright © 2020")] | ||
[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)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("25d42186-ba20-4eb7-ab6c-c5a7923da8d7")] | ||
|
||
// 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.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Windows.Input; | ||
|
||
namespace CSharpBindingHelpers | ||
{ | ||
public class RelayCommand : ICommand | ||
{ | ||
private Action<object> execute; | ||
private Func<object, bool> canExecute; | ||
|
||
public event EventHandler CanExecuteChanged | ||
{ | ||
add { CommandManager.RequerySuggested += value; } | ||
remove { CommandManager.RequerySuggested -= value; } | ||
} | ||
|
||
public RelayCommand(Action<object> execute, Func<object, bool> canExecute = null) | ||
{ | ||
this.execute = execute; | ||
this.canExecute = canExecute; | ||
} | ||
|
||
public bool CanExecute(object parameter) | ||
{ | ||
return this.canExecute == null || this.canExecute(parameter); | ||
} | ||
|
||
public void Execute(object parameter) | ||
{ | ||
this.execute(parameter); | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
CSharpBindingHelpers/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// <autogenerated /> | ||
using System; | ||
using System.Reflection; | ||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] |
Binary file added
BIN
+9.58 KB
CSharpBindingHelpers/obj/Debug/BindingHelpers.csprojAssemblyReference.cache
Binary file not shown.
1 change: 1 addition & 0 deletions
1
CSharpBindingHelpers/obj/Debug/CSharpBindingHelpers.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
adcb5a5c2c273d24114392b973c5e231c94d7a9b |
6 changes: 6 additions & 0 deletions
6
CSharpBindingHelpers/obj/Debug/CSharpBindingHelpers.csproj.FileListAbsolute.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\bin\Debug\CSharpBindingHelpers.dll | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\bin\Debug\CSharpBindingHelpers.pdb | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\obj\Debug\CSharpBindingHelpers.csprojAssemblyReference.cache | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\obj\Debug\CSharpBindingHelpers.csproj.CoreCompileInputs.cache | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\obj\Debug\CSharpBindingHelpers.dll | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\obj\Debug\CSharpBindingHelpers.pdb |
Binary file added
BIN
+424 Bytes
CSharpBindingHelpers/obj/Debug/CSharpBindingHelpers.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.67 KB
CSharpBindingHelpers/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
CSharpBindingHelpers/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// <autogenerated /> | ||
using System; | ||
using System.Reflection; | ||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] |
1 change: 1 addition & 0 deletions
1
CSharpBindingHelpers/obj/Release/BindingHelpers.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
084f6bce0e5521ca804d13a1b9ec1340f90cef75 |
5 changes: 5 additions & 0 deletions
5
CSharpBindingHelpers/obj/Release/BindingHelpers.csproj.FileListAbsolute.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
C:\Projects\C#\libraries\BindingHelpers\BindingHelpers\bin\Release\BindingHelpers.dll | ||
C:\Projects\C#\libraries\BindingHelpers\BindingHelpers\bin\Release\BindingHelpers.pdb | ||
C:\Projects\C#\libraries\BindingHelpers\BindingHelpers\obj\Release\BindingHelpers.csproj.CoreCompileInputs.cache | ||
C:\Projects\C#\libraries\BindingHelpers\BindingHelpers\obj\Release\BindingHelpers.dll | ||
C:\Projects\C#\libraries\BindingHelpers\BindingHelpers\obj\Release\BindingHelpers.pdb |
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions
1
CSharpBindingHelpers/obj/Release/CSharpBindingHelpers.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
084f6bce0e5521ca804d13a1b9ec1340f90cef75 |
5 changes: 5 additions & 0 deletions
5
CSharpBindingHelpers/obj/Release/CSharpBindingHelpers.csproj.FileListAbsolute.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\bin\Release\CSharpBindingHelpers.dll | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\bin\Release\CSharpBindingHelpers.pdb | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\obj\Release\CSharpBindingHelpers.csproj.CoreCompileInputs.cache | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\obj\Release\CSharpBindingHelpers.dll | ||
C:\Projects\C#\libraries\CSharpBindingHelpers\CSharpBindingHelpers\obj\Release\CSharpBindingHelpers.pdb |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Alvaro Quero | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# CSharpBindingHelpers | ||
C# library with NotifyChanged and RelayCommand classes |