diff --git a/TravelCompany/TravelCompany/FormTravel.Designer.cs b/TravelCompany/TravelCompany/FormTravel.Designer.cs index 8b31201..a00c18c 100644 --- a/TravelCompany/TravelCompany/FormTravel.Designer.cs +++ b/TravelCompany/TravelCompany/FormTravel.Designer.cs @@ -33,9 +33,6 @@ this.groupBoxConditions = new System.Windows.Forms.GroupBox(); this.buttonRef = new System.Windows.Forms.Button(); this.dataGridView = new System.Windows.Forms.DataGridView(); - this.ConditionId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ConditionName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Cost = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.buttonDel = new System.Windows.Forms.Button(); this.buttonAdd = new System.Windows.Forms.Button(); this.buttonUpd = new System.Windows.Forms.Button(); @@ -43,6 +40,9 @@ this.textBoxPrice = new System.Windows.Forms.TextBox(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonSave = new System.Windows.Forms.Button(); + this.ConditionId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ConditionName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Cost = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.groupBoxConditions.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); this.SuspendLayout(); @@ -91,6 +91,7 @@ // // dataGridView // + this.dataGridView.AllowUserToAddRows = false; this.dataGridView.BackgroundColor = System.Drawing.Color.White; this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { @@ -107,31 +108,6 @@ this.dataGridView.Size = new System.Drawing.Size(624, 317); this.dataGridView.TabIndex = 0; // - // ConditionId - // - this.ConditionId.HeaderText = "ID"; - this.ConditionId.MinimumWidth = 8; - this.ConditionId.Name = "ConditionId"; - this.ConditionId.ReadOnly = true; - this.ConditionId.Visible = false; - this.ConditionId.Width = 150; - // - // ConditionName - // - this.ConditionName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.ConditionName.HeaderText = "Название"; - this.ConditionName.MinimumWidth = 8; - this.ConditionName.Name = "ConditionName"; - this.ConditionName.ReadOnly = true; - // - // Cost - // - this.Cost.HeaderText = "Цена"; - this.Cost.MinimumWidth = 8; - this.Cost.Name = "Cost"; - this.Cost.ReadOnly = true; - this.Cost.Width = 150; - // // buttonDel // this.buttonDel.Location = new System.Drawing.Point(662, 208); @@ -197,6 +173,31 @@ this.buttonSave.UseVisualStyleBackColor = true; this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); // + // ConditionId + // + this.ConditionId.HeaderText = "ID"; + this.ConditionId.MinimumWidth = 8; + this.ConditionId.Name = "ConditionId"; + this.ConditionId.ReadOnly = true; + this.ConditionId.Visible = false; + this.ConditionId.Width = 150; + // + // ConditionName + // + this.ConditionName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.ConditionName.HeaderText = "Название"; + this.ConditionName.MinimumWidth = 8; + this.ConditionName.Name = "ConditionName"; + this.ConditionName.ReadOnly = true; + // + // Cost + // + this.Cost.HeaderText = "Количество"; + this.Cost.MinimumWidth = 8; + this.Cost.Name = "Cost"; + this.Cost.ReadOnly = true; + this.Cost.Width = 150; + // // FormTravel // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 25F);