Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/02/13 12:25:39 (11 years ago)
Author:
ascheibe
Message:

#2100 moved help system from View to ViewHost

Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Views/View.Designer.cs

    r9915 r9920  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.components = new System.ComponentModel.Container();
    48       this.helpLabel = new System.Windows.Forms.Label();
    49       this.helpToolTip = new System.Windows.Forms.ToolTip(this.components);
    5047      this.SuspendLayout();
    5148      //
    52       // helpLabel
     49      // ViewBase
    5350      //
    54       this.helpLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    55       this.helpLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Help;
    56       this.helpLabel.Location = new System.Drawing.Point(131, 0);
    57       this.helpLabel.Name = "helpLabel";
    58       this.helpLabel.Size = new System.Drawing.Size(16, 16);
    59       this.helpLabel.TabIndex = 0;
    60       this.helpToolTip.SetToolTip(this.helpLabel, "Double Click to Show Help");
    61       this.helpLabel.Visible = false;
    62       this.helpLabel.DoubleClick += new System.EventHandler(this.helpLabel_DoubleClick);
    63       //
    64       // View
    65       //
     51      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    6652      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    67       this.Controls.Add(this.helpLabel);
    68       this.Name = "View";
     53      this.Name = "ViewBase";
    6954      this.Load += new System.EventHandler(this.View_Load);
    7055      this.ResumeLayout(false);
     
    7358
    7459    #endregion
    75 
    76     protected System.Windows.Forms.Label helpLabel;
    77     protected System.Windows.Forms.ToolTip helpToolTip;
    78 
    7960  }
    8061}
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Views/View.cs

    r9915 r9920  
    3838      else
    3939        this.Caption = "View";
    40 
    41       if (ViewAttribute.HasHelpResourcePath((this.GetType())))
    42         helpLabel.Visible = true;
    4340    }
    4441
     
    264261        ((Control)this).ResumeRepaint(refresh);
    265262    }
    266 
    267     protected void helpLabel_DoubleClick(object sender, EventArgs e) {
    268       using (InfoBox dialog = new InfoBox("Help for " + ViewAttribute.GetViewName(this.GetType()), ViewAttribute.GetHelpResourcePath(this.GetType()), this)) {
    269         dialog.ShowDialog(this);
    270       }
    271     }
    272263  }
    273264}
Note: See TracChangeset for help on using the changeset viewer.