Changeset 2464
- Timestamp:
- 11/03/09 17:10:15 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.Test/3.2/EditorView.cs
r2458 r2464 12 12 namespace HeuristicLab.MainForm.Test { 13 13 [DefaultViewAttribute] 14 public partial class EditorView : ViewBase <ArrayList> {14 public partial class EditorView : ViewBase, IView<ArrayList> { 15 15 public EditorView() { 16 16 InitializeComponent(); … … 45 45 } 46 46 } 47 48 #region IView<ArrayList> Members 49 50 public void View(ArrayList item) { 51 throw new NotImplementedException(); 52 } 53 54 public ArrayList Item { 55 get { throw new NotImplementedException(); } 56 } 57 58 #endregion 47 59 } 48 60 } -
trunk/sources/HeuristicLab.MainForm.Test/3.2/FormView.cs
r2458 r2464 12 12 namespace HeuristicLab.MainForm.Test { 13 13 [DefaultViewAttribute] 14 public partial class FormView1 : ViewBase <ICollection> {14 public partial class FormView1 : ViewBase,IView<ICollection> { 15 15 private int[] array; 16 16 public FormView1() { 17 17 InitializeComponent(); 18 18 } 19 20 #region IView<ICollection> Members 21 22 public void View(ICollection item) { 23 throw new NotImplementedException(); 24 } 25 26 public ICollection Item { 27 get { throw new NotImplementedException(); } 28 } 29 30 #endregion 19 31 } 20 32 } -
trunk/sources/HeuristicLab.MainForm.Test/3.2/FormView2.cs
r2458 r2464 10 10 11 11 namespace HeuristicLab.MainForm.Test { 12 public partial class FormView2 : ViewBase <IEnumerable> {12 public partial class FormView2 : ViewBase, IView<IEnumerable> { 13 13 private int[] array; 14 14 public FormView2() { 15 15 InitializeComponent(); 16 16 } 17 18 #region IView<IEnumerable> Members 19 20 public void View(IEnumerable item) { 21 throw new NotImplementedException(); 22 } 23 24 public IEnumerable Item { 25 get { throw new NotImplementedException(); } 26 } 27 28 #endregion 17 29 } 18 30 } -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ViewBase.cs
r2462 r2464 64 64 } 65 65 } 66 67 public class ViewBase<T> : ViewBase, IView<T> {68 private T item;69 public T Item {70 get { return this.item; }71 protected set { this.item = value; }72 }73 74 public virtual void View(T item) {75 }76 }77 66 }
Note: See TracChangeset
for help on using the changeset viewer.