Changeset 2434


Ignore:
Timestamp:
10/15/09 14:04:56 (13 years ago)
Author:
mkommend
Message:

registered GotFocus event on forms to activate corresponding views (ticket #771)

Location:
branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms/3.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms/3.2/DockingMainForm.cs

    r2426 r2434  
    5353          DockContent dockForm = new DockForm(view);
    5454          dockForm.Activated += new EventHandler(DockFormActivated);
     55          dockForm.GotFocus += new EventHandler(DockFormActivated);
    5556          dockForm.FormClosing += new FormClosingEventHandler(view.OnClosing);
    5657          dockForm.FormClosed += new FormClosedEventHandler(view.OnClosed);
     
    7677      ViewClosed(dockForm.View);
    7778      dockForm.Activated -= new EventHandler(DockFormActivated);
     79      dockForm.GotFocus -= new EventHandler(DockFormActivated);
    7880      dockForm.FormClosing -= new FormClosingEventHandler(dockForm.View.OnClosing);
    7981      dockForm.FormClosed -= new FormClosedEventHandler(dockForm.View.OnClosed);
  • branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms/3.2/MultipleDocumentMainForm.cs

    r2426 r2434  
    5959          DocumentForm form = new DocumentForm(view);
    6060          form.Activated += new EventHandler(MultipleDocumentFormActivated);
     61          form.GotFocus += new EventHandler(MultipleDocumentFormActivated);
    6162          form.FormClosing += new FormClosingEventHandler(view.OnClosing);
    6263          form.FormClosed += new FormClosedEventHandler(view.OnClosed);
     
    8788      ViewClosed(form.View);
    8889      form.Activated -= new EventHandler(MultipleDocumentFormActivated);
     90      form.GotFocus -= new EventHandler(MultipleDocumentFormActivated);
    8991      form.FormClosing -= new FormClosingEventHandler(form.View.OnClosing);
    9092      form.FormClosed -= new FormClosedEventHandler(form.View.OnClosed);
  • branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms/3.2/SingleDocumentMainForm.cs

    r2426 r2434  
    5454          form.ShowInTaskbar = true;
    5555          form.Activated += new EventHandler(DocumentFormActivated);
     56          form.GotFocus += new EventHandler(DocumentFormActivated);
    5657          form.FormClosing += new FormClosingEventHandler(view.OnClosing);
    5758          form.FormClosed += new FormClosedEventHandler(view.OnClosed);
     
    7778      ViewClosed(form.View);
    7879      form.Activated -= new EventHandler(DocumentFormActivated);
     80      form.GotFocus -= new EventHandler(DocumentFormActivated);
    7981      form.FormClosing -= new FormClosingEventHandler(form.View.OnClosing);
    8082      form.FormClosed -= new FormClosedEventHandler(form.View.OnClosed);
Note: See TracChangeset for help on using the changeset viewer.