- Timestamp:
- 09/17/19 15:41:46 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman/3.3/TSPSolution.cs
r17248 r17260 30 30 namespace HeuristicLab.Problems.TravelingSalesman { 31 31 [StorableType("f08a63d9-0b83-4944-9251-42925baeb872")] 32 public interface ITSPSolution : IItem {32 public interface ITSPSolution : IItem, INotifyPropertyChanged { 33 33 DoubleMatrix Coordinates { get; } 34 34 Permutation Tour { get; } … … 41 41 [Item("TSP Solution", "Represents a tour of a Traveling Salesman Problem given in path representation which can be visualized in the GUI.")] 42 42 [StorableType("38d1aac3-3047-40d9-bcf9-4b3ca0b9f95c")] 43 public sealed class TSPSolution : Item, ITSPSolution, INotifyPropertyChanged{43 public class TSPSolution : Item, ITSPSolution { 44 44 public static new Image StaticItemImage { 45 45 get { return HeuristicLab.Common.Resources.VSImageLibrary.Image; } … … 79 79 80 80 [StorableConstructor] 81 pr ivateTSPSolution(StorableConstructorFlag _) : base(_) { }82 pr ivateTSPSolution(TSPSolution original, Cloner cloner)81 protected TSPSolution(StorableConstructorFlag _) : base(_) { } 82 protected TSPSolution(TSPSolution original, Cloner cloner) 83 83 : base(original, cloner) { 84 84 this.coordinates = cloner.Clone(original.coordinates); … … 108 108 109 109 public event PropertyChangedEventHandler PropertyChanged; 110 pr ivatevoid OnPropertyChanged(string property) {110 protected void OnPropertyChanged(string property) { 111 111 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property)); 112 112 }
Note: See TracChangeset
for help on using the changeset viewer.