mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-20 04:03:44 +00:00
289 lines
16 KiB
C#
289 lines
16 KiB
C#
//
|
|
// (C) Copyright 2003-2010 by Autodesk, Inc.
|
|
//
|
|
// Permission to use, copy, modify, and distribute this software in
|
|
// object code form for any purpose and without fee is hereby granted,
|
|
// provided that the above copyright notice appears in all copies and
|
|
// that both that copyright notice and the limited warranty and
|
|
// restricted rights notice below appear in all supporting
|
|
// documentation.
|
|
//
|
|
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
|
|
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
|
|
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
|
|
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
|
|
// UNINTERRUPTED OR ERROR FREE.
|
|
//
|
|
// Use, duplication, or disclosure by the U.S. Government is subject to
|
|
// restrictions set forth in FAR 52.227-19 (Commercial Computer
|
|
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
|
|
// (Rights in Technical Data and Computer Software), as applicable.
|
|
//
|
|
|
|
namespace Revit.SDK.Samples.Materials.CS
|
|
{
|
|
partial class MaterialsForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.materialsListBox = new System.Windows.Forms.ListBox();
|
|
this.categoryComboBox = new System.Windows.Forms.ComboBox();
|
|
this.parametersPropertyGrid = new System.Windows.Forms.PropertyGrid();
|
|
this.duplicateButton = new System.Windows.Forms.Button();
|
|
this.okButton = new System.Windows.Forms.Button();
|
|
this.cancelButton = new System.Windows.Forms.Button();
|
|
this.materialInfoTabControl = new System.Windows.Forms.TabControl();
|
|
this.parametersTabPage = new System.Windows.Forms.TabPage();
|
|
this.renderAppearanceTabPage = new System.Windows.Forms.TabPage();
|
|
this.replaceButton = new System.Windows.Forms.Button();
|
|
this.renderAppearancePropertyGrid = new System.Windows.Forms.PropertyGrid();
|
|
this.renderAppearanceNameTextBox = new System.Windows.Forms.TextBox();
|
|
this.materialsGroupBox = new System.Windows.Forms.GroupBox();
|
|
this.typeLabel = new System.Windows.Forms.Label();
|
|
this.materialInfoTabControl.SuspendLayout();
|
|
this.parametersTabPage.SuspendLayout();
|
|
this.renderAppearanceTabPage.SuspendLayout();
|
|
this.materialsGroupBox.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// materialsListBox
|
|
//
|
|
this.materialsListBox.FormattingEnabled = true;
|
|
this.materialsListBox.HorizontalScrollbar = true;
|
|
this.materialsListBox.ItemHeight = 16;
|
|
this.materialsListBox.Location = new System.Drawing.Point(12, 73);
|
|
this.materialsListBox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
|
|
this.materialsListBox.Name = "materialsListBox";
|
|
this.materialsListBox.Size = new System.Drawing.Size(270, 276);
|
|
this.materialsListBox.Sorted = true;
|
|
this.materialsListBox.TabIndex = 2;
|
|
this.materialsListBox.SelectedIndexChanged += new System.EventHandler(this.materialsListBox_SelectedIndexChanged);
|
|
//
|
|
// categoryComboBox
|
|
//
|
|
this.categoryComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.categoryComboBox.FormattingEnabled = true;
|
|
this.categoryComboBox.Items.AddRange(new object[] {
|
|
"All",
|
|
"MaterialConcrete",
|
|
"MaterialGeneric",
|
|
"MaterialOther",
|
|
"MaterialSteel",
|
|
"MaterialWood"});
|
|
this.categoryComboBox.Location = new System.Drawing.Point(81, 37);
|
|
this.categoryComboBox.Margin = new System.Windows.Forms.Padding(4, 11, 4, 4);
|
|
this.categoryComboBox.Name = "categoryComboBox";
|
|
this.categoryComboBox.Size = new System.Drawing.Size(201, 24);
|
|
this.categoryComboBox.TabIndex = 1;
|
|
this.categoryComboBox.SelectionChangeCommitted += new System.EventHandler(this.categoryComboBox_SelectionChangeCommitted);
|
|
this.categoryComboBox.SelectedIndexChanged += new System.EventHandler(this.categoryComboBox_SelectedIndexChanged);
|
|
//
|
|
// parametersPropertyGrid
|
|
//
|
|
this.parametersPropertyGrid.Location = new System.Drawing.Point(0, 0);
|
|
this.parametersPropertyGrid.Margin = new System.Windows.Forms.Padding(4, 4, 7, 4);
|
|
this.parametersPropertyGrid.Name = "parametersPropertyGrid";
|
|
this.parametersPropertyGrid.Size = new System.Drawing.Size(409, 356);
|
|
this.parametersPropertyGrid.TabIndex = 4;
|
|
//
|
|
// duplicateButton
|
|
//
|
|
this.duplicateButton.FlatAppearance.BorderSize = 0;
|
|
this.duplicateButton.Image = global::Materials.Properties.Resources.duplicate;
|
|
this.duplicateButton.Location = new System.Drawing.Point(10, 360);
|
|
this.duplicateButton.Margin = new System.Windows.Forms.Padding(4);
|
|
this.duplicateButton.Name = "duplicateButton";
|
|
this.duplicateButton.Size = new System.Drawing.Size(32, 30);
|
|
this.duplicateButton.TabIndex = 3;
|
|
this.duplicateButton.UseVisualStyleBackColor = true;
|
|
this.duplicateButton.Click += new System.EventHandler(this.duplicateButton_Click);
|
|
//
|
|
// okButton
|
|
//
|
|
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.okButton.Location = new System.Drawing.Point(556, 434);
|
|
this.okButton.Margin = new System.Windows.Forms.Padding(4, 7, 4, 7);
|
|
this.okButton.Name = "okButton";
|
|
this.okButton.Size = new System.Drawing.Size(88, 28);
|
|
this.okButton.TabIndex = 5;
|
|
this.okButton.Text = "&OK";
|
|
this.okButton.UseVisualStyleBackColor = true;
|
|
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
|
//
|
|
// cancelButton
|
|
//
|
|
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.cancelButton.Location = new System.Drawing.Point(652, 434);
|
|
this.cancelButton.Margin = new System.Windows.Forms.Padding(4, 7, 7, 7);
|
|
this.cancelButton.Name = "cancelButton";
|
|
this.cancelButton.Size = new System.Drawing.Size(88, 28);
|
|
this.cancelButton.TabIndex = 6;
|
|
this.cancelButton.Text = "&Cancel";
|
|
this.cancelButton.UseVisualStyleBackColor = true;
|
|
//
|
|
// materialInfoTabControl
|
|
//
|
|
this.materialInfoTabControl.Controls.Add(this.parametersTabPage);
|
|
this.materialInfoTabControl.Controls.Add(this.renderAppearanceTabPage);
|
|
this.materialInfoTabControl.Location = new System.Drawing.Point(320, 16);
|
|
this.materialInfoTabControl.Margin = new System.Windows.Forms.Padding(7);
|
|
this.materialInfoTabControl.Name = "materialInfoTabControl";
|
|
this.materialInfoTabControl.SelectedIndex = 0;
|
|
this.materialInfoTabControl.Size = new System.Drawing.Size(422, 404);
|
|
this.materialInfoTabControl.TabIndex = 7;
|
|
//
|
|
// parametersTabPage
|
|
//
|
|
this.parametersTabPage.BackColor = System.Drawing.Color.Transparent;
|
|
this.parametersTabPage.Controls.Add(this.parametersPropertyGrid);
|
|
this.parametersTabPage.Location = new System.Drawing.Point(4, 25);
|
|
this.parametersTabPage.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.parametersTabPage.Name = "parametersTabPage";
|
|
this.parametersTabPage.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.parametersTabPage.Size = new System.Drawing.Size(414, 375);
|
|
this.parametersTabPage.TabIndex = 0;
|
|
this.parametersTabPage.Text = "Physical";
|
|
//
|
|
// renderAppearanceTabPage
|
|
//
|
|
this.renderAppearanceTabPage.BackColor = System.Drawing.SystemColors.Control;
|
|
this.renderAppearanceTabPage.Controls.Add(this.replaceButton);
|
|
this.renderAppearanceTabPage.Controls.Add(this.renderAppearancePropertyGrid);
|
|
this.renderAppearanceTabPage.Controls.Add(this.renderAppearanceNameTextBox);
|
|
this.renderAppearanceTabPage.Location = new System.Drawing.Point(4, 25);
|
|
this.renderAppearanceTabPage.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.renderAppearanceTabPage.Name = "renderAppearanceTabPage";
|
|
this.renderAppearanceTabPage.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.renderAppearanceTabPage.Size = new System.Drawing.Size(412, 359);
|
|
this.renderAppearanceTabPage.TabIndex = 1;
|
|
this.renderAppearanceTabPage.Text = "Render Appearance";
|
|
//
|
|
// replaceButton
|
|
//
|
|
this.replaceButton.Location = new System.Drawing.Point(305, 7);
|
|
this.replaceButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.replaceButton.Name = "replaceButton";
|
|
this.replaceButton.Size = new System.Drawing.Size(100, 28);
|
|
this.replaceButton.TabIndex = 1;
|
|
this.replaceButton.Text = "Replace...";
|
|
this.replaceButton.UseVisualStyleBackColor = true;
|
|
this.replaceButton.Click += new System.EventHandler(this.replaceButton_Click);
|
|
//
|
|
// renderAppearancePropertyGrid
|
|
//
|
|
this.renderAppearancePropertyGrid.Location = new System.Drawing.Point(0, 43);
|
|
this.renderAppearancePropertyGrid.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.renderAppearancePropertyGrid.Name = "renderAppearancePropertyGrid";
|
|
this.renderAppearancePropertyGrid.Size = new System.Drawing.Size(409, 313);
|
|
this.renderAppearancePropertyGrid.TabIndex = 0;
|
|
//
|
|
// renderAppearanceNameTextBox
|
|
//
|
|
this.renderAppearanceNameTextBox.BackColor = System.Drawing.SystemColors.Control;
|
|
this.renderAppearanceNameTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
this.renderAppearanceNameTextBox.Location = new System.Drawing.Point(8, 14);
|
|
this.renderAppearanceNameTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.renderAppearanceNameTextBox.Name = "renderAppearanceNameTextBox";
|
|
this.renderAppearanceNameTextBox.ReadOnly = true;
|
|
this.renderAppearanceNameTextBox.Size = new System.Drawing.Size(285, 15);
|
|
this.renderAppearanceNameTextBox.TabIndex = 2;
|
|
//
|
|
// materialsGroupBox
|
|
//
|
|
this.materialsGroupBox.Controls.Add(this.typeLabel);
|
|
this.materialsGroupBox.Controls.Add(this.materialsListBox);
|
|
this.materialsGroupBox.Controls.Add(this.duplicateButton);
|
|
this.materialsGroupBox.Controls.Add(this.categoryComboBox);
|
|
this.materialsGroupBox.Location = new System.Drawing.Point(14, 16);
|
|
this.materialsGroupBox.Margin = new System.Windows.Forms.Padding(7);
|
|
this.materialsGroupBox.Name = "materialsGroupBox";
|
|
this.materialsGroupBox.Padding = new System.Windows.Forms.Padding(6, 11, 6, 6);
|
|
this.materialsGroupBox.Size = new System.Drawing.Size(292, 400);
|
|
this.materialsGroupBox.TabIndex = 8;
|
|
this.materialsGroupBox.TabStop = false;
|
|
this.materialsGroupBox.Text = "Material name";
|
|
this.materialsGroupBox.Enter += new System.EventHandler(this.groupBox1_Enter);
|
|
//
|
|
// typeLabel
|
|
//
|
|
this.typeLabel.AutoSize = true;
|
|
this.typeLabel.Location = new System.Drawing.Point(33, 40);
|
|
this.typeLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.typeLabel.Name = "typeLabel";
|
|
this.typeLabel.Size = new System.Drawing.Size(40, 17);
|
|
this.typeLabel.TabIndex = 5;
|
|
this.typeLabel.Text = "Type";
|
|
//
|
|
// MaterialsForm
|
|
//
|
|
this.AcceptButton = this.okButton;
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.CancelButton = this.cancelButton;
|
|
this.ClientSize = new System.Drawing.Size(756, 478);
|
|
this.Controls.Add(this.materialInfoTabControl);
|
|
this.Controls.Add(this.okButton);
|
|
this.Controls.Add(this.cancelButton);
|
|
this.Controls.Add(this.materialsGroupBox);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "MaterialsForm";
|
|
this.Padding = new System.Windows.Forms.Padding(7);
|
|
this.ShowInTaskbar = false;
|
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
|
|
this.Text = "Materials";
|
|
this.Load += new System.EventHandler(this.MaterialsForm_Load);
|
|
this.materialInfoTabControl.ResumeLayout(false);
|
|
this.parametersTabPage.ResumeLayout(false);
|
|
this.renderAppearanceTabPage.ResumeLayout(false);
|
|
this.renderAppearanceTabPage.PerformLayout();
|
|
this.materialsGroupBox.ResumeLayout(false);
|
|
this.materialsGroupBox.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.ListBox materialsListBox;
|
|
private System.Windows.Forms.ComboBox categoryComboBox;
|
|
private System.Windows.Forms.PropertyGrid parametersPropertyGrid;
|
|
private System.Windows.Forms.Button duplicateButton;
|
|
private System.Windows.Forms.Button okButton;
|
|
private System.Windows.Forms.Button cancelButton;
|
|
private System.Windows.Forms.TabControl materialInfoTabControl;
|
|
private System.Windows.Forms.TabPage renderAppearanceTabPage;
|
|
private System.Windows.Forms.TabPage parametersTabPage;
|
|
private System.Windows.Forms.Button replaceButton;
|
|
private System.Windows.Forms.PropertyGrid renderAppearancePropertyGrid;
|
|
private System.Windows.Forms.TextBox renderAppearanceNameTextBox;
|
|
private System.Windows.Forms.GroupBox materialsGroupBox;
|
|
private System.Windows.Forms.Label typeLabel;
|
|
}
|
|
} |