Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (8 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

Location:
branches/PersistenceReintegration/HeuristicLab.MainForm.WindowsForms/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.MainForm.WindowsForms/3.3/Dialogs/InfoBox.cs

    r14185 r14927  
    5050          }
    5151        }
    52       }
    53       catch (Exception ex) {
     52      } catch (Exception ex) {
    5453        infoRichTextBox.Text = "Error: Could not load help text. Exception is: " + Environment.NewLine + ex.ToString();
    5554      }
  • branches/PersistenceReintegration/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs

    r14185 r14927  
    6161      set {
    6262        if (InvokeRequired) {
    63           Action<string> action = delegate(string s) { this.Title = s; };
     63          Action<string> action = delegate (string s) { this.Title = s; };
    6464          Invoke(action, value);
    6565        } else
     
    7272      set {
    7373        if (InvokeRequired) {
    74           Action<Cursor> action = delegate(Cursor c) { this.Cursor = c; };
     74          Action<Cursor> action = delegate (Cursor c) { this.Cursor = c; };
    7575          Invoke(action, value);
    7676        } else
     
    9595        if (this.activeView != value) {
    9696          if (InvokeRequired) {
    97             Action<IView> action = delegate(IView activeView) { this.ActiveView = activeView; };
     97            Action<IView> action = delegate (IView activeView) { this.ActiveView = activeView; };
    9898            Invoke(action, value);
    9999          } else {
     
    230230    }
    231231
    232     public IContentView ShowContent<T>(T content, bool reuseExistingView, IEqualityComparer<T> comparer = null) where T : class,IContent {
     232    public IContentView ShowContent<T>(T content, bool reuseExistingView, IEqualityComparer<T> comparer = null) where T : class, IContent {
    233233      if (content == null) throw new ArgumentNullException("Content cannot be null.");
    234234      if (!reuseExistingView) return ShowContent(content);
     
    560560      try {
    561561        ((IActionUserInterfaceItem)item.Tag).Execute();
    562       }
    563       catch (Exception ex) {
     562      } catch (Exception ex) {
    564563        ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm, ex);
    565564      }
  • branches/PersistenceReintegration/HeuristicLab.MainForm.WindowsForms/3.3/Views/View.cs

    r14553 r14927  
    4545      set {
    4646        if (InvokeRequired) {
    47           Action<string> action = delegate(string s) { this.Caption = s; };
     47          Action<string> action = delegate (string s) { this.Caption = s; };
    4848          Invoke(action, value);
    4949        } else {
     
    6161      set {
    6262        if (InvokeRequired) {
    63           Action<bool> action = delegate(bool b) { this.ReadOnly = b; };
     63          Action<bool> action = delegate (bool b) { this.ReadOnly = b; };
    6464          Invoke(action, value);
    6565        } else {
Note: See TracChangeset for help on using the changeset viewer.