main form fix
This commit is contained in:
parent
c106704f19
commit
3f16a1bd0e
33
ComputersShop/ComputersShopView/FormMain.Designer.cs
generated
33
ComputersShop/ComputersShopView/FormMain.Designer.cs
generated
@ -30,8 +30,8 @@
|
|||||||
{
|
{
|
||||||
menuStrip = new MenuStrip();
|
menuStrip = new MenuStrip();
|
||||||
dictionaryToolStripMenuItem = new ToolStripMenuItem();
|
dictionaryToolStripMenuItem = new ToolStripMenuItem();
|
||||||
computerToolStripMenuItem = new ToolStripMenuItem();
|
|
||||||
componentsToolStripMenuItem = new ToolStripMenuItem();
|
componentsToolStripMenuItem = new ToolStripMenuItem();
|
||||||
|
computerToolStripMenuItem = new ToolStripMenuItem();
|
||||||
clientsToolStripMenuItem = new ToolStripMenuItem();
|
clientsToolStripMenuItem = new ToolStripMenuItem();
|
||||||
implementersToolStripMenuItem = new ToolStripMenuItem();
|
implementersToolStripMenuItem = new ToolStripMenuItem();
|
||||||
отчётыToolStripMenuItem = new ToolStripMenuItem();
|
отчётыToolStripMenuItem = new ToolStripMenuItem();
|
||||||
@ -43,13 +43,14 @@
|
|||||||
buttonCreateOrder = new Button();
|
buttonCreateOrder = new Button();
|
||||||
buttonIssuedOrder = new Button();
|
buttonIssuedOrder = new Button();
|
||||||
buttonRef = new Button();
|
buttonRef = new Button();
|
||||||
|
почтаToolStripMenuItem = new ToolStripMenuItem();
|
||||||
menuStrip.SuspendLayout();
|
menuStrip.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// menuStrip
|
// menuStrip
|
||||||
//
|
//
|
||||||
menuStrip.Items.AddRange(new ToolStripItem[] { dictionaryToolStripMenuItem, отчётыToolStripMenuItem, doWorkToolStripMenuItem });
|
menuStrip.Items.AddRange(new ToolStripItem[] { dictionaryToolStripMenuItem, отчётыToolStripMenuItem, doWorkToolStripMenuItem, почтаToolStripMenuItem });
|
||||||
menuStrip.Location = new Point(0, 0);
|
menuStrip.Location = new Point(0, 0);
|
||||||
menuStrip.Name = "menuStrip";
|
menuStrip.Name = "menuStrip";
|
||||||
menuStrip.Size = new Size(1047, 24);
|
menuStrip.Size = new Size(1047, 24);
|
||||||
@ -63,31 +64,31 @@
|
|||||||
dictionaryToolStripMenuItem.Size = new Size(94, 20);
|
dictionaryToolStripMenuItem.Size = new Size(94, 20);
|
||||||
dictionaryToolStripMenuItem.Text = "Справочники";
|
dictionaryToolStripMenuItem.Text = "Справочники";
|
||||||
//
|
//
|
||||||
// computerToolStripMenuItem
|
|
||||||
//
|
|
||||||
computerToolStripMenuItem.Name = "computerToolStripMenuItem";
|
|
||||||
computerToolStripMenuItem.Size = new Size(180, 22);
|
|
||||||
computerToolStripMenuItem.Text = "Компьютеры";
|
|
||||||
computerToolStripMenuItem.Click += ComputersToolStripMenuItem_Click;
|
|
||||||
//
|
|
||||||
// componentsToolStripMenuItem
|
// componentsToolStripMenuItem
|
||||||
//
|
//
|
||||||
componentsToolStripMenuItem.Name = "componentsToolStripMenuItem";
|
componentsToolStripMenuItem.Name = "componentsToolStripMenuItem";
|
||||||
componentsToolStripMenuItem.Size = new Size(180, 22);
|
componentsToolStripMenuItem.Size = new Size(149, 22);
|
||||||
componentsToolStripMenuItem.Text = "Компоненты";
|
componentsToolStripMenuItem.Text = "Компоненты";
|
||||||
componentsToolStripMenuItem.Click += ComponentsToolStripMenuItem_Click;
|
componentsToolStripMenuItem.Click += ComponentsToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
|
// computerToolStripMenuItem
|
||||||
|
//
|
||||||
|
computerToolStripMenuItem.Name = "computerToolStripMenuItem";
|
||||||
|
computerToolStripMenuItem.Size = new Size(149, 22);
|
||||||
|
computerToolStripMenuItem.Text = "Компьютеры";
|
||||||
|
computerToolStripMenuItem.Click += ComputersToolStripMenuItem_Click;
|
||||||
|
//
|
||||||
// clientsToolStripMenuItem
|
// clientsToolStripMenuItem
|
||||||
//
|
//
|
||||||
clientsToolStripMenuItem.Name = "clientsToolStripMenuItem";
|
clientsToolStripMenuItem.Name = "clientsToolStripMenuItem";
|
||||||
clientsToolStripMenuItem.Size = new Size(180, 22);
|
clientsToolStripMenuItem.Size = new Size(149, 22);
|
||||||
clientsToolStripMenuItem.Text = "Клиенты";
|
clientsToolStripMenuItem.Text = "Клиенты";
|
||||||
clientsToolStripMenuItem.Click += ClientsToolStripMenuItem_Click;
|
clientsToolStripMenuItem.Click += ClientsToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// implementersToolStripMenuItem
|
// implementersToolStripMenuItem
|
||||||
//
|
//
|
||||||
implementersToolStripMenuItem.Name = "implementersToolStripMenuItem";
|
implementersToolStripMenuItem.Name = "implementersToolStripMenuItem";
|
||||||
implementersToolStripMenuItem.Size = new Size(180, 22);
|
implementersToolStripMenuItem.Size = new Size(149, 22);
|
||||||
implementersToolStripMenuItem.Text = "Исполнители";
|
implementersToolStripMenuItem.Text = "Исполнители";
|
||||||
implementersToolStripMenuItem.Click += ImplementersToolStripMenuItem_Click;
|
implementersToolStripMenuItem.Click += ImplementersToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
@ -165,6 +166,13 @@
|
|||||||
buttonRef.UseVisualStyleBackColor = true;
|
buttonRef.UseVisualStyleBackColor = true;
|
||||||
buttonRef.Click += ButtonRef_Click;
|
buttonRef.Click += ButtonRef_Click;
|
||||||
//
|
//
|
||||||
|
// почтаToolStripMenuItem
|
||||||
|
//
|
||||||
|
почтаToolStripMenuItem.Name = "почтаToolStripMenuItem";
|
||||||
|
почтаToolStripMenuItem.Size = new Size(53, 20);
|
||||||
|
почтаToolStripMenuItem.Text = "Почта";
|
||||||
|
почтаToolStripMenuItem.Click += почтаToolStripMenuItem_Click;
|
||||||
|
//
|
||||||
// FormMain
|
// FormMain
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
@ -203,5 +211,6 @@
|
|||||||
private ToolStripMenuItem clientsToolStripMenuItem;
|
private ToolStripMenuItem clientsToolStripMenuItem;
|
||||||
private ToolStripMenuItem implementersToolStripMenuItem;
|
private ToolStripMenuItem implementersToolStripMenuItem;
|
||||||
private ToolStripMenuItem doWorkToolStripMenuItem;
|
private ToolStripMenuItem doWorkToolStripMenuItem;
|
||||||
|
private ToolStripMenuItem почтаToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -229,6 +229,15 @@ namespace ComputersShopView
|
|||||||
MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void почтаToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var service = Program.ServiceProvider?.GetService(typeof(FormMails));
|
||||||
|
if (service is FormMails form)
|
||||||
|
{
|
||||||
|
form.ShowDialog();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void ButtonRef_Click(object sender, EventArgs e)
|
private void ButtonRef_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
LoadData();
|
LoadData();
|
||||||
|
Loading…
Reference in New Issue
Block a user