Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2469


Ignore:
Timestamp:
11/05/09 13:48:22 (14 years ago)
Author:
mkommend
Message:

moved registering of mainform from ctor to mainform.load event, because designmode property is not set in the ctor (ticket #771)

Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
Files:
2 edited

Legend:

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

    r2458 r2469  
    4848      this.toolStrip = new System.Windows.Forms.ToolStrip();
    4949      this.statusStrip = new System.Windows.Forms.StatusStrip();
    50       this.statusStrip.SuspendLayout();
    5150      this.SuspendLayout();
    5251      //
     
    8584      this.MainMenuStrip = this.menuStrip;
    8685      this.Name = "MainFormBase";
    87       this.statusStrip.ResumeLayout(false);
    88       this.statusStrip.PerformLayout();
     86      this.Load += new System.EventHandler(this.MainFormBase_Load);
    8987      this.ResumeLayout(false);
    9088      this.PerformLayout();
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainFormBase.cs

    r2463 r2469  
    3838      this.views = new Dictionary<IView, Form>();
    3939      this.userInterfaceItems = new List<IUserInterfaceItem>();
    40       if (!DesignMode)
    41         MainFormManager.RegisterMainForm(this);
    4240    }
    4341
     
    4644      this.userInterfaceItemType = userInterfaceItemType;
    4745      CreateGUI();
     46    }
     47
     48    private void MainFormBase_Load(object sender, EventArgs e) {
     49      if (!DesignMode)
     50        MainFormManager.RegisterMainForm(this);
    4851    }
    4952
Note: See TracChangeset for help on using the changeset viewer.