diff options
author | Antonius Riha <antoniusriha@gmail.com> | 2012-11-22 13:02:47 +0400 |
---|---|---|
committer | Antonius Riha <antoniusriha@gmail.com> | 2012-11-22 13:02:47 +0400 |
commit | 0059c53ce78ef55d59eea9ad81a9acda8bae7911 (patch) | |
tree | 8805a9a9c06de9aed559aa99b92b486c4b014a0b /mcs/class/WindowsBase | |
parent | d308d4f961a842640872ef527d4e253ac172523f (diff) |
[WindowsBase] Add IEditableCollectionViewAddNewItem.cs
Diffstat (limited to 'mcs/class/WindowsBase')
4 files changed, 41 insertions, 0 deletions
diff --git a/mcs/class/WindowsBase/System.ComponentModel/IEditableCollectionViewAddNewItem.cs b/mcs/class/WindowsBase/System.ComponentModel/IEditableCollectionViewAddNewItem.cs new file mode 100644 index 00000000000..07f9c248d86 --- /dev/null +++ b/mcs/class/WindowsBase/System.ComponentModel/IEditableCollectionViewAddNewItem.cs @@ -0,0 +1,38 @@ +// +// IEditableCollectionViewAddNewItem.cs +// +// Author: +// Antonius Riha <antoniusriha@gmail.com> +// +// Copyright (c) 2012 Antonius Riha +// +// 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. + +#if NET_4_0 + +namespace System.ComponentModel +{ + public interface IEditableCollectionViewAddNewItem : IEditableCollectionView + { + bool CanAddNewItem { get; } + object AddNewItem (object newItem); + } +} + +#endif diff --git a/mcs/class/WindowsBase/WindowsBase-net_4_0.csproj b/mcs/class/WindowsBase/WindowsBase-net_4_0.csproj index 26a0197f53b..59c81c5be7b 100644 --- a/mcs/class/WindowsBase/WindowsBase-net_4_0.csproj +++ b/mcs/class/WindowsBase/WindowsBase-net_4_0.csproj @@ -58,6 +58,7 @@ <Compile Include="System.ComponentModel\ICollectionView.cs" /> <Compile Include="System.ComponentModel\ICollectionViewFactory.cs" /> <Compile Include="System.ComponentModel\IEditableCollectionView.cs" /> + <Compile Include="System.ComponentModel\IEditableCollectionViewAddNewItem.cs" /> <Compile Include="System.ComponentModel\IItemProperties.cs" /> <Compile Include="System.ComponentModel\ItemPropertyInfo.cs" /> <Compile Include="System.ComponentModel\NewItemPlaceholderPosition.cs" /> diff --git a/mcs/class/WindowsBase/WindowsBase-net_4_5.csproj b/mcs/class/WindowsBase/WindowsBase-net_4_5.csproj index 73fa0f8da88..78b5ba275de 100644 --- a/mcs/class/WindowsBase/WindowsBase-net_4_5.csproj +++ b/mcs/class/WindowsBase/WindowsBase-net_4_5.csproj @@ -58,6 +58,7 @@ <Compile Include="System.ComponentModel\ICollectionView.cs" /> <Compile Include="System.ComponentModel\ICollectionViewFactory.cs" /> <Compile Include="System.ComponentModel\IEditableCollectionView.cs" /> + <Compile Include="System.ComponentModel\IEditableCollectionViewAddNewItem.cs" /> <Compile Include="System.ComponentModel\IItemProperties.cs" /> <Compile Include="System.ComponentModel\ItemPropertyInfo.cs" /> <Compile Include="System.ComponentModel\NewItemPlaceholderPosition.cs" /> diff --git a/mcs/class/WindowsBase/WindowsBase.dll.sources b/mcs/class/WindowsBase/WindowsBase.dll.sources index 2e76f6e8a42..f0a6e5c2ab6 100644 --- a/mcs/class/WindowsBase/WindowsBase.dll.sources +++ b/mcs/class/WindowsBase/WindowsBase.dll.sources @@ -14,6 +14,7 @@ System.ComponentModel/GroupDescription.cs System.ComponentModel/ICollectionView.cs System.ComponentModel/ICollectionViewFactory.cs System.ComponentModel/IEditableCollectionView.cs +System.ComponentModel/IEditableCollectionViewAddNewItem.cs System.ComponentModel/IItemProperties.cs System.ComponentModel/ItemPropertyInfo.cs System.ComponentModel/NewItemPlaceholderPosition.cs |