- Timestamp:
- 05/04/17 17:19:35 (8 years ago)
- 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 50 50 } 51 51 } 52 } 53 catch (Exception ex) { 52 } catch (Exception ex) { 54 53 infoRichTextBox.Text = "Error: Could not load help text. Exception is: " + Environment.NewLine + ex.ToString(); 55 54 } -
branches/PersistenceReintegration/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs
r14185 r14927 61 61 set { 62 62 if (InvokeRequired) { 63 Action<string> action = delegate (string s) { this.Title = s; };63 Action<string> action = delegate (string s) { this.Title = s; }; 64 64 Invoke(action, value); 65 65 } else … … 72 72 set { 73 73 if (InvokeRequired) { 74 Action<Cursor> action = delegate (Cursor c) { this.Cursor = c; };74 Action<Cursor> action = delegate (Cursor c) { this.Cursor = c; }; 75 75 Invoke(action, value); 76 76 } else … … 95 95 if (this.activeView != value) { 96 96 if (InvokeRequired) { 97 Action<IView> action = delegate (IView activeView) { this.ActiveView = activeView; };97 Action<IView> action = delegate (IView activeView) { this.ActiveView = activeView; }; 98 98 Invoke(action, value); 99 99 } else { … … 230 230 } 231 231 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 { 233 233 if (content == null) throw new ArgumentNullException("Content cannot be null."); 234 234 if (!reuseExistingView) return ShowContent(content); … … 560 560 try { 561 561 ((IActionUserInterfaceItem)item.Tag).Execute(); 562 } 563 catch (Exception ex) { 562 } catch (Exception ex) { 564 563 ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm, ex); 565 564 } -
branches/PersistenceReintegration/HeuristicLab.MainForm.WindowsForms/3.3/Views/View.cs
r14553 r14927 45 45 set { 46 46 if (InvokeRequired) { 47 Action<string> action = delegate (string s) { this.Caption = s; };47 Action<string> action = delegate (string s) { this.Caption = s; }; 48 48 Invoke(action, value); 49 49 } else { … … 61 61 set { 62 62 if (InvokeRequired) { 63 Action<bool> action = delegate (bool b) { this.ReadOnly = b; };63 Action<bool> action = delegate (bool b) { this.ReadOnly = b; }; 64 64 Invoke(action, value); 65 65 } else {
Note: See TracChangeset
for help on using the changeset viewer.