Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4642 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
6 changed files with 96 additions and 6 deletions
@ -0,0 +1,58 @@
@@ -0,0 +1,58 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace PythonBinding.Tests.Utils |
||||
{ |
||||
public class BarItem |
||||
{ |
||||
string text = String.Empty; |
||||
|
||||
public BarItem() |
||||
{ |
||||
} |
||||
|
||||
public BarItem(string text) |
||||
{ |
||||
this.text = text; |
||||
} |
||||
|
||||
public string Text { |
||||
get { return text; } |
||||
set { text = value; } |
||||
} |
||||
} |
||||
|
||||
public class BarItemCollection : Collection<BarItem> |
||||
{ |
||||
public BarItemCollection() |
||||
{ |
||||
} |
||||
|
||||
public void AddRange(BarItem[] items) |
||||
{ |
||||
foreach (BarItem item in items) { |
||||
Add(item); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public class BarItemCollectionParentComponent : Component |
||||
{ |
||||
BarItemCollection barItems = new BarItemCollection(); |
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] |
||||
public BarItemCollection ParentBarItems { |
||||
get { return barItems; } |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue