123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- namespace SamplesCommon
- {
-
-
-
- public class SamplesPath : System.Windows.Forms.Form
- {
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.TextBox searchPathText;
-
-
-
- private System.ComponentModel.Container components = null;
- public SamplesPath()
- {
-
-
-
- InitializeComponent();
- this.Closed += new EventHandler(SamplesPath_Closed);
- }
-
-
-
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region Windows Form Designer generated code
-
-
-
-
- private void InitializeComponent()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SamplesPath));
- this.label1 = new System.Windows.Forms.Label();
- this.searchPathText = new System.Windows.Forms.TextBox();
- this.SuspendLayout();
-
-
-
- this.label1.Location = new System.Drawing.Point(16, 16);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(112, 23);
- this.label1.TabIndex = 0;
- this.label1.Text = "Enter a Search Path:";
- this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-
-
-
- this.searchPathText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.searchPathText.Location = new System.Drawing.Point(128, 16);
- this.searchPathText.Name = "searchPathText";
- this.searchPathText.Size = new System.Drawing.Size(232, 20);
- this.searchPathText.TabIndex = 1;
- this.searchPathText.Text = "";
-
-
-
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(376, 54);
- this.Controls.Add(this.searchPathText);
- this.Controls.Add(this.label1);
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "SamplesPath";
- this.Text = "Search Path";
- this.ResumeLayout(false);
- }
- #endregion
-
-
-
- public string searchPath {
- get {
- return this.searchPathText.Text;
- }
- set {
- this.searchPathText.Text = value;
- }
- }
-
-
-
-
-
- private void SamplesPath_Closed(object sender, EventArgs e) {
-
- this.Owner.Close();
- }
- }
- }
|