Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/09 11:11:16 (15 years ago)
Author:
mkommend
Message:

added SingleDocumentMainForm
reenabled designer support for MainForms (ticket #716)

File:
1 edited

Legend:

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

    r2267 r2268  
    3131namespace HeuristicLab.MainForm {
    3232  public partial class MultipleDocumentMainForm : MainFormBase {
     33    public MultipleDocumentMainForm()
     34      : base() {
     35      InitializeComponent();
     36    }
     37
    3338    public MultipleDocumentMainForm(Type userInterfaceType)
    3439      : base(userInterfaceType) {
    3540      InitializeComponent();
    36       this.IsMdiContainer = true;
     41    }
     42
     43    protected override void CreateGUI() {
     44      base.CreateGUI();
     45      ToolStripMenuItem window = new ToolStripMenuItem("Windows");
     46      base.menuStrip.MdiWindowListItem = window;
     47      base.menuStrip.Items.Add(window);
    3748    }
    3849
     
    4152      else {
    4253        base.ShowView(view);
    43         MultipleDocumentForm form = new MultipleDocumentForm(view);
     54        DocumentForm form = new DocumentForm(view);
    4455        form.Activated += new EventHandler(MultipleDocumentFormActivated);
    4556        form.FormClosing += new FormClosingEventHandler(view.FormClosing);
     
    5364
    5465    private void MultipleDocumentFormActivated(object sender, EventArgs e) {
    55       base.ActiveView = ((MultipleDocumentForm)sender).View;
    56       base.StatusStripText = ((MultipleDocumentForm)sender).View.Caption;
     66      base.ActiveView = ((DocumentForm)sender).View;
     67      base.StatusStripText = ((DocumentForm)sender).View.Caption;
    5768    }
    5869
    5970    private void MultipleDocumentFormClosed(object sender, FormClosedEventArgs e) {
    60       MultipleDocumentForm form = (MultipleDocumentForm)sender;
     71      DocumentForm form = (DocumentForm)sender;
    6172      views.Remove(form.View);
    6273      if (views.Count == 0)
Note: See TracChangeset for help on using the changeset viewer.