- Timestamp:
- 10/18/09 01:08:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/EditorView.cs
r2433 r2437 8 8 using System.Windows.Forms; 9 9 using HeuristicLab.MainForm.WindowsForms; 10 using System.Collections; 10 11 11 12 namespace HeuristicLab.MainForm.Test { 12 13 [DefaultView] 13 public partial class EditorView : ViewBase< object>,IView<string> {14 public partial class EditorView : ViewBase<IList> { 14 15 public EditorView() { 15 16 InitializeComponent(); … … 17 18 18 19 private void ChangeStateButton_Click(object sender, EventArgs e) { 19 IEnumerable<Type> views = MainFormManager.GetViewTypes(typeof( string));20 IEnumerable<Type> views = MainFormManager.GetViewTypes(typeof(ArrayList)); 20 21 views.ToString(); 21 IEnumerable<Type> views1 = MainFormManager.GetViewTypes(typeof( object));22 IEnumerable<Type> views1 = MainFormManager.GetViewTypes(typeof(IList)); 22 23 views1.ToString(); 23 Type def1 = MainFormManager.GetDefaultViewType(typeof(string)); 24 //IEnumerable<Type> views2 = MainFormManager.GetViewTypes(typeof(object)); 25 //views2.ToString(); 26 Type def2 = MainFormManager.GetDefaultViewType(typeof(IList)); 27 def2.ToString(); 28 Type def1 = MainFormManager.GetDefaultViewType(typeof(ArrayList)); 24 29 def1.ToString(); 25 Type def2 = MainFormManager.GetDefaultViewType(typeof(object)); 26 def2.ToString(); 27 28 IView<string> v = MainFormManager.CreateDefaultView<string>("x"); 29 v.Caption = "lala"; 30 //Type def3 = MainFormManager.GetDefaultViewType(typeof(object)); 31 //def3.ToString(); 30 32 31 33 this.OnChanged();
Note: See TracChangeset
for help on using the changeset viewer.