From 5e71f46d738d8bf81bac43615221a36d54539ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B3=D0=BE=D1=80=20=D0=9F=D1=8B=D0=B6=D0=BE=D0=B2?= Date: Tue, 29 Oct 2024 12:57:37 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A7=D1=83=D1=82=D1=8C=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B0=D0=BB=20=D1=84=D0=BE=D1=80=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ITServiceManager/Entities/Company.cs | 7 +- .../ITServiceManager/Entities/Service.cs | 6 +- .../Forms/FormCompanies.Designer.cs | 30 ++-- .../ITServiceManager/Forms/FormCompanies.cs | 5 + .../Forms/FormCompany.Designer.cs | 49 +++++-- .../ITServiceManager/Forms/FormCompany.cs | 12 +- .../Forms/FormEmployees.Designer.cs | 128 ++++++++++++++++++ .../ITServiceManager/Forms/FormEmployees.cs | 117 ++++++++++++++++ .../ITServiceManager/Forms/FormEmployees.resx | 120 ++++++++++++++++ .../Forms/FormService.Designer.cs | 88 +++++++++++- .../ITServiceManager/Forms/FormService.resx | 50 +++---- 11 files changed, 555 insertions(+), 57 deletions(-) create mode 100644 ITServiceManager/ITServiceManager/Forms/FormEmployees.Designer.cs create mode 100644 ITServiceManager/ITServiceManager/Forms/FormEmployees.cs create mode 100644 ITServiceManager/ITServiceManager/Forms/FormEmployees.resx diff --git a/ITServiceManager/ITServiceManager/Entities/Company.cs b/ITServiceManager/ITServiceManager/Entities/Company.cs index 3f56494..0ed7118 100644 --- a/ITServiceManager/ITServiceManager/Entities/Company.cs +++ b/ITServiceManager/ITServiceManager/Entities/Company.cs @@ -5,12 +5,15 @@ public class Company public int Id { get; private set; } public string Name { get; private set; } = string.Empty; - public static Company CreateEntity(int id, string companyName) + public string Address { get; private set; } = string.Empty; + + public static Company CreateEntity(int id, string companyName, string addres) { return new Company { Id = id, - Name = companyName + Name = companyName, + Address = addres }; } } diff --git a/ITServiceManager/ITServiceManager/Entities/Service.cs b/ITServiceManager/ITServiceManager/Entities/Service.cs index b1fcbf7..cdf7d3c 100644 --- a/ITServiceManager/ITServiceManager/Entities/Service.cs +++ b/ITServiceManager/ITServiceManager/Entities/Service.cs @@ -4,16 +4,18 @@ public class Service { public int Id { get; private set; } public string Name { get; private set; } = string.Empty; + public string Description { get; private set; } = string.Empty; public IEnumerable OrderService { get; private set; } = []; - public static Service CreateEntity(int id, string serviceName, IEnumerable orderService) + public static Service CreateEntity(int id, string serviceName, IEnumerable orderService, string description) { return new Service { Id = id, Name = serviceName, - OrderService = orderService + OrderService = orderService, + Description = description }; } } diff --git a/ITServiceManager/ITServiceManager/Forms/FormCompanies.Designer.cs b/ITServiceManager/ITServiceManager/Forms/FormCompanies.Designer.cs index 89c2785..81866a4 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormCompanies.Designer.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormCompanies.Designer.cs @@ -43,18 +43,20 @@ panel.Controls.Add(buttonRemove); panel.Controls.Add(buttonAdd); panel.Dock = DockStyle.Right; - panel.Location = new Point(652, 0); + panel.Location = new Point(745, 0); + panel.Margin = new Padding(3, 4, 3, 4); panel.Name = "panel"; - panel.Size = new Size(148, 450); + panel.Size = new Size(169, 600); panel.TabIndex = 1; // // buttonUpdate // buttonUpdate.BackgroundImage = Properties.Resources.edit; buttonUpdate.BackgroundImageLayout = ImageLayout.Stretch; - buttonUpdate.Location = new Point(36, 249); + buttonUpdate.Location = new Point(41, 332); + buttonUpdate.Margin = new Padding(3, 4, 3, 4); buttonUpdate.Name = "buttonUpdate"; - buttonUpdate.Size = new Size(78, 80); + buttonUpdate.Size = new Size(89, 107); buttonUpdate.TabIndex = 2; buttonUpdate.UseVisualStyleBackColor = true; buttonUpdate.Click += ButtonUpdate_Click; @@ -63,9 +65,10 @@ // buttonRemove.BackgroundImage = Properties.Resources.minus; buttonRemove.BackgroundImageLayout = ImageLayout.Stretch; - buttonRemove.Location = new Point(36, 141); + buttonRemove.Location = new Point(41, 188); + buttonRemove.Margin = new Padding(3, 4, 3, 4); buttonRemove.Name = "buttonRemove"; - buttonRemove.Size = new Size(75, 76); + buttonRemove.Size = new Size(86, 101); buttonRemove.TabIndex = 1; buttonRemove.UseVisualStyleBackColor = true; buttonRemove.Click += ButtonRemove_Click; @@ -74,9 +77,10 @@ // buttonAdd.BackgroundImage = Properties.Resources.plus; buttonAdd.BackgroundImageLayout = ImageLayout.Stretch; - buttonAdd.Location = new Point(33, 43); + buttonAdd.Location = new Point(38, 57); + buttonAdd.Margin = new Padding(3, 4, 3, 4); buttonAdd.Name = "buttonAdd"; - buttonAdd.Size = new Size(81, 71); + buttonAdd.Size = new Size(93, 95); buttonAdd.TabIndex = 0; buttonAdd.UseVisualStyleBackColor = true; buttonAdd.Click += ButtonAdd_Click; @@ -90,22 +94,26 @@ dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.Dock = DockStyle.Fill; dataGridView.Location = new Point(0, 0); + dataGridView.Margin = new Padding(3, 4, 3, 4); dataGridView.MultiSelect = false; dataGridView.Name = "dataGridView"; dataGridView.ReadOnly = true; dataGridView.RowHeadersVisible = false; + dataGridView.RowHeadersWidth = 51; dataGridView.RowTemplate.Height = 25; dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; - dataGridView.Size = new Size(652, 450); + dataGridView.Size = new Size(745, 600); dataGridView.TabIndex = 1; + dataGridView.CellContentClick += dataGridView_CellContentClick; // // FormCompanies // - AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(800, 450); + ClientSize = new Size(914, 600); Controls.Add(dataGridView); Controls.Add(panel); + Margin = new Padding(3, 4, 3, 4); Name = "FormCompanies"; StartPosition = FormStartPosition.CenterParent; Text = "Компании"; diff --git a/ITServiceManager/ITServiceManager/Forms/FormCompanies.cs b/ITServiceManager/ITServiceManager/Forms/FormCompanies.cs index 8af650a..5c45845 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormCompanies.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormCompanies.cs @@ -97,5 +97,10 @@ namespace ITServiceManager.Forms id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value); return true; } + + private void dataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) + { + + } } } diff --git a/ITServiceManager/ITServiceManager/Forms/FormCompany.Designer.cs b/ITServiceManager/ITServiceManager/Forms/FormCompany.Designer.cs index d75bc86..f8ba823 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormCompany.Designer.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormCompany.Designer.cs @@ -32,29 +32,35 @@ textBoxName = new TextBox(); buttonAdd = new Button(); buttonCancel = new Button(); + labelAddres = new Label(); + textBoxAddress = new TextBox(); SuspendLayout(); // // labelName // labelName.AutoSize = true; - labelName.Location = new Point(89, 101); + labelName.Location = new Point(102, 135); labelName.Name = "labelName"; - labelName.Size = new Size(118, 15); + labelName.Size = new Size(152, 20); labelName.TabIndex = 0; labelName.Text = "Название компании"; + labelName.Click += this.labelName_Click; // // textBoxName // - textBoxName.Location = new Point(268, 98); + textBoxName.Location = new Point(306, 131); + textBoxName.Margin = new Padding(3, 4, 3, 4); textBoxName.Name = "textBoxName"; - textBoxName.Size = new Size(176, 23); + textBoxName.Size = new Size(201, 27); textBoxName.TabIndex = 1; + textBoxName.TextChanged += textBoxName_TextChanged; // // buttonAdd // - buttonAdd.Location = new Point(95, 238); + buttonAdd.Location = new Point(109, 317); + buttonAdd.Margin = new Padding(3, 4, 3, 4); buttonAdd.Name = "buttonAdd"; - buttonAdd.Size = new Size(112, 28); + buttonAdd.Size = new Size(128, 37); buttonAdd.TabIndex = 2; buttonAdd.Text = "Добавить"; buttonAdd.UseVisualStyleBackColor = true; @@ -62,23 +68,44 @@ // // buttonCancel // - buttonCancel.Location = new Point(321, 238); + buttonCancel.Location = new Point(367, 317); + buttonCancel.Margin = new Padding(3, 4, 3, 4); buttonCancel.Name = "buttonCancel"; - buttonCancel.Size = new Size(112, 28); + buttonCancel.Size = new Size(128, 37); buttonCancel.TabIndex = 3; buttonCancel.Text = "Отмена"; buttonCancel.UseVisualStyleBackColor = true; buttonCancel.Click += ButtonCancel_Click; // + // labelAddres + // + labelAddres.AutoSize = true; + labelAddres.Location = new Point(121, 195); + labelAddres.Name = "labelAddres"; + labelAddres.Size = new Size(133, 20); + labelAddres.TabIndex = 4; + labelAddres.Text = "Адресс компании"; + // + // textBoxAddress + // + textBoxAddress.Location = new Point(306, 188); + textBoxAddress.Margin = new Padding(3, 4, 3, 4); + textBoxAddress.Name = "textBoxAddress"; + textBoxAddress.Size = new Size(201, 27); + textBoxAddress.TabIndex = 5; + // // FormCompany // - AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(536, 306); + ClientSize = new Size(613, 408); + Controls.Add(textBoxAddress); + Controls.Add(labelAddres); Controls.Add(buttonCancel); Controls.Add(buttonAdd); Controls.Add(textBoxName); Controls.Add(labelName); + Margin = new Padding(3, 4, 3, 4); Name = "FormCompany"; StartPosition = FormStartPosition.CenterParent; Text = "Компания"; @@ -92,5 +119,7 @@ private TextBox textBoxName; private Button buttonAdd; private Button buttonCancel; + private Label labelAddres; + private TextBox textBoxAddress; } } \ No newline at end of file diff --git a/ITServiceManager/ITServiceManager/Forms/FormCompany.cs b/ITServiceManager/ITServiceManager/Forms/FormCompany.cs index 2deb280..a75fc60 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormCompany.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormCompany.cs @@ -29,6 +29,7 @@ namespace ITServiceManager.Forms throw new InvalidDataException(nameof(company)); } textBoxName.Text = company.Name; + textBoxAddress.Text = company.Address; _companyId = value; } catch (Exception ex) @@ -43,12 +44,12 @@ namespace ITServiceManager.Forms InitializeComponent(); _companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository)); } - + private void ButtonAdd_Click(object sender, EventArgs e) { try { - if (string.IsNullOrWhiteSpace(textBoxName.Text)) + if (string.IsNullOrWhiteSpace(textBoxName.Text) || string.IsNullOrWhiteSpace(textBoxAddress.Text)) { throw new Exception("Имеются незаполненные поля"); } @@ -68,6 +69,11 @@ namespace ITServiceManager.Forms } } private void ButtonCancel_Click(object sender, EventArgs e) => Close(); - private Company CreateCompany(int id) => Company.CreateEntity(id, textBoxName.Text); + private Company CreateCompany(int id) => Company.CreateEntity(id, textBoxName.Text, textBoxAddress.Text); + + private void textBoxName_TextChanged(object sender, EventArgs e) + { + + } } } diff --git a/ITServiceManager/ITServiceManager/Forms/FormEmployees.Designer.cs b/ITServiceManager/ITServiceManager/Forms/FormEmployees.Designer.cs new file mode 100644 index 0000000..8936c74 --- /dev/null +++ b/ITServiceManager/ITServiceManager/Forms/FormEmployees.Designer.cs @@ -0,0 +1,128 @@ +namespace ITServiceManager.Forms +{ + partial class FormEmployees + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + panel = new Panel(); + buttonUpdate = new Button(); + buttonRemove = new Button(); + buttonAdd = new Button(); + dataGridView = new DataGridView(); + panel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); + SuspendLayout(); + // + // panel + // + panel.Controls.Add(buttonUpdate); + panel.Controls.Add(buttonRemove); + panel.Controls.Add(buttonAdd); + panel.Dock = DockStyle.Right; + panel.Location = new Point(745, 0); + panel.Margin = new Padding(3, 4, 3, 4); + panel.Name = "panel"; + panel.Size = new Size(169, 600); + panel.TabIndex = 2; + // + // buttonUpdate + // + buttonUpdate.BackgroundImage = Properties.Resources.edit; + buttonUpdate.BackgroundImageLayout = ImageLayout.Stretch; + buttonUpdate.Location = new Point(41, 332); + buttonUpdate.Margin = new Padding(3, 4, 3, 4); + buttonUpdate.Name = "buttonUpdate"; + buttonUpdate.Size = new Size(89, 107); + buttonUpdate.TabIndex = 2; + buttonUpdate.UseVisualStyleBackColor = true; + // + // buttonRemove + // + buttonRemove.BackgroundImage = Properties.Resources.minus; + buttonRemove.BackgroundImageLayout = ImageLayout.Stretch; + buttonRemove.Location = new Point(41, 188); + buttonRemove.Margin = new Padding(3, 4, 3, 4); + buttonRemove.Name = "buttonRemove"; + buttonRemove.Size = new Size(86, 101); + buttonRemove.TabIndex = 1; + buttonRemove.UseVisualStyleBackColor = true; + // + // buttonAdd + // + buttonAdd.BackgroundImage = Properties.Resources.plus; + buttonAdd.BackgroundImageLayout = ImageLayout.Stretch; + buttonAdd.Location = new Point(38, 57); + buttonAdd.Margin = new Padding(3, 4, 3, 4); + buttonAdd.Name = "buttonAdd"; + buttonAdd.Size = new Size(93, 95); + buttonAdd.TabIndex = 0; + buttonAdd.UseVisualStyleBackColor = true; + // + // dataGridView + // + dataGridView.AllowUserToAddRows = false; + dataGridView.AllowUserToDeleteRows = false; + dataGridView.AllowUserToResizeColumns = false; + dataGridView.AllowUserToResizeRows = false; + dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridView.Dock = DockStyle.Fill; + dataGridView.Location = new Point(0, 0); + dataGridView.Margin = new Padding(3, 4, 3, 4); + dataGridView.MultiSelect = false; + dataGridView.Name = "dataGridView"; + dataGridView.ReadOnly = true; + dataGridView.RowHeadersVisible = false; + dataGridView.RowHeadersWidth = 51; + dataGridView.RowTemplate.Height = 25; + dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; + dataGridView.Size = new Size(745, 600); + dataGridView.TabIndex = 3; + // + // FormEmployees + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(914, 600); + Controls.Add(dataGridView); + Controls.Add(panel); + Name = "FormEmployees"; + StartPosition = FormStartPosition.CenterScreen; + Text = "FormEmployees"; + panel.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); + ResumeLayout(false); + } + + #endregion + + private Panel panel; + private Button buttonUpdate; + private Button buttonRemove; + private Button buttonAdd; + private DataGridView dataGridView; + } +} \ No newline at end of file diff --git a/ITServiceManager/ITServiceManager/Forms/FormEmployees.cs b/ITServiceManager/ITServiceManager/Forms/FormEmployees.cs new file mode 100644 index 0000000..8f42ba2 --- /dev/null +++ b/ITServiceManager/ITServiceManager/Forms/FormEmployees.cs @@ -0,0 +1,117 @@ +using ITServiceManager.Repositories; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Unity; + +namespace ITServiceManager.Forms +{ + public partial class FormEmployees : Form + { + private readonly IUnityContainer _container; + private readonly IEmployeeRepository _employeeRepository; + public FormEmployees(IUnityContainer container, IEmployeeRepository + employeeRepository) + { + InitializeComponent(); + _container = container ?? + throw new ArgumentNullException(nameof(container)); + _employeeRepository = employeeRepository ?? + throw new + ArgumentNullException(nameof(employeeRepository)); + } + private void FormEmployees_Load(object sender, EventArgs e) + { + try + { + LoadList(); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message, "Ошибка при загрузке", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ButtonAdd_Click(object sender, EventArgs e) + { + try + { + _container.Resolve().ShowDialog(); + LoadList(); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message, "Ошибка при добавлении", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ButtonUpd_Click(object sender, EventArgs e) + { + if (!TryGetIdentifierFromSelectedRow(out var findId)) + { + return; + } + try + { + var form = _container.Resolve(); + form.Id = findId; + form.ShowDialog(); + LoadList(); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message, "Ошибка при изменении", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void ButtonDel_Click(object sender, EventArgs e) + { + if (!TryGetIdentifierFromSelectedRow(out var findId)) + { + return; + } + if (MessageBox.Show("Удалить запись?", "Удаление", + MessageBoxButtons.YesNo) != DialogResult.Yes) + { + return; + } + try + { + _employeeRepository.DeleteEmployee(findId); + LoadList(); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message, "Ошибка при удалении", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + private void LoadList() => dataGridView.DataSource = + _employeeRepository.ReadEmployees(); + private bool TryGetIdentifierFromSelectedRow(out int id) + { + id = 0; + if (dataGridView.SelectedRows.Count < 1) + { + MessageBox.Show("Нет выбранной записи", "Ошибка", + MessageBoxButtons.OK, MessageBoxIcon.Error); + return false; + } + id = + Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value); + return true; + } + + + + } +} diff --git a/ITServiceManager/ITServiceManager/Forms/FormEmployees.resx b/ITServiceManager/ITServiceManager/Forms/FormEmployees.resx new file mode 100644 index 0000000..af32865 --- /dev/null +++ b/ITServiceManager/ITServiceManager/Forms/FormEmployees.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ITServiceManager/ITServiceManager/Forms/FormService.Designer.cs b/ITServiceManager/ITServiceManager/Forms/FormService.Designer.cs index 479ef30..d1ced0d 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormService.Designer.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormService.Designer.cs @@ -28,12 +28,92 @@ /// 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 = "FormService"; + buttonCancel = new Button(); + buttonAdd = new Button(); + textBoxName = new TextBox(); + labelName = new Label(); + labelDescription = new Label(); + richTextBoxDescription = new RichTextBox(); + SuspendLayout(); + // + // buttonCancel + // + buttonCancel.Location = new Point(463, 300); + buttonCancel.Margin = new Padding(3, 4, 3, 4); + buttonCancel.Name = "buttonCancel"; + buttonCancel.Size = new Size(128, 37); + buttonCancel.TabIndex = 7; + buttonCancel.Text = "Отмена"; + buttonCancel.UseVisualStyleBackColor = true; + // + // buttonAdd + // + buttonAdd.Location = new Point(205, 300); + buttonAdd.Margin = new Padding(3, 4, 3, 4); + buttonAdd.Name = "buttonAdd"; + buttonAdd.Size = new Size(128, 37); + buttonAdd.TabIndex = 6; + buttonAdd.Text = "Добавить"; + buttonAdd.UseVisualStyleBackColor = true; + // + // textBoxName + // + textBoxName.Location = new Point(402, 114); + textBoxName.Margin = new Padding(3, 4, 3, 4); + textBoxName.Name = "textBoxName"; + textBoxName.Size = new Size(264, 27); + textBoxName.TabIndex = 5; + // + // labelName + // + labelName.AutoSize = true; + labelName.Location = new Point(132, 117); + labelName.Name = "labelName"; + labelName.Size = new Size(125, 20); + labelName.TabIndex = 4; + labelName.Text = "Название услуги"; + // + // labelDescription + // + labelDescription.AutoSize = true; + labelDescription.Location = new Point(132, 193); + labelDescription.Name = "labelDescription"; + labelDescription.Size = new Size(127, 20); + labelDescription.TabIndex = 8; + labelDescription.Text = "Описание услуги"; + // + // richTextBoxDescription + // + richTextBoxDescription.Location = new Point(402, 161); + richTextBoxDescription.Name = "richTextBoxDescription"; + richTextBoxDescription.Size = new Size(264, 120); + richTextBoxDescription.TabIndex = 9; + richTextBoxDescription.Text = ""; + // + // FormService + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Controls.Add(richTextBoxDescription); + Controls.Add(labelDescription); + Controls.Add(buttonCancel); + Controls.Add(buttonAdd); + Controls.Add(textBoxName); + Controls.Add(labelName); + Name = "FormService"; + Text = "FormService"; + ResumeLayout(false); + PerformLayout(); } #endregion + + private Button buttonCancel; + private Button buttonAdd; + private TextBox textBoxName; + private Label labelName; + private Label labelDescription; + private RichTextBox richTextBoxDescription; } } \ No newline at end of file diff --git a/ITServiceManager/ITServiceManager/Forms/FormService.resx b/ITServiceManager/ITServiceManager/Forms/FormService.resx index 1af7de1..af32865 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormService.resx +++ b/ITServiceManager/ITServiceManager/Forms/FormService.resx @@ -1,17 +1,17 @@  -