Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/11 14:16:21 (13 years ago)
Author:
svonolfe
Message:

Merged changes from trunk (#1561) into branch (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting.Views/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting.Views/3.4/HeuristicLab.Problems.VehicleRouting.Views-3.4.csproj

    r5867 r6607  
    197197      <Name>HeuristicLab.MainForm-3.3</Name>
    198198    </ProjectReference>
     199    <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
     200      <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project>
     201      <Name>HeuristicLab.Operators-3.3</Name>
     202    </ProjectReference>
    199203    <ProjectReference Include="..\..\HeuristicLab.Optimization.Views\3.3\HeuristicLab.Optimization.Views-3.3.csproj">
    200204      <Project>{662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}</Project>
  • branches/VRP/HeuristicLab.Problems.VehicleRouting.Views/3.4/VRPSolutionView.Designer.cs

    r5867 r6607  
    2929      this.tabPage2 = new System.Windows.Forms.TabPage();
    3030      this.tourGroupBox = new System.Windows.Forms.GroupBox();
    31       this.tourGridView = new System.Windows.Forms.DataGridView();
     31      this.valueTextBox = new System.Windows.Forms.TextBox();
    3232      this.tabControl1.SuspendLayout();
    3333      this.tabPage1.SuspendLayout();
    3434      this.tabPage2.SuspendLayout();
    3535      this.tourGroupBox.SuspendLayout();
    36       ((System.ComponentModel.ISupportInitialize)(this.tourGridView)).BeginInit();
    3736      this.SuspendLayout();
    3837      //
     
    8483      // tourGroupBox
    8584      //
    86       this.tourGroupBox.Controls.Add(this.tourGridView);
     85      this.tourGroupBox.Controls.Add(this.valueTextBox);
    8786      this.tourGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
    8887      this.tourGroupBox.Location = new System.Drawing.Point(3, 3);
     
    9392      this.tourGroupBox.Text = "Tour";
    9493      //
    95       // tourGridView
     94      // valueTextBox
    9695      //
    97       this.tourGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
    98       this.tourGridView.Dock = System.Windows.Forms.DockStyle.Fill;
    99       this.tourGridView.Location = new System.Drawing.Point(3, 16);
    100       this.tourGridView.Name = "tourGridView";
    101       this.tourGridView.Size = new System.Drawing.Size(448, 364);
    102       this.tourGridView.TabIndex = 0;
     96      this.valueTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
     97      this.valueTextBox.Location = new System.Drawing.Point(3, 16);
     98      this.valueTextBox.Multiline = true;
     99      this.valueTextBox.Name = "valueTextBox";
     100      this.valueTextBox.Size = new System.Drawing.Size(403, 507);
     101      this.valueTextBox.TabIndex = 0;
    103102      //
    104103      // VRPSolutionView
     
    112111      this.tabPage2.ResumeLayout(false);
    113112      this.tourGroupBox.ResumeLayout(false);
    114       ((System.ComponentModel.ISupportInitialize)(this.tourGridView)).EndInit();
    115113      this.ResumeLayout(false);
    116114
     
    124122    private System.Windows.Forms.TabPage tabPage2;
    125123    private System.Windows.Forms.GroupBox tourGroupBox;
    126     private System.Windows.Forms.DataGridView tourGridView;
     124    private System.Windows.Forms.TextBox valueTextBox;
    127125  }
    128126}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting.Views/3.4/VRPSolutionView.cs

    r4374 r6607  
    3232namespace HeuristicLab.Problems.VehicleRouting.Views {
    3333  [View("VRPSolution View")]
    34   [Content(typeof(VRPSolution), true)]
    35   public partial class VRPSolutionView : HeuristicLab.Core.Views.ItemView {
     34  [Content(typeof(VRPSolution), true)] 
     35  public partial class VRPSolutionView: HeuristicLab.Core.Views.ItemView {
    3636    public new VRPSolution Content {
    3737      get { return (VRPSolution)base.Content; }
    3838      set { base.Content = value; }
    39     }
     39    } 
    4040   
    4141    public VRPSolutionView() {
     
    9191
    9292    private void UpdateTourView() {
    93       tourGridView.Rows.Clear();
    94       tourGridView.ColumnCount = Content.ProblemInstance.Coordinates.Rows - 1;
     93      StringBuilder sb = new StringBuilder();
    9594
    9695      if (Content != null && Content.Solution != null) {
    9796        foreach (Tour tour in Content.Solution.GetTours()) {
    98           int row = tourGridView.Rows.Add();
    99           int cell = 0;
    10097          foreach (int city in tour.Stops) {
    101             tourGridView.Rows[row].Cells[cell].Value = city;
    102             cell++;
     98            sb.Append(city);
     99            sb.Append(" ");
    103100          }
     101          sb.AppendLine();
    104102        }
    105103      }
     104
     105      valueTextBox.Text = sb.ToString();
    106106    }
    107107  }
Note: See TracChangeset for help on using the changeset viewer.