готовы интерфейсы форм, только интерфейсы(
This commit is contained in:
parent
7b976c911b
commit
9db40721a9
120
SUBD_Car_rent/Forms/FormBranch.Designer.cs
generated
120
SUBD_Car_rent/Forms/FormBranch.Designer.cs
generated
@ -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;
|
||||
}
|
||||
}
|
178
SUBD_Car_rent/Forms/FormCar.Designer.cs
generated
178
SUBD_Car_rent/Forms/FormCar.Designer.cs
generated
@ -28,12 +28,182 @@
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
@ -26,36 +26,36 @@
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
|
177
SUBD_Car_rent/Forms/FormClient.Designer.cs
generated
177
SUBD_Car_rent/Forms/FormClient.Designer.cs
generated
@ -28,12 +28,181 @@
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
@ -26,36 +26,36 @@
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
179
SUBD_Car_rent/Forms/FormRental.Designer.cs
generated
179
SUBD_Car_rent/Forms/FormRental.Designer.cs
generated
@ -28,12 +28,183 @@
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
@ -26,36 +26,36 @@
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
|
@ -25,7 +25,11 @@ namespace Forms
|
||||
{
|
||||
services.AddTransient<Abstractions, Implementation>();
|
||||
services.AddTransient<FormMain>();
|
||||
services.AddTransient<FormBranch>();
|
||||
services.AddTransient<FormCar>();
|
||||
services.AddTransient<FormCarModel>();
|
||||
services.AddTransient<FormClient>();
|
||||
services.AddTransient<FormRental>();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user