diff --git a/PlumbingRepair/PlumbingRepair/FormStore.Designer.cs b/PlumbingRepair/PlumbingRepair/FormStore.Designer.cs index 9f55ef9..62bf274 100644 --- a/PlumbingRepair/PlumbingRepair/FormStore.Designer.cs +++ b/PlumbingRepair/PlumbingRepair/FormStore.Designer.cs @@ -28,161 +28,171 @@ /// private void InitializeComponent() { - this.StoreNameLabel = new System.Windows.Forms.Label(); - this.StoreAdressLabel = new System.Windows.Forms.Label(); - this.OpeningDateLabel = new System.Windows.Forms.Label(); - this.NameTextBox = new System.Windows.Forms.TextBox(); - this.AdressTextBox = new System.Windows.Forms.TextBox(); - this.DataGridView = new System.Windows.Forms.DataGridView(); - this.WorkName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.WorkPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.WorkCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SaveButton = new System.Windows.Forms.Button(); - this.ButtonCancel = new System.Windows.Forms.Button(); - this.OpeningDatePicker = new System.Windows.Forms.DateTimePicker(); - this.VolumeNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.WorkMaxCountLable = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.DataGridView)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.VolumeNumericUpDown)).BeginInit(); - this.SuspendLayout(); + StoreNameLabel = new Label(); + StoreAdressLabel = new Label(); + OpeningDateLabel = new Label(); + NameTextBox = new TextBox(); + AdressTextBox = new TextBox(); + DataGridView = new DataGridView(); + WorkName = new DataGridViewTextBoxColumn(); + WorkPrice = new DataGridViewTextBoxColumn(); + WorkCount = new DataGridViewTextBoxColumn(); + SaveButton = new Button(); + ButtonCancel = new Button(); + OpeningDatePicker = new DateTimePicker(); + VolumeNumericUpDown = new NumericUpDown(); + WorkMaxCountLable = new Label(); + ((System.ComponentModel.ISupportInitialize)DataGridView).BeginInit(); + ((System.ComponentModel.ISupportInitialize)VolumeNumericUpDown).BeginInit(); + SuspendLayout(); // // StoreNameLabel // - this.StoreNameLabel.AutoSize = true; - this.StoreNameLabel.Location = new System.Drawing.Point(12, 9); - this.StoreNameLabel.Name = "StoreNameLabel"; - this.StoreNameLabel.Size = new System.Drawing.Size(119, 15); - this.StoreNameLabel.TabIndex = 0; - this.StoreNameLabel.Text = "Название магазина: "; + StoreNameLabel.AutoSize = true; + StoreNameLabel.Location = new Point(14, 12); + StoreNameLabel.Name = "StoreNameLabel"; + StoreNameLabel.Size = new Size(154, 20); + StoreNameLabel.TabIndex = 0; + StoreNameLabel.Text = "Название магазина: "; // // StoreAdressLabel // - this.StoreAdressLabel.AutoSize = true; - this.StoreAdressLabel.Location = new System.Drawing.Point(12, 40); - this.StoreAdressLabel.Name = "StoreAdressLabel"; - this.StoreAdressLabel.Size = new System.Drawing.Size(100, 15); - this.StoreAdressLabel.TabIndex = 1; - this.StoreAdressLabel.Text = "Адрес магазина: "; + StoreAdressLabel.AutoSize = true; + StoreAdressLabel.Location = new Point(14, 53); + StoreAdressLabel.Name = "StoreAdressLabel"; + StoreAdressLabel.Size = new Size(128, 20); + StoreAdressLabel.TabIndex = 1; + StoreAdressLabel.Text = "Адрес магазина: "; // // OpeningDateLabel // - this.OpeningDateLabel.AutoSize = true; - this.OpeningDateLabel.Location = new System.Drawing.Point(12, 72); - this.OpeningDateLabel.Name = "OpeningDateLabel"; - this.OpeningDateLabel.Size = new System.Drawing.Size(93, 15); - this.OpeningDateLabel.TabIndex = 2; - this.OpeningDateLabel.Text = "Дата открытия: "; + OpeningDateLabel.AutoSize = true; + OpeningDateLabel.Location = new Point(14, 96); + OpeningDateLabel.Name = "OpeningDateLabel"; + OpeningDateLabel.Size = new Size(117, 20); + OpeningDateLabel.TabIndex = 2; + OpeningDateLabel.Text = "Дата открытия: "; // // NameTextBox // - this.NameTextBox.Location = new System.Drawing.Point(137, 6); - this.NameTextBox.Name = "NameTextBox"; - this.NameTextBox.Size = new System.Drawing.Size(174, 23); - this.NameTextBox.TabIndex = 3; + NameTextBox.Location = new Point(157, 8); + NameTextBox.Margin = new Padding(3, 4, 3, 4); + NameTextBox.Name = "NameTextBox"; + NameTextBox.Size = new Size(198, 27); + NameTextBox.TabIndex = 3; // // AdressTextBox // - this.AdressTextBox.Location = new System.Drawing.Point(137, 37); - this.AdressTextBox.Name = "AdressTextBox"; - this.AdressTextBox.Size = new System.Drawing.Size(174, 23); - this.AdressTextBox.TabIndex = 4; + AdressTextBox.Location = new Point(157, 49); + AdressTextBox.Margin = new Padding(3, 4, 3, 4); + AdressTextBox.Name = "AdressTextBox"; + AdressTextBox.Size = new Size(198, 27); + AdressTextBox.TabIndex = 4; // // DataGridView // - this.DataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.DataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.WorkName, - this.WorkPrice, - this.WorkCount}); - this.DataGridView.Location = new System.Drawing.Point(12, 109); - this.DataGridView.Name = "DataGridView"; - this.DataGridView.RowTemplate.Height = 25; - this.DataGridView.Size = new System.Drawing.Size(776, 288); - this.DataGridView.TabIndex = 6; + DataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + DataGridView.Columns.AddRange(new DataGridViewColumn[] { WorkName, WorkPrice, WorkCount }); + DataGridView.Location = new Point(14, 145); + DataGridView.Margin = new Padding(3, 4, 3, 4); + DataGridView.Name = "DataGridView"; + DataGridView.RowHeadersWidth = 51; + DataGridView.RowTemplate.Height = 25; + DataGridView.Size = new Size(887, 384); + DataGridView.TabIndex = 6; // // WorkName // - this.WorkName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.WorkName.HeaderText = "Название изделия"; - this.WorkName.Name = "WorkName"; + WorkName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; + WorkName.HeaderText = "Название изделия"; + WorkName.MinimumWidth = 6; + WorkName.Name = "WorkName"; // // WorkPrice // - this.WorkPrice.HeaderText = "Цена"; - this.WorkPrice.Name = "WorkPrice"; + WorkPrice.HeaderText = "Цена"; + WorkPrice.MinimumWidth = 6; + WorkPrice.Name = "WorkPrice"; + WorkPrice.Width = 125; // // WorkCount // - this.WorkCount.HeaderText = "Количество"; - this.WorkCount.Name = "WorkCount"; + WorkCount.HeaderText = "Количество"; + WorkCount.MinimumWidth = 6; + WorkCount.Name = "WorkCount"; + WorkCount.Width = 125; // // SaveButton // - this.SaveButton.Location = new System.Drawing.Point(552, 403); - this.SaveButton.Name = "SaveButton"; - this.SaveButton.Size = new System.Drawing.Size(115, 35); - this.SaveButton.TabIndex = 7; - this.SaveButton.Text = "Сохранить"; - this.SaveButton.UseVisualStyleBackColor = true; - this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click); + SaveButton.Location = new Point(631, 537); + SaveButton.Margin = new Padding(3, 4, 3, 4); + SaveButton.Name = "SaveButton"; + SaveButton.Size = new Size(131, 47); + SaveButton.TabIndex = 7; + SaveButton.Text = "Сохранить"; + SaveButton.UseVisualStyleBackColor = true; + SaveButton.Click += SaveButton_Click; // // ButtonCancel // - this.ButtonCancel.Location = new System.Drawing.Point(673, 403); - this.ButtonCancel.Name = "ButtonCancel"; - this.ButtonCancel.Size = new System.Drawing.Size(115, 35); - this.ButtonCancel.TabIndex = 8; - this.ButtonCancel.Text = "Отменить"; - this.ButtonCancel.UseVisualStyleBackColor = true; - this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click); + ButtonCancel.Location = new Point(769, 537); + ButtonCancel.Margin = new Padding(3, 4, 3, 4); + ButtonCancel.Name = "ButtonCancel"; + ButtonCancel.Size = new Size(131, 47); + ButtonCancel.TabIndex = 8; + ButtonCancel.Text = "Отменить"; + ButtonCancel.UseVisualStyleBackColor = true; + ButtonCancel.Click += ButtonCancel_Click; // // OpeningDatePicker // - this.OpeningDatePicker.Location = new System.Drawing.Point(137, 66); - this.OpeningDatePicker.Name = "OpeningDatePicker"; - this.OpeningDatePicker.Size = new System.Drawing.Size(174, 23); - this.OpeningDatePicker.TabIndex = 9; - // + OpeningDatePicker.Location = new Point(157, 88); + OpeningDatePicker.Margin = new Padding(3, 4, 3, 4); + OpeningDatePicker.Name = "OpeningDatePicker"; + OpeningDatePicker.Size = new Size(198, 27); + OpeningDatePicker.TabIndex = 9; + // // VolumeNumericUpDown // - this.VolumeNumericUpDown.Location = new System.Drawing.Point(486, 7); - this.VolumeNumericUpDown.Name = "VolumeNumericUpDown"; - this.VolumeNumericUpDown.Size = new System.Drawing.Size(168, 23); - this.VolumeNumericUpDown.TabIndex = 10; + VolumeNumericUpDown.Location = new Point(570, 10); + VolumeNumericUpDown.Margin = new Padding(3, 4, 3, 4); + VolumeNumericUpDown.Name = "VolumeNumericUpDown"; + VolumeNumericUpDown.Size = new Size(192, 27); + VolumeNumericUpDown.TabIndex = 10; // // WorkMaxCountLable // - this.WorkMaxCountLable.AutoSize = true; - this.WorkMaxCountLable.Location = new System.Drawing.Point(340, 9); - this.WorkMaxCountLable.Name = "WorkMaxCountLable"; - this.WorkMaxCountLable.Size = new System.Drawing.Size(140, 15); - this.WorkMaxCountLable.TabIndex = 11; - this.WorkMaxCountLable.Text = "Вместимость магазина: "; + WorkMaxCountLable.AutoSize = true; + WorkMaxCountLable.Location = new Point(389, 12); + WorkMaxCountLable.Name = "WorkMaxCountLable"; + WorkMaxCountLable.Size = new Size(177, 20); + WorkMaxCountLable.TabIndex = 11; + WorkMaxCountLable.Text = "Вместимость магазина: "; // // FormStore // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Controls.Add(this.WorkMaxCountLable); - this.Controls.Add(this.VolumeNumericUpDown); - this.Controls.Add(this.OpeningDatePicker); - this.Controls.Add(this.ButtonCancel); - this.Controls.Add(this.SaveButton); - this.Controls.Add(this.DataGridView); - this.Controls.Add(this.AdressTextBox); - this.Controls.Add(this.NameTextBox); - this.Controls.Add(this.OpeningDateLabel); - this.Controls.Add(this.StoreAdressLabel); - this.Controls.Add(this.StoreNameLabel); - this.Name = "FormStore"; - this.Text = "Изделия магазина"; - this.Load += new System.EventHandler(this.FormStore_Load); - ((System.ComponentModel.ISupportInitialize)(this.DataGridView)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.VolumeNumericUpDown)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(914, 600); + Controls.Add(WorkMaxCountLable); + Controls.Add(VolumeNumericUpDown); + Controls.Add(OpeningDatePicker); + Controls.Add(ButtonCancel); + Controls.Add(SaveButton); + Controls.Add(DataGridView); + Controls.Add(AdressTextBox); + Controls.Add(NameTextBox); + Controls.Add(OpeningDateLabel); + Controls.Add(StoreAdressLabel); + Controls.Add(StoreNameLabel); + Margin = new Padding(3, 4, 3, 4); + Name = "FormStore"; + Text = "Изделия магазина"; + Load += FormStore_Load; + ((System.ComponentModel.ISupportInitialize)DataGridView).EndInit(); + ((System.ComponentModel.ISupportInitialize)VolumeNumericUpDown).EndInit(); + ResumeLayout(false); + PerformLayout(); } #endregion diff --git a/PlumbingRepair/PlumbingRepair/FormStore.resx b/PlumbingRepair/PlumbingRepair/FormStore.resx index 1af7de1..f298a7b 100644 --- a/PlumbingRepair/PlumbingRepair/FormStore.resx +++ b/PlumbingRepair/PlumbingRepair/FormStore.resx @@ -1,64 +1,4 @@ - - - +