diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.Designer.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.Designer.cs
index 2fd7ec4..1ccfdee 100644
--- a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.Designer.cs
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.Designer.cs
@@ -28,12 +28,114 @@
///
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 = "Form1";
+ menuStrip1 = new MenuStrip();
+ справочникиToolStripMenuItem = new ToolStripMenuItem();
+ операцииToolStripMenuItem = new ToolStripMenuItem();
+ отчётыToolStripMenuItem = new ToolStripMenuItem();
+ клиентToolStripMenuItem = new ToolStripMenuItem();
+ продуктыToolStripMenuItem = new ToolStripMenuItem();
+ компонентыToolStripMenuItem = new ToolStripMenuItem();
+ поставщикиToolStripMenuItem = new ToolStripMenuItem();
+ добавитьЗаказToolStripMenuItem = new ToolStripMenuItem();
+ добавитьПоставкуToolStripMenuItem = new ToolStripMenuItem();
+ menuStrip1.SuspendLayout();
+ SuspendLayout();
+ //
+ // menuStrip1
+ //
+ menuStrip1.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem, операцииToolStripMenuItem, отчётыToolStripMenuItem });
+ menuStrip1.Location = new Point(0, 0);
+ menuStrip1.Name = "menuStrip1";
+ menuStrip1.Size = new Size(784, 24);
+ menuStrip1.TabIndex = 0;
+ menuStrip1.Text = "menuStrip1";
+ //
+ // справочникиToolStripMenuItem
+ //
+ справочникиToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { клиентToolStripMenuItem, продуктыToolStripMenuItem, компонентыToolStripMenuItem, поставщикиToolStripMenuItem });
+ справочникиToolStripMenuItem.Name = "справочникиToolStripMenuItem";
+ справочникиToolStripMenuItem.Size = new Size(94, 20);
+ справочникиToolStripMenuItem.Text = "Справочники";
+ //
+ // операцииToolStripMenuItem
+ //
+ операцииToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { добавитьЗаказToolStripMenuItem, добавитьПоставкуToolStripMenuItem });
+ операцииToolStripMenuItem.Name = "операцииToolStripMenuItem";
+ операцииToolStripMenuItem.Size = new Size(75, 20);
+ операцииToolStripMenuItem.Text = "Операции";
+ //
+ // отчётыToolStripMenuItem
+ //
+ отчётыToolStripMenuItem.Name = "отчётыToolStripMenuItem";
+ отчётыToolStripMenuItem.Size = new Size(60, 20);
+ отчётыToolStripMenuItem.Text = "Отчёты";
+ //
+ // клиентToolStripMenuItem
+ //
+ клиентToolStripMenuItem.Name = "клиентToolStripMenuItem";
+ клиентToolStripMenuItem.Size = new Size(180, 22);
+ клиентToolStripMenuItem.Text = "Клиенты";
+ клиентToolStripMenuItem.Click += клиентToolStripMenuItem_Click;
+ //
+ // продуктыToolStripMenuItem
+ //
+ продуктыToolStripMenuItem.Name = "продуктыToolStripMenuItem";
+ продуктыToolStripMenuItem.Size = new Size(180, 22);
+ продуктыToolStripMenuItem.Text = "Продукты";
+ //
+ // компонентыToolStripMenuItem
+ //
+ компонентыToolStripMenuItem.Name = "компонентыToolStripMenuItem";
+ компонентыToolStripMenuItem.Size = new Size(180, 22);
+ компонентыToolStripMenuItem.Text = "Компоненты";
+ //
+ // поставщикиToolStripMenuItem
+ //
+ поставщикиToolStripMenuItem.Name = "поставщикиToolStripMenuItem";
+ поставщикиToolStripMenuItem.Size = new Size(180, 22);
+ поставщикиToolStripMenuItem.Text = "Поставщики";
+ //
+ // добавитьЗаказToolStripMenuItem
+ //
+ добавитьЗаказToolStripMenuItem.Name = "добавитьЗаказToolStripMenuItem";
+ добавитьЗаказToolStripMenuItem.Size = new Size(180, 22);
+ добавитьЗаказToolStripMenuItem.Text = "Добавить заказ";
+ //
+ // добавитьПоставкуToolStripMenuItem
+ //
+ добавитьПоставкуToolStripMenuItem.Name = "добавитьПоставкуToolStripMenuItem";
+ добавитьПоставкуToolStripMenuItem.Size = new Size(180, 22);
+ добавитьПоставкуToolStripMenuItem.Text = "Добавить поставку";
+ //
+ // FormConfectionaryFactory
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ BackgroundImage = Properties.Resources.Croissant;
+ BackgroundImageLayout = ImageLayout.Stretch;
+ ClientSize = new Size(784, 411);
+ Controls.Add(menuStrip1);
+ MainMenuStrip = menuStrip1;
+ Name = "FormConfectionaryFactory";
+ StartPosition = FormStartPosition.CenterScreen;
+ Text = "Кондитерская фабрика";
+ menuStrip1.ResumeLayout(false);
+ menuStrip1.PerformLayout();
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
+
+ private MenuStrip menuStrip1;
+ private ToolStripMenuItem справочникиToolStripMenuItem;
+ private ToolStripMenuItem клиентToolStripMenuItem;
+ private ToolStripMenuItem операцииToolStripMenuItem;
+ private ToolStripMenuItem отчётыToolStripMenuItem;
+ private ToolStripMenuItem продуктыToolStripMenuItem;
+ private ToolStripMenuItem компонентыToolStripMenuItem;
+ private ToolStripMenuItem поставщикиToolStripMenuItem;
+ private ToolStripMenuItem добавитьЗаказToolStripMenuItem;
+ private ToolStripMenuItem добавитьПоставкуToolStripMenuItem;
}
}
diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.cs
index 1689c56..df803f5 100644
--- a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.cs
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.cs
@@ -6,5 +6,15 @@ namespace ProjectConfectionaryFactory
{
InitializeComponent();
}
+
+ private void ToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+
+ }
}
}
diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.resx b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.resx
index 1af7de1..b48baf1 100644
--- a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.resx
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/FormConfectionaryFactory.resx
@@ -1,17 +1,17 @@
-
@@ -117,4 +117,7 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 17, 17
+
\ No newline at end of file
diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.Designer.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.Designer.cs
new file mode 100644
index 0000000..7858d60
--- /dev/null
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.Designer.cs
@@ -0,0 +1,150 @@
+namespace ProjectConfectionaryFactory.Forms
+{
+ partial class FormComponent
+ {
+ ///
+ /// 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()
+ {
+ label1 = new Label();
+ label2 = new Label();
+ label3 = new Label();
+ textBox1 = new TextBox();
+ numericUpDown1 = new NumericUpDown();
+ numericUpDown2 = new NumericUpDown();
+ button1 = new Button();
+ button2 = new Button();
+ ((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)numericUpDown2).BeginInit();
+ SuspendLayout();
+ //
+ // label1
+ //
+ label1.AutoSize = true;
+ label1.Location = new Point(12, 38);
+ label1.Name = "label1";
+ label1.Size = new Size(132, 15);
+ label1.TabIndex = 0;
+ label1.Text = "Название компонента:";
+ label1.Click += this.label1_Click;
+ //
+ // label2
+ //
+ label2.AutoSize = true;
+ label2.Location = new Point(106, 84);
+ label2.Name = "label2";
+ label2.Size = new Size(38, 15);
+ label2.TabIndex = 1;
+ label2.Text = "Цена:";
+ //
+ // label3
+ //
+ label3.AutoSize = true;
+ label3.Location = new Point(115, 130);
+ label3.Name = "label3";
+ label3.Size = new Size(29, 15);
+ label3.TabIndex = 2;
+ label3.Text = "Вес:";
+ //
+ // textBox1
+ //
+ textBox1.Location = new Point(150, 35);
+ textBox1.Name = "textBox1";
+ textBox1.Size = new Size(207, 23);
+ textBox1.TabIndex = 3;
+ //
+ // numericUpDown1
+ //
+ numericUpDown1.DecimalPlaces = 2;
+ numericUpDown1.Location = new Point(150, 82);
+ numericUpDown1.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
+ numericUpDown1.Name = "numericUpDown1";
+ numericUpDown1.Size = new Size(96, 23);
+ numericUpDown1.TabIndex = 4;
+ numericUpDown1.Value = new decimal(new int[] { 1, 0, 0, 131072 });
+ //
+ // numericUpDown2
+ //
+ numericUpDown2.DecimalPlaces = 3;
+ numericUpDown2.Location = new Point(150, 128);
+ numericUpDown2.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
+ numericUpDown2.Name = "numericUpDown2";
+ numericUpDown2.Size = new Size(96, 23);
+ numericUpDown2.TabIndex = 5;
+ numericUpDown2.Value = new decimal(new int[] { 1, 0, 0, 196608 });
+ //
+ // button1
+ //
+ button1.Location = new Point(211, 200);
+ button1.Name = "button1";
+ button1.Size = new Size(75, 23);
+ button1.TabIndex = 6;
+ button1.Text = "Сохранить";
+ button1.UseVisualStyleBackColor = true;
+ button1.Click += this.button1_Click;
+ //
+ // button2
+ //
+ button2.Location = new Point(292, 200);
+ button2.Name = "button2";
+ button2.Size = new Size(75, 23);
+ button2.TabIndex = 7;
+ button2.Text = "Отмена";
+ button2.UseVisualStyleBackColor = true;
+ //
+ // FormComponent
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(379, 235);
+ Controls.Add(button2);
+ Controls.Add(button1);
+ Controls.Add(numericUpDown2);
+ Controls.Add(numericUpDown1);
+ Controls.Add(textBox1);
+ Controls.Add(label3);
+ Controls.Add(label2);
+ Controls.Add(label1);
+ Name = "FormComponent";
+ StartPosition = FormStartPosition.CenterParent;
+ Text = "Компонент";
+ ((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
+ ((System.ComponentModel.ISupportInitialize)numericUpDown2).EndInit();
+ ResumeLayout(false);
+ PerformLayout();
+ }
+
+ #endregion
+
+ private Label label1;
+ private Label label2;
+ private Label label3;
+ private TextBox textBox1;
+ private NumericUpDown numericUpDown1;
+ private NumericUpDown numericUpDown2;
+ private Button button1;
+ private Button button2;
+ }
+}
\ No newline at end of file
diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.cs
new file mode 100644
index 0000000..bae89e1
--- /dev/null
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.cs
@@ -0,0 +1,20 @@
+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;
+
+namespace ProjectConfectionaryFactory.Forms
+{
+ public partial class FormComponent : Form
+ {
+ public FormComponent()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.resx b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.resx
new file mode 100644
index 0000000..8b2ff64
--- /dev/null
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Forms/FormComponent.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/ProjectConfectionaryFactory/ProjectConfectionaryFactory/ProjectConfectionaryFactory.csproj b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/ProjectConfectionaryFactory.csproj
index 894afcd..6734a77 100644
--- a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/ProjectConfectionaryFactory.csproj
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/ProjectConfectionaryFactory.csproj
@@ -12,4 +12,23 @@
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Properties/Resources.Designer.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..285e3dd
--- /dev/null
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Properties/Resources.Designer.cs
@@ -0,0 +1,73 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjectConfectionaryFactory.Properties {
+ using System;
+
+
+ ///
+ /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
+ ///
+ // Этот класс создан автоматически классом StronglyTypedResourceBuilder
+ // с помощью такого средства, как ResGen или Visual Studio.
+ // Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
+ // с параметром /str или перестройте свой проект VS.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ProjectConfectionaryFactory.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Перезаписывает свойство CurrentUICulture текущего потока для всех
+ /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Croissant {
+ get {
+ object obj = ResourceManager.GetObject("Croissant", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Properties/Resources.resx b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Properties/Resources.resx
new file mode 100644
index 0000000..cbb684f
--- /dev/null
+++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Properties/Resources.resx
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+ ..\Resources\Croissant.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Resources/Croissant.jpg b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Resources/Croissant.jpg
new file mode 100644
index 0000000..14691e7
Binary files /dev/null and b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Resources/Croissant.jpg differ