Exemple #1
0
 void AddNewFormPart()
 {
     SearchFormPart part = new SearchFormPart();
     if (searchFormParts.Count == 0)
         part.FirstLine = true;
     this.searchFormParts.Add(part);
     this.Controls.Add(part);
     LayoutEverything();
 }
Exemple #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.buttonSearch = new System.Windows.Forms.Button();
     this.buttonCancel = new System.Windows.Forms.Button();
     this.searchFormPart = new SearchFormPart();
     this.searchFormPart1 = new SearchFormPart();
     this.searchFormPart2 = new SearchFormPart();
     this.buttonReset = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // buttonSearch
     //
     this.buttonSearch.Location = new System.Drawing.Point(488, 88);
     this.buttonSearch.Name = "buttonSearch";
     this.buttonSearch.TabIndex = 4;
     this.buttonSearch.Text = "Search";
     this.buttonSearch.Click += new System.EventHandler(this.buttonSearch_Click);
     this.AcceptButton = buttonSearch;
     //
     // buttonCancel
     //
     this.buttonCancel.Location = new System.Drawing.Point(408, 88);
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.TabIndex = 4;
     this.buttonCancel.Text = "Cancel";
     this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
     //
     // searchFormPart
     //
     this.searchFormPart.Location = new System.Drawing.Point(8, 8);
     this.searchFormPart.Name = "searchFormPart";
     this.searchFormPart.Size = new System.Drawing.Size(652, 24);
     this.searchFormPart.TabIndex = 0;
     //
     // searchFormPart1
     //
     this.searchFormPart1.Location = new System.Drawing.Point(8, 32);
     this.searchFormPart1.Name = "searchFormPart1";
     this.searchFormPart1.Size = new System.Drawing.Size(652, 24);
     this.searchFormPart1.TabIndex = 0;
     //
     // searchFormPart2
     //
     this.searchFormPart2.Location = new System.Drawing.Point(8, 56);
     this.searchFormPart2.Name = "searchFormPart2";
     this.searchFormPart2.Size = new System.Drawing.Size(652, 24);
     this.searchFormPart2.TabIndex = 0;
     //
     // buttonReset
     //
     this.buttonReset.Location = new System.Drawing.Point(8, 88);
     this.buttonReset.Name = "buttonReset";
     this.buttonReset.TabIndex = 5;
     this.buttonReset.Text = "Reset";
     this.buttonReset.Click += new System.EventHandler(this.buttonReset_Click);
     //
     // SearchForm
     //
     this.AutoScaleDimensions = new SizeF(5, 13);
     this.ClientSize = new System.Drawing.Size(670, 120);
     this.ControlBox = false;
     this.Controls.Add(this.buttonReset);
     this.Controls.Add(this.searchFormPart);
     this.Controls.Add(this.buttonSearch);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.searchFormPart1);
     this.Controls.Add(this.searchFormPart2);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name = "SearchForm";
     ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Search For Snippets";
     this.Load += new System.EventHandler(this.SearchForm_Load);
     this.ResumeLayout(false);
 }