From 9db40721a95f5a8361ec8990fe3ae74b08c2f8c8 Mon Sep 17 00:00:00 2001 From: Timourka Date: Tue, 26 Mar 2024 23:59:21 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D1=8B=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D1=8B=20=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC,=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D1=8B(?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SUBD_Car_rent/Forms/FormBranch.Designer.cs | 120 ++++++-------- SUBD_Car_rent/Forms/FormCar.Designer.cs | 178 +++++++++++++++++++- SUBD_Car_rent/Forms/FormCar.resx | 50 +++--- SUBD_Car_rent/Forms/FormClient.Designer.cs | 177 +++++++++++++++++++- SUBD_Car_rent/Forms/FormClient.resx | 50 +++--- SUBD_Car_rent/Forms/FormMain.cs | 24 ++- SUBD_Car_rent/Forms/FormRental.Designer.cs | 179 ++++++++++++++++++++- SUBD_Car_rent/Forms/FormRental.resx | 50 +++--- SUBD_Car_rent/Forms/Program.cs | 4 + 9 files changed, 672 insertions(+), 160 deletions(-) diff --git a/SUBD_Car_rent/Forms/FormBranch.Designer.cs b/SUBD_Car_rent/Forms/FormBranch.Designer.cs index 51f16c7..ee9cae3 100644 --- a/SUBD_Car_rent/Forms/FormBranch.Designer.cs +++ b/SUBD_Car_rent/Forms/FormBranch.Designer.cs @@ -31,17 +31,15 @@ buttonDelete = new Button(); buttonUpdate = new Button(); buttonCreate = new Button(); - comboBoxBodyType = new ComboBox(); - textBoxSeats = new TextBox(); - textBoxYear = new TextBox(); - textBoxModel = new TextBox(); - textBoxBrand = new TextBox(); - label5 = new Label(); + textBoxName = new TextBox(); label4 = new Label(); label3 = new Label(); label2 = new Label(); label1 = new Label(); dataGridView = new DataGridView(); + textBoxAddress = new TextBox(); + textBoxPhone = new TextBox(); + textBoxWorkingHours = new TextBox(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); SuspendLayout(); // @@ -72,86 +70,48 @@ buttonCreate.Text = "create"; buttonCreate.UseVisualStyleBackColor = true; // - // comboBoxBodyType + // textBoxName // - comboBoxBodyType.FormattingEnabled = true; - comboBoxBodyType.Location = new Point(688, 98); - comboBoxBodyType.Name = "comboBoxBodyType"; - comboBoxBodyType.Size = new Size(100, 23); - comboBoxBodyType.TabIndex = 25; - // - // textBoxSeats - // - textBoxSeats.Location = new Point(688, 127); - textBoxSeats.Name = "textBoxSeats"; - textBoxSeats.Size = new Size(100, 23); - textBoxSeats.TabIndex = 24; - // - // textBoxYear - // - textBoxYear.Location = new Point(688, 69); - textBoxYear.Name = "textBoxYear"; - textBoxYear.Size = new Size(100, 23); - textBoxYear.TabIndex = 23; - // - // textBoxModel - // - textBoxModel.Location = new Point(688, 40); - textBoxModel.Name = "textBoxModel"; - textBoxModel.Size = new Size(100, 23); - textBoxModel.TabIndex = 22; - // - // textBoxBrand - // - textBoxBrand.Location = new Point(688, 11); - textBoxBrand.Name = "textBoxBrand"; - textBoxBrand.Size = new Size(100, 23); - textBoxBrand.TabIndex = 21; - // - // label5 - // - label5.AutoSize = true; - label5.Location = new Point(622, 130); - label5.Name = "label5"; - label5.Size = new Size(34, 15); - label5.TabIndex = 20; - label5.Text = "Seats"; + textBoxName.Location = new Point(688, 11); + textBoxName.Name = "textBoxName"; + textBoxName.Size = new Size(100, 23); + textBoxName.TabIndex = 21; // // label4 // label4.AutoSize = true; - label4.Location = new Point(622, 101); + label4.Location = new Point(598, 101); label4.Name = "label4"; - label4.Size = new Size(60, 15); + label4.Size = new Size(84, 15); label4.TabIndex = 19; - label4.Text = "Body type"; + label4.Text = "WorkingHours"; // // label3 // label3.AutoSize = true; - label3.Location = new Point(622, 72); + label3.Location = new Point(598, 72); label3.Name = "label3"; - label3.Size = new Size(29, 15); + label3.Size = new Size(41, 15); label3.TabIndex = 18; - label3.Text = "Year"; + label3.Text = "Phone"; // // label2 // label2.AutoSize = true; - label2.Location = new Point(622, 43); + label2.Location = new Point(598, 43); label2.Name = "label2"; - label2.Size = new Size(41, 15); + label2.Size = new Size(49, 15); label2.TabIndex = 17; - label2.Text = "Model"; + label2.Text = "Address"; // // label1 // label1.AutoSize = true; - label1.Location = new Point(622, 14); + label1.Location = new Point(598, 14); label1.Name = "label1"; - label1.Size = new Size(38, 15); + label1.Size = new Size(39, 15); label1.TabIndex = 16; - label1.Text = "Brand"; + label1.Text = "Name"; // // dataGridView // @@ -160,23 +120,42 @@ dataGridView.Location = new Point(13, 14); dataGridView.Name = "dataGridView"; dataGridView.RowTemplate.Height = 25; - dataGridView.Size = new Size(603, 426); + dataGridView.Size = new Size(579, 426); dataGridView.TabIndex = 15; // + // textBoxAddress + // + textBoxAddress.Location = new Point(688, 40); + textBoxAddress.Name = "textBoxAddress"; + textBoxAddress.Size = new Size(100, 23); + textBoxAddress.TabIndex = 29; + // + // textBoxPhone + // + textBoxPhone.Location = new Point(688, 69); + textBoxPhone.Name = "textBoxPhone"; + textBoxPhone.Size = new Size(100, 23); + textBoxPhone.TabIndex = 30; + // + // textBoxWorkingHours + // + textBoxWorkingHours.Location = new Point(688, 98); + textBoxWorkingHours.Name = "textBoxWorkingHours"; + textBoxWorkingHours.Size = new Size(100, 23); + textBoxWorkingHours.TabIndex = 31; + // // FormBranch // AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(800, 450); + Controls.Add(textBoxWorkingHours); + Controls.Add(textBoxPhone); + Controls.Add(textBoxAddress); Controls.Add(buttonDelete); Controls.Add(buttonUpdate); Controls.Add(buttonCreate); - Controls.Add(comboBoxBodyType); - Controls.Add(textBoxSeats); - Controls.Add(textBoxYear); - Controls.Add(textBoxModel); - Controls.Add(textBoxBrand); - Controls.Add(label5); + Controls.Add(textBoxName); Controls.Add(label4); Controls.Add(label3); Controls.Add(label2); @@ -198,12 +177,15 @@ private TextBox textBoxSeats; private TextBox textBoxYear; private TextBox textBoxModel; - private TextBox textBoxBrand; + private TextBox textBoxName; private Label label5; private Label label4; private Label label3; private Label label2; private Label label1; private DataGridView dataGridView; + private TextBox textBoxAddress; + private TextBox textBoxPhone; + private TextBox textBoxWorkingHours; } } \ No newline at end of file diff --git a/SUBD_Car_rent/Forms/FormCar.Designer.cs b/SUBD_Car_rent/Forms/FormCar.Designer.cs index 77f98eb..8f74c70 100644 --- a/SUBD_Car_rent/Forms/FormCar.Designer.cs +++ b/SUBD_Car_rent/Forms/FormCar.Designer.cs @@ -28,12 +28,182 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "FormCar"; + buttonDelete = new Button(); + buttonUpdate = new Button(); + buttonCreate = new Button(); + comboBoxBodyType = new ComboBox(); + textBoxSeats = new TextBox(); + textBoxYear = new TextBox(); + textBoxModel = new TextBox(); + textBoxBrand = new TextBox(); + label5 = new Label(); + label4 = new Label(); + label3 = new Label(); + label2 = new Label(); + label1 = new Label(); + dataGridView = new DataGridView(); + ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); + SuspendLayout(); + // + // buttonDelete + // + buttonDelete.Location = new Point(688, 214); + buttonDelete.Name = "buttonDelete"; + buttonDelete.Size = new Size(75, 23); + buttonDelete.TabIndex = 28; + buttonDelete.Text = "delete"; + buttonDelete.UseVisualStyleBackColor = true; + // + // buttonUpdate + // + buttonUpdate.Location = new Point(688, 185); + buttonUpdate.Name = "buttonUpdate"; + buttonUpdate.Size = new Size(75, 23); + buttonUpdate.TabIndex = 27; + buttonUpdate.Text = "update"; + buttonUpdate.UseVisualStyleBackColor = true; + // + // buttonCreate + // + buttonCreate.Location = new Point(688, 156); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(75, 23); + buttonCreate.TabIndex = 26; + buttonCreate.Text = "create"; + buttonCreate.UseVisualStyleBackColor = true; + // + // comboBoxBodyType + // + comboBoxBodyType.FormattingEnabled = true; + comboBoxBodyType.Location = new Point(688, 98); + comboBoxBodyType.Name = "comboBoxBodyType"; + comboBoxBodyType.Size = new Size(100, 23); + comboBoxBodyType.TabIndex = 25; + // + // textBoxSeats + // + textBoxSeats.Location = new Point(688, 127); + textBoxSeats.Name = "textBoxSeats"; + textBoxSeats.Size = new Size(100, 23); + textBoxSeats.TabIndex = 24; + // + // textBoxYear + // + textBoxYear.Location = new Point(688, 69); + textBoxYear.Name = "textBoxYear"; + textBoxYear.Size = new Size(100, 23); + textBoxYear.TabIndex = 23; + // + // textBoxModel + // + textBoxModel.Location = new Point(688, 40); + textBoxModel.Name = "textBoxModel"; + textBoxModel.Size = new Size(100, 23); + textBoxModel.TabIndex = 22; + // + // textBoxBrand + // + textBoxBrand.Location = new Point(688, 11); + textBoxBrand.Name = "textBoxBrand"; + textBoxBrand.Size = new Size(100, 23); + textBoxBrand.TabIndex = 21; + // + // label5 + // + label5.AutoSize = true; + label5.Location = new Point(622, 130); + label5.Name = "label5"; + label5.Size = new Size(34, 15); + label5.TabIndex = 20; + label5.Text = "Seats"; + // + // label4 + // + label4.AutoSize = true; + label4.Location = new Point(622, 101); + label4.Name = "label4"; + label4.Size = new Size(60, 15); + label4.TabIndex = 19; + label4.Text = "Body type"; + // + // label3 + // + label3.AutoSize = true; + label3.Location = new Point(622, 72); + label3.Name = "label3"; + label3.Size = new Size(29, 15); + label3.TabIndex = 18; + label3.Text = "Year"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new Point(622, 43); + label2.Name = "label2"; + label2.Size = new Size(41, 15); + label2.TabIndex = 17; + label2.Text = "Model"; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new Point(622, 14); + label1.Name = "label1"; + label1.Size = new Size(38, 15); + label1.TabIndex = 16; + label1.Text = "Brand"; + // + // dataGridView + // + dataGridView.AllowUserToAddRows = false; + dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridView.Location = new Point(13, 14); + dataGridView.Name = "dataGridView"; + dataGridView.RowTemplate.Height = 25; + dataGridView.Size = new Size(603, 426); + dataGridView.TabIndex = 15; + // + // FormCar + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Controls.Add(buttonDelete); + Controls.Add(buttonUpdate); + Controls.Add(buttonCreate); + Controls.Add(comboBoxBodyType); + Controls.Add(textBoxSeats); + Controls.Add(textBoxYear); + Controls.Add(textBoxModel); + Controls.Add(textBoxBrand); + Controls.Add(label5); + Controls.Add(label4); + Controls.Add(label3); + Controls.Add(label2); + Controls.Add(label1); + Controls.Add(dataGridView); + Name = "FormCar"; + Text = "FormCar"; + ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); + ResumeLayout(false); + PerformLayout(); } #endregion + + private Button buttonDelete; + private Button buttonUpdate; + private Button buttonCreate; + private ComboBox comboBoxBodyType; + private TextBox textBoxSeats; + private TextBox textBoxYear; + private TextBox textBoxModel; + private TextBox textBoxBrand; + private Label label5; + private Label label4; + private Label label3; + private Label label2; + private Label label1; + private DataGridView dataGridView; } } \ No newline at end of file diff --git a/SUBD_Car_rent/Forms/FormCar.resx b/SUBD_Car_rent/Forms/FormCar.resx index 1af7de1..af32865 100644 --- a/SUBD_Car_rent/Forms/FormCar.resx +++ b/SUBD_Car_rent/Forms/FormCar.resx @@ -1,17 +1,17 @@  - diff --git a/SUBD_Car_rent/Forms/FormClient.Designer.cs b/SUBD_Car_rent/Forms/FormClient.Designer.cs index 02d31b9..3093033 100644 --- a/SUBD_Car_rent/Forms/FormClient.Designer.cs +++ b/SUBD_Car_rent/Forms/FormClient.Designer.cs @@ -28,12 +28,181 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "FormClient"; + buttonDelete = new Button(); + buttonUpdate = new Button(); + buttonCreate = new Button(); + textBoxEmail = new TextBox(); + this.textBoxAdress = new TextBox(); + this.textBoxSurname = new TextBox(); + textBoxName = new TextBox(); + label5 = new Label(); + label4 = new Label(); + label3 = new Label(); + label2 = new Label(); + label1 = new Label(); + dataGridView = new DataGridView(); + textBoxPhone = new TextBox(); + ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); + SuspendLayout(); + // + // buttonDelete + // + buttonDelete.Location = new Point(688, 214); + buttonDelete.Name = "buttonDelete"; + buttonDelete.Size = new Size(75, 23); + buttonDelete.TabIndex = 28; + buttonDelete.Text = "delete"; + buttonDelete.UseVisualStyleBackColor = true; + // + // buttonUpdate + // + buttonUpdate.Location = new Point(688, 185); + buttonUpdate.Name = "buttonUpdate"; + buttonUpdate.Size = new Size(75, 23); + buttonUpdate.TabIndex = 27; + buttonUpdate.Text = "update"; + buttonUpdate.UseVisualStyleBackColor = true; + // + // buttonCreate + // + buttonCreate.Location = new Point(688, 156); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(75, 23); + buttonCreate.TabIndex = 26; + buttonCreate.Text = "create"; + buttonCreate.UseVisualStyleBackColor = true; + // + // textBoxEmail + // + textBoxEmail.Location = new Point(688, 127); + textBoxEmail.Name = "textBoxEmail"; + textBoxEmail.Size = new Size(100, 23); + textBoxEmail.TabIndex = 24; + // + // textBoxAdress + // + this.textBoxAdress.Location = new Point(688, 69); + this.textBoxAdress.Name = "textBoxAdress"; + this.textBoxAdress.Size = new Size(100, 23); + this.textBoxAdress.TabIndex = 23; + // + // textBoxSurname + // + this.textBoxSurname.Location = new Point(688, 40); + this.textBoxSurname.Name = "textBoxSurname"; + this.textBoxSurname.Size = new Size(100, 23); + this.textBoxSurname.TabIndex = 22; + // + // textBoxName + // + textBoxName.Location = new Point(688, 11); + textBoxName.Name = "textBoxName"; + textBoxName.Size = new Size(100, 23); + textBoxName.TabIndex = 21; + // + // label5 + // + label5.AutoSize = true; + label5.Location = new Point(622, 130); + label5.Name = "label5"; + label5.Size = new Size(36, 15); + label5.TabIndex = 20; + label5.Text = "Email"; + // + // label4 + // + label4.AutoSize = true; + label4.Location = new Point(622, 101); + label4.Name = "label4"; + label4.Size = new Size(41, 15); + label4.TabIndex = 19; + label4.Text = "Phone"; + // + // label3 + // + label3.AutoSize = true; + label3.Location = new Point(622, 72); + label3.Name = "label3"; + label3.Size = new Size(49, 15); + label3.TabIndex = 18; + label3.Text = "Address"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new Point(622, 43); + label2.Name = "label2"; + label2.Size = new Size(54, 15); + label2.TabIndex = 17; + label2.Text = "Surname"; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new Point(622, 14); + label1.Name = "label1"; + label1.Size = new Size(39, 15); + label1.TabIndex = 16; + label1.Text = "Name"; + // + // dataGridView + // + dataGridView.AllowUserToAddRows = false; + dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridView.Location = new Point(13, 14); + dataGridView.Name = "dataGridView"; + dataGridView.RowTemplate.Height = 25; + dataGridView.Size = new Size(603, 426); + dataGridView.TabIndex = 15; + // + // textBoxPhone + // + textBoxPhone.Location = new Point(688, 98); + textBoxPhone.Name = "textBoxPhone"; + textBoxPhone.Size = new Size(100, 23); + textBoxPhone.TabIndex = 29; + // + // FormClient + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Controls.Add(textBoxPhone); + Controls.Add(buttonDelete); + Controls.Add(buttonUpdate); + Controls.Add(buttonCreate); + Controls.Add(textBoxEmail); + Controls.Add(this.textBoxAdress); + Controls.Add(this.textBoxSurname); + Controls.Add(textBoxName); + Controls.Add(label5); + Controls.Add(label4); + Controls.Add(label3); + Controls.Add(label2); + Controls.Add(label1); + Controls.Add(dataGridView); + Name = "FormClient"; + Text = "FormClient"; + ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); + ResumeLayout(false); + PerformLayout(); } #endregion + + private Button buttonDelete; + private Button buttonUpdate; + private Button buttonCreate; + private TextBox textBoxEmail; + private TextBox textBoxAdress; + private TextBox textBoxSurname; + private TextBox textBoxName; + private TextBox textBoxPhone; + private Label label5; + private Label label4; + private Label label3; + private Label label2; + private Label label1; + private DataGridView dataGridView; } } \ No newline at end of file diff --git a/SUBD_Car_rent/Forms/FormClient.resx b/SUBD_Car_rent/Forms/FormClient.resx index 1af7de1..af32865 100644 --- a/SUBD_Car_rent/Forms/FormClient.resx +++ b/SUBD_Car_rent/Forms/FormClient.resx @@ -1,17 +1,17 @@  - diff --git a/SUBD_Car_rent/Forms/FormMain.cs b/SUBD_Car_rent/Forms/FormMain.cs index d6ff695..f17418a 100644 --- a/SUBD_Car_rent/Forms/FormMain.cs +++ b/SUBD_Car_rent/Forms/FormMain.cs @@ -21,22 +21,38 @@ namespace Forms private void carToolStripMenuItem_Click(object sender, EventArgs e) { - + var service = Program.ServiceProvider?.GetService(typeof(FormCar)); + if (service is FormCar form) + { + form.ShowDialog(); + } } private void branchToolStripMenuItem_Click(object sender, EventArgs e) { - + var service = Program.ServiceProvider?.GetService(typeof(FormBranch)); + if (service is FormBranch form) + { + form.ShowDialog(); + } } private void clientToolStripMenuItem_Click(object sender, EventArgs e) { - + var service = Program.ServiceProvider?.GetService(typeof(FormBranch)); + if (service is FormBranch form) + { + form.ShowDialog(); + } } private void rentalToolStripMenuItem_Click(object sender, EventArgs e) { - + var service = Program.ServiceProvider?.GetService(typeof(FormRental)); + if (service is FormRental form) + { + form.ShowDialog(); + } } /* diff --git a/SUBD_Car_rent/Forms/FormRental.Designer.cs b/SUBD_Car_rent/Forms/FormRental.Designer.cs index dd2faf4..b5ee5d8 100644 --- a/SUBD_Car_rent/Forms/FormRental.Designer.cs +++ b/SUBD_Car_rent/Forms/FormRental.Designer.cs @@ -28,12 +28,183 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "FormRental"; + buttonDelete = new Button(); + buttonUpdate = new Button(); + buttonCreate = new Button(); + comboBoxCar = new ComboBox(); + textBoxCost = new TextBox(); + textBoxStartDate = new TextBox(); + textBoxEndDate = new TextBox(); + label5 = new Label(); + label4 = new Label(); + label3 = new Label(); + label2 = new Label(); + label1 = new Label(); + dataGridView = new DataGridView(); + comboBoxClient = new ComboBox(); + ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); + SuspendLayout(); + // + // buttonDelete + // + buttonDelete.Location = new Point(688, 214); + buttonDelete.Name = "buttonDelete"; + buttonDelete.Size = new Size(75, 23); + buttonDelete.TabIndex = 28; + buttonDelete.Text = "delete"; + buttonDelete.UseVisualStyleBackColor = true; + // + // buttonUpdate + // + buttonUpdate.Location = new Point(688, 185); + buttonUpdate.Name = "buttonUpdate"; + buttonUpdate.Size = new Size(75, 23); + buttonUpdate.TabIndex = 27; + buttonUpdate.Text = "update"; + buttonUpdate.UseVisualStyleBackColor = true; + // + // buttonCreate + // + buttonCreate.Location = new Point(688, 156); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(75, 23); + buttonCreate.TabIndex = 26; + buttonCreate.Text = "create"; + buttonCreate.UseVisualStyleBackColor = true; + // + // comboBoxCar + // + comboBoxCar.FormattingEnabled = true; + comboBoxCar.Location = new Point(688, 11); + comboBoxCar.Name = "comboBoxCar"; + comboBoxCar.Size = new Size(100, 23); + comboBoxCar.TabIndex = 25; + // + // textBoxCost + // + textBoxCost.Location = new Point(688, 127); + textBoxCost.Name = "textBoxCost"; + textBoxCost.Size = new Size(100, 23); + textBoxCost.TabIndex = 24; + // + // textBoxStartDate + // + textBoxStartDate.Location = new Point(688, 69); + textBoxStartDate.Name = "textBoxStartDate"; + textBoxStartDate.Size = new Size(100, 23); + textBoxStartDate.TabIndex = 23; + // + // textBoxEndDate + // + textBoxEndDate.Location = new Point(688, 98); + textBoxEndDate.Name = "textBoxEndDate"; + textBoxEndDate.Size = new Size(100, 23); + textBoxEndDate.TabIndex = 21; + // + // label5 + // + label5.AutoSize = true; + label5.Location = new Point(622, 130); + label5.Name = "label5"; + label5.Size = new Size(31, 15); + label5.TabIndex = 20; + label5.Text = "Cost"; + // + // label4 + // + label4.AutoSize = true; + label4.Location = new Point(622, 101); + label4.Name = "label4"; + label4.Size = new Size(53, 15); + label4.TabIndex = 19; + label4.Text = "End date"; + // + // label3 + // + label3.AutoSize = true; + label3.Location = new Point(622, 72); + label3.Name = "label3"; + label3.Size = new Size(57, 15); + label3.TabIndex = 18; + label3.Text = "Start date"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new Point(622, 43); + label2.Name = "label2"; + label2.Size = new Size(38, 15); + label2.TabIndex = 17; + label2.Text = "Client"; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new Point(622, 14); + label1.Name = "label1"; + label1.Size = new Size(25, 15); + label1.TabIndex = 16; + label1.Text = "Car"; + // + // dataGridView + // + dataGridView.AllowUserToAddRows = false; + dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridView.Location = new Point(13, 14); + dataGridView.Name = "dataGridView"; + dataGridView.RowTemplate.Height = 25; + dataGridView.Size = new Size(603, 426); + dataGridView.TabIndex = 15; + // + // comboBoxClient + // + comboBoxClient.FormattingEnabled = true; + comboBoxClient.Location = new Point(688, 40); + comboBoxClient.Name = "comboBoxClient"; + comboBoxClient.Size = new Size(100, 23); + comboBoxClient.TabIndex = 29; + // + // FormRental + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Controls.Add(comboBoxClient); + Controls.Add(buttonDelete); + Controls.Add(buttonUpdate); + Controls.Add(buttonCreate); + Controls.Add(comboBoxCar); + Controls.Add(textBoxCost); + Controls.Add(textBoxStartDate); + Controls.Add(textBoxEndDate); + Controls.Add(label5); + Controls.Add(label4); + Controls.Add(label3); + Controls.Add(label2); + Controls.Add(label1); + Controls.Add(dataGridView); + Name = "FormRental"; + Text = "FormRental"; + ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); + ResumeLayout(false); + PerformLayout(); } #endregion + + private Button buttonDelete; + private Button buttonUpdate; + private Button buttonCreate; + private ComboBox comboBoxCar; + private TextBox textBoxCost; + private TextBox textBoxStartDate; + private TextBox textBoxEndDate; + private Label label5; + private Label label4; + private Label label3; + private Label label2; + private Label label1; + private DataGridView dataGridView; + private ComboBox comboBoxClient; } } \ No newline at end of file diff --git a/SUBD_Car_rent/Forms/FormRental.resx b/SUBD_Car_rent/Forms/FormRental.resx index 1af7de1..af32865 100644 --- a/SUBD_Car_rent/Forms/FormRental.resx +++ b/SUBD_Car_rent/Forms/FormRental.resx @@ -1,17 +1,17 @@  - diff --git a/SUBD_Car_rent/Forms/Program.cs b/SUBD_Car_rent/Forms/Program.cs index 5acc591..71e88f2 100644 --- a/SUBD_Car_rent/Forms/Program.cs +++ b/SUBD_Car_rent/Forms/Program.cs @@ -25,7 +25,11 @@ namespace Forms { services.AddTransient(); services.AddTransient(); + services.AddTransient(); + services.AddTransient(); services.AddTransient(); + services.AddTransient(); + services.AddTransient(); } } } \ No newline at end of file