Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/18/09 01:08:12 (15 years ago)
Author:
mkommend
Message:

implemented changes regarding detection of view types and default views as discussed with SWA (ticket #771)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/EditorView.cs

    r2433 r2437  
    88using System.Windows.Forms;
    99using HeuristicLab.MainForm.WindowsForms;
     10using System.Collections;
    1011
    1112namespace HeuristicLab.MainForm.Test {
    1213  [DefaultView]
    13   public partial class EditorView : ViewBase<object>,IView<string> {
     14  public partial class EditorView : ViewBase<IList> {
    1415    public EditorView() {
    1516      InitializeComponent();
     
    1718
    1819    private void ChangeStateButton_Click(object sender, EventArgs e) {
    19       IEnumerable<Type> views = MainFormManager.GetViewTypes(typeof(string));
     20      IEnumerable<Type> views = MainFormManager.GetViewTypes(typeof(ArrayList));
    2021      views.ToString();
    21       IEnumerable<Type> views1 = MainFormManager.GetViewTypes(typeof(object));
     22      IEnumerable<Type> views1 = MainFormManager.GetViewTypes(typeof(IList));
    2223      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));
    2429      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();
    3032
    3133      this.OnChanged();
Note: See TracChangeset for help on using the changeset viewer.