Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/21/09 14:18:29 (15 years ago)
Author:
mkommend
Message:

added possibility to programmatically close views (ticket #716)

File:
1 edited

Legend:

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

    r2297 r2305  
    6363    }
    6464
     65    public override void CloseView(IView view) {
     66      DocumentForm documentForm = this.MdiChildren.Cast<DocumentForm>().Where(df => df.View == view).Single();
     67      documentForm.Close();
     68    }
     69
    6570    private void MultipleDocumentFormActivated(object sender, EventArgs e) {
    6671      base.ActiveView = ((DocumentForm)sender).View;
Note: See TracChangeset for help on using the changeset viewer.