Changeset 17260 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman.Views/3.3
- Timestamp:
- 09/17/19 15:41:46 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman.Views/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman.Views/3.3/CoordinatesTSPDataView.cs
r17251 r17260 28 28 29 29 namespace HeuristicLab.Problems.TravelingSalesman.Views { 30 [View(" MatrixTSP Data View")]30 [View("Coordinates TSP Data View")] 31 31 [Content(typeof(CoordinatesTSPData), IsDefaultView = true)] 32 32 public partial class CoordinatesTSPDataView : NamedItemView { -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman.Views/3.3/EuclideanTSPDataView.Designer.cs
r17251 r17260 87 87 #endregion 88 88 89 pr ivateSystem.Windows.Forms.ComboBox roundingModeComboBox;90 pr ivateSystem.Windows.Forms.Label roundingModeLabel;89 protected System.Windows.Forms.ComboBox roundingModeComboBox; 90 protected System.Windows.Forms.Label roundingModeLabel; 91 91 } 92 92 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman.Views/3.3/MatrixTSPDataView.Designer.cs
r17251 r17260 166 166 #endregion 167 167 168 pr ivateData.Views.StringConvertibleMatrixView distanceMatrixView;169 pr ivateSystem.Windows.Forms.TabControl tabControl;170 pr ivateSystem.Windows.Forms.TabPage coordinatesTabPage;171 pr ivateSystem.Windows.Forms.SplitContainer coordinatesSplitContainer;172 pr ivateData.Views.StringConvertibleMatrixView coordinatesMatrixView;173 pr ivateSystem.Windows.Forms.TabPage distancesTabPage;174 pr ivateSystem.Windows.Forms.PictureBox coordinatesPictureBox;168 protected Data.Views.StringConvertibleMatrixView distanceMatrixView; 169 protected System.Windows.Forms.TabControl tabControl; 170 protected System.Windows.Forms.TabPage coordinatesTabPage; 171 protected System.Windows.Forms.SplitContainer coordinatesSplitContainer; 172 protected Data.Views.StringConvertibleMatrixView coordinatesMatrixView; 173 protected System.Windows.Forms.TabPage distancesTabPage; 174 protected System.Windows.Forms.PictureBox coordinatesPictureBox; 175 175 } 176 176 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman.Views/3.3/MatrixTSPDataView.cs
r17251 r17260 60 60 } 61 61 62 pr ivatevoid GenerateImage() {62 protected virtual void GenerateImage() { 63 63 if (coordinatesPictureBox.Width > 0 && coordinatesPictureBox.Height > 0) { 64 64 DoubleMatrix coordinates = Content?.DisplayCoordinates; -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman.Views/3.3/TSPSolutionView.Designer.cs
r17248 r17260 215 215 #endregion 216 216 217 pr ivateSystem.Windows.Forms.PictureBox pictureBox;218 pr ivateHeuristicLab.MainForm.WindowsForms.DragOverTabControl tabControl;219 pr ivateSystem.Windows.Forms.TabPage visualizationTabPage;220 pr ivateSystem.Windows.Forms.TabPage valueTabPage;221 pr ivateSystem.Windows.Forms.GroupBox tourGroupBox;222 pr ivateHeuristicLab.MainForm.WindowsForms.ViewHost tourViewHost;223 pr ivateSystem.Windows.Forms.SplitContainer splitContainer;224 pr ivateSystem.Windows.Forms.GroupBox qualityGroupBox;225 pr ivateHeuristicLab.MainForm.WindowsForms.ViewHost qualityViewHost;217 protected System.Windows.Forms.PictureBox pictureBox; 218 protected HeuristicLab.MainForm.WindowsForms.DragOverTabControl tabControl; 219 protected System.Windows.Forms.TabPage visualizationTabPage; 220 protected System.Windows.Forms.TabPage valueTabPage; 221 protected System.Windows.Forms.GroupBox tourGroupBox; 222 protected HeuristicLab.MainForm.WindowsForms.ViewHost tourViewHost; 223 protected System.Windows.Forms.SplitContainer splitContainer; 224 protected System.Windows.Forms.GroupBox qualityGroupBox; 225 protected HeuristicLab.MainForm.WindowsForms.ViewHost qualityViewHost; 226 226 227 227 -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman.Views/3.3/TSPSolutionView.cs
r17248 r17260 34 34 /// </summary> 35 35 [View("TSP Solution View")] 36 [Content(typeof( TSPSolution), true)]37 public sealedpartial class TSPSolutionView : ItemView {38 public new TSPSolution Content {39 get { return ( TSPSolution)base.Content; }36 [Content(typeof(ITSPSolution), true)] 37 public partial class TSPSolutionView : ItemView { 38 public new ITSPSolution Content { 39 get { return (ITSPSolution)base.Content; } 40 40 set { base.Content = value; } 41 41 } … … 77 77 } 78 78 79 pr ivatevoid GenerateImage() {79 protected virtual void GenerateImage() { 80 80 if ((pictureBox.Width > 0) && (pictureBox.Height > 0)) { 81 81 if (Content == null) { … … 130 130 } 131 131 132 pr ivatevoid ContentOnPropertyChanged(object sender, PropertyChangedEventArgs e) {132 protected virtual void ContentOnPropertyChanged(object sender, PropertyChangedEventArgs e) { 133 133 if (InvokeRequired) 134 134 Invoke((Action<object, PropertyChangedEventArgs>)ContentOnPropertyChanged, sender, e);
Note: See TracChangeset
for help on using the changeset viewer.