Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/11 01:47:47 (14 years ago)
Author:
swagner
Message:

#1324:

  • Added performance optimization in all other item collection views
  • Checked and refactored item event registration/deregistration
  • Enabled null items in item collection views
  • Moved non-default Dispose methods from designer files into user files
Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/DockForm.Designer.cs

    r3732 r5237  
    2626    /// </summary>
    2727    private System.ComponentModel.IContainer components = null;
    28 
    29     /// <summary>
    30     /// Clean up any resources being used.
    31     /// </summary>
    32     /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    33     protected override void Dispose(bool disposing) {
    34       if (View != null)
    35         View.CaptionChanged -= new System.EventHandler(View_CaptionChanged);
    36       if (disposing && (components != null)) {
    37         components.Dispose();
    38       }
    39       base.Dispose(disposing);
    40     }
    4128
    4229    #region Windows Form Designer generated code
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/DockForm.cs

    r4068 r5237  
    7373      }
    7474    }
     75
     76    protected override void Dispose(bool disposing) {
     77      if (View != null)
     78        View.CaptionChanged -= new System.EventHandler(View_CaptionChanged);
     79      if (disposing && (components != null)) {
     80        components.Dispose();
     81      }
     82      base.Dispose(disposing);
     83    }
     84
    7585    private IView view;
    7686    public IView View {
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/DocumentForm.Designer.cs

    r3732 r5237  
    2626    /// </summary>
    2727    private System.ComponentModel.IContainer components = null;
    28 
    29     /// <summary>
    30     /// Clean up any resources being used.
    31     /// </summary>
    32     /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    33     protected override void Dispose(bool disposing) {
    34       if (view != null)
    35         view.CaptionChanged -= new System.EventHandler(View_CaptionChanged);
    36       if (disposing && (components != null)) {
    37         components.Dispose();
    38       }
    39       base.Dispose(disposing);
    40     }
    4128
    4229    #region Windows Form Designer generated code
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/DocumentForm.cs

    r4068 r5237  
    5050    }
    5151
     52    protected override void Dispose(bool disposing) {
     53      if (view != null)
     54        view.CaptionChanged -= new System.EventHandler(View_CaptionChanged);
     55      if (disposing && (components != null)) {
     56        components.Dispose();
     57      }
     58      base.Dispose(disposing);
     59    }
     60
    5261    private void UpdateText() {
    5362      if (InvokeRequired)
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForm.cs

    r4234 r5237  
    430430    private void ToolStripItemClicked(object sender, EventArgs e) {
    431431      System.Windows.Forms.ToolStripItem item = (System.Windows.Forms.ToolStripItem)sender;
    432       ((IActionUserInterfaceItem)item.Tag).Execute();
     432      try {
     433        ((IActionUserInterfaceItem)item.Tag).Execute();
     434      }
     435      catch (Exception ex) {
     436        ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm, ex);
     437      }
    433438    }
    434439    #endregion
Note: See TracChangeset for help on using the changeset viewer.