- Timestamp:
- 11/28/11 13:47:28 (13 years ago)
- Location:
- branches/RegressionBenchmarks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks
- Property svn:ignore
-
old new 4 4 *.suo 5 5 *.vsp 6 Doxygen 6 7 Google.ProtocolBuffers-0.9.1.dll 7 8 HeuristicLab 3.3.5.1.ReSharper.user 8 9 HeuristicLab 3.3.6.0.ReSharper.user 9 10 HeuristicLab.4.5.resharper.user 11 HeuristicLab.ExtLibs.6.0.ReSharper.user 10 12 HeuristicLab.resharper.user 11 13 ProtoGen.exe … … 16 18 bin 17 19 protoc.exe 18 HeuristicLab.ExtLibs.6.0.ReSharper.user19 Doxygen
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/RegressionBenchmarks/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs
r6935 r7085 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.Reflection;26 25 using System.Windows.Forms; 27 26 using HeuristicLab.Common; … … 34 33 private int appStartingCursors; 35 34 private int waitingCursors; 36 private string title;37 35 38 36 protected MainForm() … … 177 175 } 178 176 179 protected virtual void OnInitialized(EventArgs e) { 180 AssemblyFileVersionAttribute version = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true). 181 Cast<AssemblyFileVersionAttribute>().FirstOrDefault(); 182 title = "HeuristicLab Optimizer"; 183 if (version != null) title += " " + version.Version; 184 Title = title; 185 } 177 protected virtual void OnInitialized(EventArgs e) { } 178 179 public virtual void UpdateTitle() { } 186 180 187 181 private void FormActivated(object sender, EventArgs e) { … … 498 492 } 499 493 #endregion 500 501 public virtual void UpdateTitle() {502 if (InvokeRequired)503 Invoke(new Action(UpdateTitle));504 else {505 IContentView activeView = ActiveView as IContentView;506 if ((activeView != null) && (activeView.Content != null) && (activeView.Content is IStorableContent)) {507 IStorableContent content = (IStorableContent)activeView.Content;508 Title = title + " [" + (string.IsNullOrEmpty(content.Filename) ? "Unsaved" : content.Filename) + "]";509 } else {510 Title = title;511 }512 }513 }514 494 } 515 495 }
Note: See TracChangeset
for help on using the changeset viewer.