Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/07/10 14:36:22 (14 years ago)
Author:
mkommend
Message:
  • refactored ViewHost and various views to use fewer nested controls
  • added UnitTests for ContentViews to ensure proper using of the ContentAttribute
  • fixed some views which could not handle null as Content

(ticket #972)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.Designer.cs

    r3764 r4011  
    5050      this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView();
    5151      this.problemTabPage = new System.Windows.Forms.TabPage();
    52       this.problemPanel = new System.Windows.Forms.Panel();
    5352      this.problemViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
    5453      this.openProblemButton = new System.Windows.Forms.Button();
     
    6968      this.parametersTabPage.SuspendLayout();
    7069      this.problemTabPage.SuspendLayout();
    71       this.problemPanel.SuspendLayout();
    7270      this.resultsTabPage.SuspendLayout();
    7371      this.runsTabPage.SuspendLayout();
     
    123121      // problemTabPage
    124122      //
    125       this.problemTabPage.Controls.Add(this.problemPanel);
     123      this.problemTabPage.Controls.Add(this.problemViewHost);
    126124      this.problemTabPage.Controls.Add(this.openProblemButton);
    127125      this.problemTabPage.Controls.Add(this.newProblemButton);
     
    134132      this.problemTabPage.UseVisualStyleBackColor = true;
    135133      //
    136       // problemPanel
    137       //
    138       this.problemPanel.AllowDrop = true;
    139       this.problemPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    140                   | System.Windows.Forms.AnchorStyles.Left)
    141                   | System.Windows.Forms.AnchorStyles.Right)));
    142       this.problemPanel.Controls.Add(this.problemViewHost);
    143       this.problemPanel.Location = new System.Drawing.Point(6, 36);
    144       this.problemPanel.Name = "problemPanel";
    145       this.problemPanel.Size = new System.Drawing.Size(659, 332);
    146       this.problemPanel.TabIndex = 3;
    147       this.problemPanel.DragOver += new System.Windows.Forms.DragEventHandler(this.problemPanel_DragEnterOver);
    148       this.problemPanel.DragDrop += new System.Windows.Forms.DragEventHandler(this.problemPanel_DragDrop);
    149       this.problemPanel.DragEnter += new System.Windows.Forms.DragEventHandler(this.problemPanel_DragEnterOver);
    150       //
    151134      // problemViewHost
    152135      //
     136      this.problemViewHost.AllowDrop = true;
    153137      this.problemViewHost.Content = null;
    154       this.problemViewHost.Dock = System.Windows.Forms.DockStyle.Fill;
    155       this.problemViewHost.Location = new System.Drawing.Point(0, 0);
     138      this.problemViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     139                  | System.Windows.Forms.AnchorStyles.Left)
     140                  | System.Windows.Forms.AnchorStyles.Right)));
     141      this.problemViewHost.Location = new System.Drawing.Point(6, 36);
    156142      this.problemViewHost.Name = "problemViewHost";
    157143      this.problemViewHost.Size = new System.Drawing.Size(659, 332);
    158       this.problemViewHost.TabIndex = 0;
     144      this.problemViewHost.TabIndex = 3;
    159145      this.problemViewHost.ViewType = null;
     146      this.problemViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragEnterOver);
     147      this.problemViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragDrop);
     148      this.problemViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragEnterOver);
    160149      //
    161150      // openProblemButton
     
    327316      this.parametersTabPage.ResumeLayout(false);
    328317      this.problemTabPage.ResumeLayout(false);
    329       this.problemPanel.ResumeLayout(false);
    330318      this.resultsTabPage.ResumeLayout(false);
    331319      this.runsTabPage.ResumeLayout(false);
     
    355343    protected System.Windows.Forms.TabPage runsTabPage;
    356344    protected RunCollectionView runsView;
    357     protected System.Windows.Forms.Panel problemPanel;
    358 
    359345  }
    360346}
Note: See TracChangeset for help on using the changeset viewer.