Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/02/09 16:40:16 (15 years ago)
Author:
mkommend
Message:

added check if MainFormBase is created during design mode (visual studio designer)
to suppress registering at the MainFormManager (ticket #771)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainFormBase.cs

    r2458 r2460  
    3838      this.views = new Dictionary<IView, Form>();
    3939      this.userInterfaceItems = new List<IUserInterfaceItem>();
    40       MainFormManager.RegisterMainForm(this);
     40      if (Site != null && !Site.DesignMode)
     41        MainFormManager.RegisterMainForm(this);
    4142    }
    4243
     
    146147            view.Changed += new EventHandler(item.ViewChanged);
    147148          return true;
    148         } else 
     149        } else
    149150          return false;
    150151      }
Note: See TracChangeset for help on using the changeset viewer.