This commit is contained in:
2021-07-17 22:32:53 +05:00
parent 66cba2972e
commit 3a6f617ad9
105 changed files with 4671 additions and 63719 deletions

Binary file not shown.

View File

@ -164,12 +164,13 @@ namespace Diplom_B.DB
public Dogovor Dogovor { get; set; } public Dogovor Dogovor { get; set; }
[ForeignKey("Status")] [ForeignKey("Status")]
public int? StatNum { get; set; } public int StatusId { get; set; }
public Status Status { get; set; } public Status Status { get; set; }
public DateTime DataPostavki { get; set; } public DateTime DataPostavki { get; set; }
public string Primechanie { get; set; } public string Primechanie { get; set; }
[ForeignKey("Izdelie")]
public int? IzdelieId { get; set; } public int? IzdelieId { get; set; }
public Izdelie Izdelie { get; set; } public Izdelie Izdelie { get; set; }
} }

View File

@ -29,7 +29,7 @@ namespace Diplom_B.DB
Izd = 3, Izd = 3,
Zak = 3, Zak = 3,
Set = 3, Set = 3,
Default = 1 Default = 6
}); });
} }
} }
@ -45,6 +45,100 @@ namespace Diplom_B.DB
DB.SaveChanges(); DB.SaveChanges();
} }
} }
public static User[] ListUser(string filter = "")
{
var f = filter.ToLower();
try
{
using (var db = new MainDB())
{
if (string.IsNullOrEmpty(filter))
{
var tmp = (from a in db.Users
select a).ToArray();
return tmp;
}
else
{
var tmp = (from a in db.Users
where
a.Id.ToString().ToLower().Contains(f) ||
a.Name.ToLower().Contains(f)
select a).ToArray();
return tmp;
}
}
}
catch { throw; }
}
public static User GetUser(int id)
{
try
{
using (var db = new MainDB())
{
var res = (from a in db.Users
where a.Id == id
select a).ToArray();
if (res.Length != 1)
return null;
else
return res[0];
}
}
catch { throw; }
}
public static void AddUser(User usr)
{
try
{
using (var db = new MainDB())
{
db.Users.Add(usr);
db.SaveChanges();
}
}
catch { throw; }
}
public static void ChangeUser(User usr)
{
try
{
using (var db = new MainDB())
{
db.Users.Update(usr);
db.SaveChanges();
}
}
catch { throw; }
}
public static void DeleteUser(User usr)
{
try
{
using (var db = new MainDB())
{
db.Users.Remove(usr);
db.SaveChanges();
}
}
catch { throw; }
}
public static string[] GetUserList()
{
try
{
using (var db = new MainDB())
{
var usrName = (from a in db.Users
select a.Name).ToArray();
return usrName;
}
}
catch { throw; }
}
public static Izdelie[] ListIzdelie(string filter = "") public static Izdelie[] ListIzdelie(string filter = "")
{ {
var f = filter.ToLower(); var f = filter.ToLower();
@ -131,6 +225,38 @@ namespace Diplom_B.DB
} }
catch { throw; } catch { throw; }
} }
public static Postavka[] GetPostavkyFromIzdeliya(int id)
{
try
{
using (var db = new MainDB())
{
var post = (from a in db.Postavki
where a.IzdelieId == id
select a).ToArray();
return post;
}
}
catch { throw; }
}
public static Dogovor[] GetDogovoryFromIzdeliya(int id)
{
try
{
using (var db = new MainDB())
{
var post = (from a in db.DogIzds
where a.IzdelieId == id
select a.Dogovor).ToList();
for (var i = 0; i < post.Count; i++)
while ((post.FindAll(x => x.Id == post[i].Id).Count > 1))
post.RemoveAt(i);
return post.ToArray();
}
}
catch { throw; }
}
public static Izveschenie[] ListIzveschenie(string filter = "") public static Izveschenie[] ListIzveschenie(string filter = "")
{ {
@ -205,7 +331,7 @@ namespace Diplom_B.DB
} }
catch { throw; } catch { throw; }
} }
public static void DeleteIzdelie(Izveschenie izv) public static void DeleteIzveschenie(Izveschenie izv)
{ {
try try
{ {
@ -217,6 +343,21 @@ namespace Diplom_B.DB
} }
catch { throw; } catch { throw; }
} }
public static Document[] GetDocumentyFromIzvechenie(int id)
{
try
{
using (var db = new MainDB())
{
var doc = (from a in db.Documenty
where a.DocIzvs.FindAll(x => x.IzveschenieId == id).Count > 0
select a).ToArray();
return doc;
}
}
catch { throw; }
}
public static Zakazchik[] ListZakazchik(string filter = "") public static Zakazchik[] ListZakazchik(string filter = "")
{ {
@ -301,7 +442,240 @@ namespace Diplom_B.DB
} }
catch { throw; } catch { throw; }
} }
public static string[] GetZakazchikList()
{
try
{
using (var db = new MainDB())
{
var usrName = (from a in db.Zakazchiki
select a.Name).ToArray();
return usrName;
}
}
catch { throw; }
}
public static Dogovor[] GetDogovoryFromZakazchik(int id)
{
try
{
using (var db = new MainDB())
{
var dog = (from a in db.Dogovory
where a.ZakazchikId == id
select a).ToArray();
return dog;
}
}
catch { throw; }
}
public static Status[] ListStatus()
{
try
{
using (var db = new MainDB())
{
var tmp = (from a in db.Statusy
select a).ToArray();
return tmp;
}
}
catch { throw; }
}
public static Status GetStatus(int id)
{
try
{
using (var db = new MainDB())
{
var res = (from a in db.Statusy
where a.Id == id
select a).ToArray();
if (res.Length != 1)
return null;
else
return res[0];
}
}
catch { throw; }
}
public static void AddStatus(Status stat)
{
try
{
using (var db = new MainDB())
{
db.Statusy.Add(stat);
db.SaveChanges();
}
}
catch { throw; }
}
public static void ChangeStatus(Status stat)
{
try
{
using (var db = new MainDB())
{
db.Statusy.Update(stat);
db.SaveChanges();
}
}
catch { throw; }
}
public static void DeleteStatus(Status stat)
{
try
{
using (var db = new MainDB())
{
db.Statusy.Remove(stat);
db.SaveChanges();
}
}
catch { throw; }
}
public static Postavka[] GetPostavkyFromStatus(int id)
{
try
{
using (var db = new MainDB())
{
var post = (from a in db.Postavki
where a.StatusId == id
select a).ToArray();
return post;
}
}
catch { throw; }
}
public static string[] GetStatusList()
{
try
{
using (var db = new MainDB())
{
var tmp = (from a in db.Statusy
select a.Stat).ToArray();
return tmp;
}
}
catch { throw; }
}
public static int? GetIdStatus(string name)
{
try
{
using (var db = new MainDB())
{
var tmp = (from a in db.Statusy
where a.Stat == name
select a.Id).ToArray();
if (tmp.Length == 1)
return tmp[0];
else
return null;
}
}
catch { throw; }
}
public static Postavka[] ListPostavka(string filter = "")
{
var f = filter.ToLower();
try
{
using (var db = new MainDB())
{
if (string.IsNullOrEmpty(filter))
{
var tmp = (from a in db.Postavki
select a).ToArray();
return tmp;
}
else
{
var tmp = (from a in db.Postavki
where
a.Id.ToString().ToLower().Contains(f) ||
a.ZavNum.ToLower().Contains(f) ||
a.DataPostavki.ToString("yyyy.MM.dd").ToLower().Contains(f) ||
a.Status.Stat.ToString().ToLower().Contains(f) ||
a.Primechanie.ToLower().Contains(f)
select a).ToArray();
return tmp;
}
}
}
catch { throw; }
}
public static Postavka GetPostavka(int id)
{
try
{
using (var db = new MainDB())
{
var res = (from a in db.Postavki
where a.Id == id
select a).ToArray();
if (res.Length != 1)
return null;
else
return res[0];
}
}
catch { throw; }
}
public static void AddPostavka(Postavka post)
{
try
{
using (var db = new MainDB())
{
db.Postavki.Add(post);
db.SaveChanges();
}
}
catch { throw; }
}
public static void ChangePostavka(Postavka post)
{
try
{
using (var db = new MainDB())
{
db.Postavki.Update(post);
db.SaveChanges();
}
}
catch { throw; }
}
public static void DeletePostavka(Postavka post)
{
try
{
using (var db = new MainDB())
{
db.Postavki.Remove(post);
db.SaveChanges();
}
}
catch { throw; }
}
public static string[] GetPostavkiZavNum()
{
try
{
using (var db = new MainDB())
{
var post = (from a in db.Postavki
select a.ZavNum).ToArray();
return post;
}
}
catch { throw; }
}
} }
} }

View File

@ -278,6 +278,12 @@
<Compile Include="DogForm.Designer.cs"> <Compile Include="DogForm.Designer.cs">
<DependentUpon>DogForm.cs</DependentUpon> <DependentUpon>DogForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="StatForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="StatForm.Designer.cs">
<DependentUpon>StatForm.cs</DependentUpon>
</Compile>
<Compile Include="SetForm.cs"> <Compile Include="SetForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -323,12 +329,21 @@
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="User.cs" /> <Compile Include="User.cs" />
<EmbeddedResource Include="DocForm.resx">
<DependentUpon>DocForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="DogForm.resx"> <EmbeddedResource Include="DogForm.resx">
<DependentUpon>DogForm.cs</DependentUpon> <DependentUpon>DogForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="StatForm.resx">
<DependentUpon>StatForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="PostForm.resx"> <EmbeddedResource Include="PostForm.resx">
<DependentUpon>PostForm.cs</DependentUpon> <DependentUpon>PostForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="SetForm.resx">
<DependentUpon>SetForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ZakForm.resx"> <EmbeddedResource Include="ZakForm.resx">
<DependentUpon>ZakForm.cs</DependentUpon> <DependentUpon>ZakForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

107
DocForm.Designer.cs generated
View File

@ -29,12 +29,107 @@ namespace Diplom_B
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.dogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ClientSize = new System.Drawing.Size(800, 450); this.docToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Text = "DocForm"; this.izvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.postToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.izdToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.zakToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.setToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuStrip.SuspendLayout();
this.SuspendLayout();
//
// mainMenuStrip
//
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.dogToolStripMenuItem,
this.docToolStripMenuItem,
this.izvToolStripMenuItem,
this.postToolStripMenuItem,
this.izdToolStripMenuItem,
this.zakToolStripMenuItem,
this.setToolStripMenuItem});
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
this.mainMenuStrip.Name = "mainMenuStrip";
this.mainMenuStrip.Size = new System.Drawing.Size(800, 24);
this.mainMenuStrip.TabIndex = 20;
this.mainMenuStrip.Text = "menuStrip1";
//
// dogToolStripMenuItem
//
this.dogToolStripMenuItem.Name = "dogToolStripMenuItem";
this.dogToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
this.dogToolStripMenuItem.Text = "Договор";
this.dogToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// docToolStripMenuItem
//
this.docToolStripMenuItem.Name = "docToolStripMenuItem";
this.docToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.docToolStripMenuItem.Text = "Документы";
this.docToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// izvToolStripMenuItem
//
this.izvToolStripMenuItem.Name = "izvToolStripMenuItem";
this.izvToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.izvToolStripMenuItem.Text = "Извещения";
this.izvToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// postToolStripMenuItem
//
this.postToolStripMenuItem.Name = "postToolStripMenuItem";
this.postToolStripMenuItem.Size = new System.Drawing.Size(71, 20);
this.postToolStripMenuItem.Text = "Поставки";
this.postToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// izdToolStripMenuItem
//
this.izdToolStripMenuItem.Name = "izdToolStripMenuItem";
this.izdToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
this.izdToolStripMenuItem.Text = "Изделия";
this.izdToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// zakToolStripMenuItem
//
this.zakToolStripMenuItem.Name = "zakToolStripMenuItem";
this.zakToolStripMenuItem.Size = new System.Drawing.Size(76, 20);
this.zakToolStripMenuItem.Text = "Заказчики";
this.zakToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// setToolStripMenuItem
//
this.setToolStripMenuItem.Name = "setToolStripMenuItem";
this.setToolStripMenuItem.Size = new System.Drawing.Size(79, 20);
this.setToolStripMenuItem.Text = "Настройки";
this.setToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// DocForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.mainMenuStrip);
this.Name = "DocForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "DocForm";
this.mainMenuStrip.ResumeLayout(false);
this.mainMenuStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
}
private System.Windows.Forms.MenuStrip mainMenuStrip;
private System.Windows.Forms.ToolStripMenuItem dogToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem docToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem postToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izdToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem zakToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem setToolStripMenuItem;
}
} }

View File

@ -16,5 +16,22 @@ namespace Diplom_B
{ {
InitializeComponent(); InitializeComponent();
} }
private void MenuItem_Click(object sender, EventArgs e)
{
object form = null;
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[0]) { form = new DogForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[1]) { form = new DocForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[2]) { form = new IzvForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[3]) { form = new PostForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[4]) { form = new IzdForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[5]) { form = new ZakForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[6]) { form = new SetForm(); }
if (form != null)
{
this.Hide();
((Form)form).Closed += (s, args) => this.Close();
((Form)form).Show();
}
}
} }
} }

123
DocForm.resx Normal file
View File

@ -0,0 +1,123 @@
<?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
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<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
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
mimetype set.
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
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
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
: 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
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="mainMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

112
DogForm.Designer.cs generated
View File

@ -29,19 +29,107 @@ namespace Diplom_B
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.SuspendLayout(); this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
// this.dogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
// DogForm this.docToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
// this.izvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.postToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.izdToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ClientSize = new System.Drawing.Size(800, 450); this.zakToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Name = "DogForm"; this.setToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Text = "Form1"; this.mainMenuStrip.SuspendLayout();
this.ResumeLayout(false); this.SuspendLayout();
//
// mainMenuStrip
//
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.dogToolStripMenuItem,
this.docToolStripMenuItem,
this.izvToolStripMenuItem,
this.postToolStripMenuItem,
this.izdToolStripMenuItem,
this.zakToolStripMenuItem,
this.setToolStripMenuItem});
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
this.mainMenuStrip.Name = "mainMenuStrip";
this.mainMenuStrip.Size = new System.Drawing.Size(800, 24);
this.mainMenuStrip.TabIndex = 20;
this.mainMenuStrip.Text = "menuStrip1";
//
// dogToolStripMenuItem
//
this.dogToolStripMenuItem.Name = "dogToolStripMenuItem";
this.dogToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
this.dogToolStripMenuItem.Text = "Договор";
this.dogToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// docToolStripMenuItem
//
this.docToolStripMenuItem.Name = "docToolStripMenuItem";
this.docToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.docToolStripMenuItem.Text = "Документы";
this.docToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// izvToolStripMenuItem
//
this.izvToolStripMenuItem.Name = "izvToolStripMenuItem";
this.izvToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.izvToolStripMenuItem.Text = "Извещения";
this.izvToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// postToolStripMenuItem
//
this.postToolStripMenuItem.Name = "postToolStripMenuItem";
this.postToolStripMenuItem.Size = new System.Drawing.Size(71, 20);
this.postToolStripMenuItem.Text = "Поставки";
this.postToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// izdToolStripMenuItem
//
this.izdToolStripMenuItem.Name = "izdToolStripMenuItem";
this.izdToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
this.izdToolStripMenuItem.Text = "Изделия";
this.izdToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// zakToolStripMenuItem
//
this.zakToolStripMenuItem.Name = "zakToolStripMenuItem";
this.zakToolStripMenuItem.Size = new System.Drawing.Size(76, 20);
this.zakToolStripMenuItem.Text = "Заказчики";
this.zakToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// setToolStripMenuItem
//
this.setToolStripMenuItem.Name = "setToolStripMenuItem";
this.setToolStripMenuItem.Size = new System.Drawing.Size(79, 20);
this.setToolStripMenuItem.Text = "Настройки";
this.setToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// DogForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.mainMenuStrip);
this.Name = "DogForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.mainMenuStrip.ResumeLayout(false);
this.mainMenuStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
}
private System.Windows.Forms.MenuStrip mainMenuStrip;
private System.Windows.Forms.ToolStripMenuItem dogToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem docToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem postToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izdToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem zakToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem setToolStripMenuItem;
}
} }

View File

@ -12,9 +12,29 @@ namespace Diplom_B
{ {
public partial class DogForm : Form public partial class DogForm : Form
{ {
public DogForm() public int? returnId = null;
private bool needReturn = false;
public DogForm(bool needReturn = false)
{ {
this.needReturn = needReturn;
InitializeComponent(); InitializeComponent();
} }
private void MenuItem_Click(object sender, EventArgs e)
{
object form = null;
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[0]) { form = new DogForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[1]) { form = new DocForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[2]) { form = new IzvForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[3]) { form = new PostForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[4]) { form = new IzdForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[5]) { form = new ZakForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[6]) { form = new SetForm(); }
if (form != null)
{
this.Hide();
((Form)form).Closed += (s, args) => this.Close();
((Form)form).Show();
}
}
} }
} }

View File

@ -117,4 +117,7 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="mainMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root> </root>

829
IzdForm.Designer.cs generated
View File

@ -29,410 +29,425 @@ namespace Diplom_B
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.idzGridView = new System.Windows.Forms.DataGridView(); this.idzGridView = new System.Windows.Forms.DataGridView();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.clearButton = new System.Windows.Forms.Button(); this.clearButton = new System.Windows.Forms.Button();
this.idLable = new System.Windows.Forms.Label(); this.idLable = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label();
this.nameBox = new System.Windows.Forms.TextBox(); this.nameBox = new System.Windows.Forms.TextBox();
this.errorLable = new System.Windows.Forms.Label(); this.errorLable = new System.Windows.Forms.Label();
this.selectButton = new System.Windows.Forms.Button(); this.selectButton = new System.Windows.Forms.Button();
this.deleteButton = new System.Windows.Forms.Button(); this.deleteButton = new System.Windows.Forms.Button();
this.changeButton = new System.Windows.Forms.Button(); this.changeButton = new System.Windows.Forms.Button();
this.createButton = new System.Windows.Forms.Button(); this.createButton = new System.Windows.Forms.Button();
this.label9 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label();
this.glavKonstrBox = new System.Windows.Forms.TextBox(); this.glavKonstrBox = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.vedBox = new System.Windows.Forms.TextBox(); this.vedBox = new System.Windows.Forms.TextBox();
this.otdRazBox = new System.Windows.Forms.TextBox(); this.otdRazBox = new System.Windows.Forms.TextBox();
this.cenaBox = new System.Windows.Forms.TextBox(); this.cenaBox = new System.Windows.Forms.TextBox();
this.literaBox = new System.Windows.Forms.TextBox(); this.literaBox = new System.Windows.Forms.TextBox();
this.shifrBox = new System.Windows.Forms.TextBox(); this.shifrBox = new System.Windows.Forms.TextBox();
this.decBox = new System.Windows.Forms.TextBox(); this.decBox = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.resetSearchButton = new System.Windows.Forms.Button(); this.resetSearchButton = new System.Windows.Forms.Button();
this.searchBox = new System.Windows.Forms.TextBox(); this.searchBox = new System.Windows.Forms.TextBox();
this.mainMenuStrip = new System.Windows.Forms.MenuStrip(); this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
this.договорToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.dogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.документыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.docToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.извещенияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.izvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.поставкиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.postToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.изделияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.izdToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.заказчикиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.zakToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.настройкиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.setToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.idzGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.idzGridView)).BeginInit();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.mainMenuStrip.SuspendLayout(); this.mainMenuStrip.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// idzGridView // idzGridView
// //
this.idzGridView.AllowUserToAddRows = false; this.idzGridView.AllowUserToAddRows = false;
this.idzGridView.AllowUserToDeleteRows = false; this.idzGridView.AllowUserToDeleteRows = false;
this.idzGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.idzGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.idzGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.idzGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.idzGridView.Location = new System.Drawing.Point(345, 55); this.idzGridView.Location = new System.Drawing.Point(345, 55);
this.idzGridView.Name = "idzGridView"; this.idzGridView.Name = "idzGridView";
this.idzGridView.RowHeadersVisible = false; this.idzGridView.RowHeadersVisible = false;
this.idzGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.idzGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.idzGridView.Size = new System.Drawing.Size(684, 292); this.idzGridView.Size = new System.Drawing.Size(684, 292);
this.idzGridView.TabIndex = 12; this.idzGridView.TabIndex = 12;
// this.idzGridView.CurrentCellChanged += new System.EventHandler(this.izdGridView_CurrentCellChanged);
// groupBox1 //
// // groupBox1
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) //
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left))); | System.Windows.Forms.AnchorStyles.Left)));
this.groupBox1.Controls.Add(this.clearButton); this.groupBox1.Controls.Add(this.clearButton);
this.groupBox1.Controls.Add(this.idLable); this.groupBox1.Controls.Add(this.idLable);
this.groupBox1.Controls.Add(this.label10); this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.nameBox); this.groupBox1.Controls.Add(this.nameBox);
this.groupBox1.Controls.Add(this.errorLable); this.groupBox1.Controls.Add(this.errorLable);
this.groupBox1.Controls.Add(this.selectButton); this.groupBox1.Controls.Add(this.selectButton);
this.groupBox1.Controls.Add(this.deleteButton); this.groupBox1.Controls.Add(this.deleteButton);
this.groupBox1.Controls.Add(this.changeButton); this.groupBox1.Controls.Add(this.changeButton);
this.groupBox1.Controls.Add(this.createButton); this.groupBox1.Controls.Add(this.createButton);
this.groupBox1.Controls.Add(this.label9); this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.glavKonstrBox); this.groupBox1.Controls.Add(this.glavKonstrBox);
this.groupBox1.Controls.Add(this.label8); this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.label7); this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.label6); this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.vedBox); this.groupBox1.Controls.Add(this.vedBox);
this.groupBox1.Controls.Add(this.otdRazBox); this.groupBox1.Controls.Add(this.otdRazBox);
this.groupBox1.Controls.Add(this.cenaBox); this.groupBox1.Controls.Add(this.cenaBox);
this.groupBox1.Controls.Add(this.literaBox); this.groupBox1.Controls.Add(this.literaBox);
this.groupBox1.Controls.Add(this.shifrBox); this.groupBox1.Controls.Add(this.shifrBox);
this.groupBox1.Controls.Add(this.decBox); this.groupBox1.Controls.Add(this.decBox);
this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Location = new System.Drawing.Point(12, 27); this.groupBox1.Location = new System.Drawing.Point(12, 27);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(324, 320); this.groupBox1.Size = new System.Drawing.Size(324, 320);
this.groupBox1.TabIndex = 11; this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "Информационное окно"; this.groupBox1.Text = "Информационное окно";
// //
// clearButton // clearButton
// //
this.clearButton.Location = new System.Drawing.Point(9, 255); this.clearButton.Location = new System.Drawing.Point(9, 255);
this.clearButton.Name = "clearButton"; this.clearButton.Name = "clearButton";
this.clearButton.Size = new System.Drawing.Size(75, 23); this.clearButton.Size = new System.Drawing.Size(75, 23);
this.clearButton.TabIndex = 24; this.clearButton.TabIndex = 24;
this.clearButton.Text = "Сбросить"; this.clearButton.Text = "Сбросить";
this.clearButton.UseVisualStyleBackColor = true; this.clearButton.UseVisualStyleBackColor = true;
// this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
// idLable //
// // idLable
this.idLable.AutoSize = true; //
this.idLable.Location = new System.Drawing.Point(129, 24); this.idLable.AutoSize = true;
this.idLable.Name = "idLable"; this.idLable.Location = new System.Drawing.Point(129, 24);
this.idLable.Size = new System.Drawing.Size(69, 13); this.idLable.Name = "idLable";
this.idLable.TabIndex = 23; this.idLable.Size = new System.Drawing.Size(69, 13);
this.idLable.Text = "Номер в БД"; this.idLable.TabIndex = 23;
// this.idLable.Text = "Номер в БД";
// label10 //
// // label10
this.label10.AutoSize = true; //
this.label10.Location = new System.Drawing.Point(40, 50); this.label10.AutoSize = true;
this.label10.Name = "label10"; this.label10.Location = new System.Drawing.Point(40, 50);
this.label10.Size = new System.Drawing.Size(83, 13); this.label10.Name = "label10";
this.label10.TabIndex = 22; this.label10.Size = new System.Drawing.Size(83, 13);
this.label10.Text = "Наименование"; this.label10.TabIndex = 22;
// this.label10.Text = "Наименование";
// nameBox //
// // nameBox
this.nameBox.Location = new System.Drawing.Point(129, 47); //
this.nameBox.Name = "nameBox"; this.nameBox.Location = new System.Drawing.Point(129, 47);
this.nameBox.Size = new System.Drawing.Size(185, 20); this.nameBox.Name = "nameBox";
this.nameBox.TabIndex = 21; this.nameBox.Size = new System.Drawing.Size(185, 20);
// this.nameBox.TabIndex = 21;
// errorLable //
// // errorLable
this.errorLable.AutoSize = true; //
this.errorLable.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.errorLable.AutoSize = true;
this.errorLable.ForeColor = System.Drawing.Color.Red; this.errorLable.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.errorLable.Location = new System.Drawing.Point(6, 289); this.errorLable.ForeColor = System.Drawing.Color.Red;
this.errorLable.Name = "errorLable"; this.errorLable.Location = new System.Drawing.Point(6, 289);
this.errorLable.Size = new System.Drawing.Size(149, 13); this.errorLable.Name = "errorLable";
this.errorLable.TabIndex = 20; this.errorLable.Size = new System.Drawing.Size(149, 13);
this.errorLable.Text = "Информация об ошибке"; this.errorLable.TabIndex = 20;
this.errorLable.Visible = false; this.errorLable.Text = "Информация об ошибке";
// this.errorLable.Visible = false;
// selectButton //
// // selectButton
this.selectButton.Location = new System.Drawing.Point(239, 284); //
this.selectButton.Name = "selectButton"; this.selectButton.Location = new System.Drawing.Point(239, 284);
this.selectButton.Size = new System.Drawing.Size(75, 23); this.selectButton.Name = "selectButton";
this.selectButton.TabIndex = 19; this.selectButton.Size = new System.Drawing.Size(75, 23);
this.selectButton.Text = "Выбрать"; this.selectButton.TabIndex = 19;
this.selectButton.UseVisualStyleBackColor = true; this.selectButton.Text = "Выбрать";
this.selectButton.Visible = false; this.selectButton.UseVisualStyleBackColor = true;
// this.selectButton.Visible = false;
// deleteButton this.selectButton.Click += new System.EventHandler(this.selectButton_Click);
// //
this.deleteButton.Location = new System.Drawing.Point(87, 255); // deleteButton
this.deleteButton.Name = "deleteButton"; //
this.deleteButton.Size = new System.Drawing.Size(75, 23); this.deleteButton.Location = new System.Drawing.Point(87, 255);
this.deleteButton.TabIndex = 18; this.deleteButton.Name = "deleteButton";
this.deleteButton.Text = "Удалить"; this.deleteButton.Size = new System.Drawing.Size(75, 23);
this.deleteButton.UseVisualStyleBackColor = true; this.deleteButton.TabIndex = 18;
// this.deleteButton.Text = "Удалить";
// changeButton this.deleteButton.UseVisualStyleBackColor = true;
// this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
this.changeButton.Location = new System.Drawing.Point(163, 255); //
this.changeButton.Name = "changeButton"; // changeButton
this.changeButton.Size = new System.Drawing.Size(75, 23); //
this.changeButton.TabIndex = 17; this.changeButton.Location = new System.Drawing.Point(163, 255);
this.changeButton.Text = "Изменить"; this.changeButton.Name = "changeButton";
this.changeButton.UseVisualStyleBackColor = true; this.changeButton.Size = new System.Drawing.Size(75, 23);
// this.changeButton.TabIndex = 17;
// createButton this.changeButton.Text = "Изменить";
// this.changeButton.UseVisualStyleBackColor = true;
this.createButton.Location = new System.Drawing.Point(239, 255); this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
this.createButton.Name = "createButton"; //
this.createButton.Size = new System.Drawing.Size(75, 23); // createButton
this.createButton.TabIndex = 16; //
this.createButton.Text = "Создать"; this.createButton.Location = new System.Drawing.Point(239, 255);
this.createButton.UseVisualStyleBackColor = true; this.createButton.Name = "createButton";
// this.createButton.Size = new System.Drawing.Size(75, 23);
// label9 this.createButton.TabIndex = 16;
// this.createButton.Text = "Создать";
this.label9.AutoSize = true; this.createButton.UseVisualStyleBackColor = true;
this.label9.Location = new System.Drawing.Point(6, 232); this.createButton.Click += new System.EventHandler(this.createButton_Click);
this.label9.Name = "label9"; //
this.label9.Size = new System.Drawing.Size(117, 13); // label9
this.label9.TabIndex = 15; //
this.label9.Text = "Главный конструктор"; this.label9.AutoSize = true;
// this.label9.Location = new System.Drawing.Point(6, 232);
// glavKonstrBox this.label9.Name = "label9";
// this.label9.Size = new System.Drawing.Size(117, 13);
this.glavKonstrBox.Location = new System.Drawing.Point(129, 229); this.label9.TabIndex = 15;
this.glavKonstrBox.Name = "glavKonstrBox"; this.label9.Text = "Главный конструктор";
this.glavKonstrBox.Size = new System.Drawing.Size(185, 20); //
this.glavKonstrBox.TabIndex = 14; // glavKonstrBox
// //
// label8 this.glavKonstrBox.Location = new System.Drawing.Point(129, 229);
// this.glavKonstrBox.Name = "glavKonstrBox";
this.label8.AutoSize = true; this.glavKonstrBox.Size = new System.Drawing.Size(185, 20);
this.label8.Location = new System.Drawing.Point(71, 206); this.glavKonstrBox.TabIndex = 14;
this.label8.Name = "label8"; //
this.label8.Size = new System.Drawing.Size(52, 13); // label8
this.label8.TabIndex = 13; //
this.label8.Text = "Ведущий"; this.label8.AutoSize = true;
// this.label8.Location = new System.Drawing.Point(71, 206);
// label7 this.label8.Name = "label8";
// this.label8.Size = new System.Drawing.Size(52, 13);
this.label7.AutoSize = true; this.label8.TabIndex = 13;
this.label7.Location = new System.Drawing.Point(18, 180); this.label8.Text = "Ведущий";
this.label7.Name = "label7"; //
this.label7.Size = new System.Drawing.Size(105, 13); // label7
this.label7.TabIndex = 12; //
this.label7.Text = "Отдел-разработчик"; this.label7.AutoSize = true;
// this.label7.Location = new System.Drawing.Point(18, 180);
// label6 this.label7.Name = "label7";
// this.label7.Size = new System.Drawing.Size(105, 13);
this.label6.AutoSize = true; this.label7.TabIndex = 12;
this.label6.Location = new System.Drawing.Point(90, 154); this.label7.Text = "Отдел-разработчик";
this.label6.Name = "label6"; //
this.label6.Size = new System.Drawing.Size(33, 13); // label6
this.label6.TabIndex = 11; //
this.label6.Text = "Цена"; this.label6.AutoSize = true;
// this.label6.Location = new System.Drawing.Point(90, 154);
// label5 this.label6.Name = "label6";
// this.label6.Size = new System.Drawing.Size(33, 13);
this.label5.AutoSize = true; this.label6.TabIndex = 11;
this.label5.Location = new System.Drawing.Point(79, 128); this.label6.Text = "Цена";
this.label5.Name = "label5"; //
this.label5.Size = new System.Drawing.Size(44, 13); // label5
this.label5.TabIndex = 10; //
this.label5.Text = "Литера"; this.label5.AutoSize = true;
// this.label5.Location = new System.Drawing.Point(79, 128);
// label4 this.label5.Name = "label5";
// this.label5.Size = new System.Drawing.Size(44, 13);
this.label4.AutoSize = true; this.label5.TabIndex = 10;
this.label4.Location = new System.Drawing.Point(87, 102); this.label5.Text = "Литера";
this.label4.Name = "label4"; //
this.label4.Size = new System.Drawing.Size(36, 13); // label4
this.label4.TabIndex = 9; //
this.label4.Text = "Шифр"; this.label4.AutoSize = true;
// this.label4.Location = new System.Drawing.Point(87, 102);
// label3 this.label4.Name = "label4";
// this.label4.Size = new System.Drawing.Size(36, 13);
this.label3.AutoSize = true; this.label4.TabIndex = 9;
this.label3.Location = new System.Drawing.Point(29, 76); this.label4.Text = "Шифр";
this.label3.Name = "label3"; //
this.label3.Size = new System.Drawing.Size(94, 13); // label3
this.label3.TabIndex = 8; //
this.label3.Text = "Децимальный №"; this.label3.AutoSize = true;
// this.label3.Location = new System.Drawing.Point(29, 76);
// vedBox this.label3.Name = "label3";
// this.label3.Size = new System.Drawing.Size(94, 13);
this.vedBox.Location = new System.Drawing.Point(129, 203); this.label3.TabIndex = 8;
this.vedBox.Name = "vedBox"; this.label3.Text = "Децимальный №";
this.vedBox.Size = new System.Drawing.Size(185, 20); //
this.vedBox.TabIndex = 7; // vedBox
// //
// otdRazBox this.vedBox.Location = new System.Drawing.Point(129, 203);
// this.vedBox.Name = "vedBox";
this.otdRazBox.Location = new System.Drawing.Point(129, 177); this.vedBox.Size = new System.Drawing.Size(185, 20);
this.otdRazBox.Name = "otdRazBox"; this.vedBox.TabIndex = 7;
this.otdRazBox.Size = new System.Drawing.Size(185, 20); //
this.otdRazBox.TabIndex = 6; // otdRazBox
// //
// cenaBox this.otdRazBox.Location = new System.Drawing.Point(129, 177);
// this.otdRazBox.Name = "otdRazBox";
this.cenaBox.Location = new System.Drawing.Point(129, 151); this.otdRazBox.Size = new System.Drawing.Size(185, 20);
this.cenaBox.Name = "cenaBox"; this.otdRazBox.TabIndex = 6;
this.cenaBox.Size = new System.Drawing.Size(185, 20); //
this.cenaBox.TabIndex = 5; // cenaBox
// //
// literaBox this.cenaBox.Location = new System.Drawing.Point(129, 151);
// this.cenaBox.Name = "cenaBox";
this.literaBox.Location = new System.Drawing.Point(129, 125); this.cenaBox.Size = new System.Drawing.Size(185, 20);
this.literaBox.Name = "literaBox"; this.cenaBox.TabIndex = 5;
this.literaBox.Size = new System.Drawing.Size(185, 20); //
this.literaBox.TabIndex = 4; // literaBox
// //
// shifrBox this.literaBox.Location = new System.Drawing.Point(129, 125);
// this.literaBox.Name = "literaBox";
this.shifrBox.Location = new System.Drawing.Point(129, 99); this.literaBox.Size = new System.Drawing.Size(185, 20);
this.shifrBox.Name = "shifrBox"; this.literaBox.TabIndex = 4;
this.shifrBox.Size = new System.Drawing.Size(185, 20); //
this.shifrBox.TabIndex = 3; // shifrBox
// //
// decBox this.shifrBox.Location = new System.Drawing.Point(129, 99);
// this.shifrBox.Name = "shifrBox";
this.decBox.Location = new System.Drawing.Point(129, 73); this.shifrBox.Size = new System.Drawing.Size(185, 20);
this.decBox.Name = "decBox"; this.shifrBox.TabIndex = 3;
this.decBox.Size = new System.Drawing.Size(185, 20); //
this.decBox.TabIndex = 2; // decBox
// //
// label2 this.decBox.Location = new System.Drawing.Point(129, 73);
// this.decBox.Name = "decBox";
this.label2.AutoSize = true; this.decBox.Size = new System.Drawing.Size(185, 20);
this.label2.Location = new System.Drawing.Point(105, 24); this.decBox.TabIndex = 2;
this.label2.Name = "label2"; //
this.label2.Size = new System.Drawing.Size(18, 13); // label2
this.label2.TabIndex = 0; //
this.label2.Text = "№"; this.label2.AutoSize = true;
// this.label2.Location = new System.Drawing.Point(105, 24);
// label1 this.label2.Name = "label2";
// this.label2.Size = new System.Drawing.Size(18, 13);
this.label1.AutoSize = true; this.label2.TabIndex = 0;
this.label1.Location = new System.Drawing.Point(342, 32); this.label2.Text = "№";
this.label1.Name = "label1"; //
this.label1.Size = new System.Drawing.Size(39, 13); // label1
this.label1.TabIndex = 10; //
this.label1.Text = "Поиск"; this.label1.AutoSize = true;
// this.label1.Location = new System.Drawing.Point(342, 32);
// resetSearchButton this.label1.Name = "label1";
// this.label1.Size = new System.Drawing.Size(39, 13);
this.resetSearchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label1.TabIndex = 10;
this.resetSearchButton.Location = new System.Drawing.Point(954, 27); this.label1.Text = "Поиск";
this.resetSearchButton.Name = "resetSearchButton"; //
this.resetSearchButton.Size = new System.Drawing.Size(75, 23); // resetSearchButton
this.resetSearchButton.TabIndex = 9; //
this.resetSearchButton.Text = "Сбросить"; this.resetSearchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.resetSearchButton.UseVisualStyleBackColor = true; this.resetSearchButton.Location = new System.Drawing.Point(954, 27);
// this.resetSearchButton.Name = "resetSearchButton";
// searchBox this.resetSearchButton.Size = new System.Drawing.Size(75, 23);
// this.resetSearchButton.TabIndex = 9;
this.searchBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.resetSearchButton.Text = "Сбросить";
this.resetSearchButton.UseVisualStyleBackColor = true;
this.resetSearchButton.Click += new System.EventHandler(this.resetSearchButton_Click);
//
// searchBox
//
this.searchBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.searchBox.Location = new System.Drawing.Point(387, 29); this.searchBox.Location = new System.Drawing.Point(387, 29);
this.searchBox.Name = "searchBox"; this.searchBox.Name = "searchBox";
this.searchBox.Size = new System.Drawing.Size(561, 20); this.searchBox.Size = new System.Drawing.Size(561, 20);
this.searchBox.TabIndex = 8; this.searchBox.TabIndex = 8;
this.searchBox.Tag = ""; this.searchBox.Tag = "";
// this.searchBox.TextChanged += new System.EventHandler(this.searchBox_TextChanged);
// mainMenuStrip //
// // mainMenuStrip
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { //
this.договорToolStripMenuItem, this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.документыToolStripMenuItem, this.dogToolStripMenuItem,
this.извещенияToolStripMenuItem, this.docToolStripMenuItem,
this.поставкиToolStripMenuItem, this.izvToolStripMenuItem,
this.изделияToolStripMenuItem, this.postToolStripMenuItem,
this.заказчикиToolStripMenuItem, this.izdToolStripMenuItem,
this.настройкиToolStripMenuItem}); this.zakToolStripMenuItem,
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0); this.setToolStripMenuItem});
this.mainMenuStrip.Name = "mainMenuStrip"; this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
this.mainMenuStrip.Size = new System.Drawing.Size(1041, 24); this.mainMenuStrip.Name = "mainMenuStrip";
this.mainMenuStrip.TabIndex = 13; this.mainMenuStrip.Size = new System.Drawing.Size(1041, 24);
this.mainMenuStrip.Text = "menuStrip1"; this.mainMenuStrip.TabIndex = 13;
// this.mainMenuStrip.Text = "menuStrip1";
// договорToolStripMenuItem //
// // dogToolStripMenuItem
this.договорToolStripMenuItem.Name = оговорToolStripMenuItem"; //
this.договорToolStripMenuItem.Size = new System.Drawing.Size(66, 20); this.dogToolStripMenuItem.Name = "dogToolStripMenuItem";
this.договорToolStripMenuItem.Text = "Договор"; this.dogToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
// this.dogToolStripMenuItem.Text = "Договор";
// документыToolStripMenuItem this.dogToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
// //
this.документыToolStripMenuItem.Name = окументыToolStripMenuItem"; // docToolStripMenuItem
this.документыToolStripMenuItem.Size = new System.Drawing.Size(82, 20); //
this.документыToolStripMenuItem.Text = "Документы"; this.docToolStripMenuItem.Name = "docToolStripMenuItem";
// this.docToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
// извещенияToolStripMenuItem this.docToolStripMenuItem.Text = "Документы";
// this.docToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.извещенияToolStripMenuItem.Name = "извещенияToolStripMenuItem"; //
this.извещенияToolStripMenuItem.Size = new System.Drawing.Size(82, 20); // izvToolStripMenuItem
this.извещенияToolStripMenuItem.Text = "Извещения"; //
// this.izvToolStripMenuItem.Name = "izvToolStripMenuItem";
// поставкиToolStripMenuItem this.izvToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
// this.izvToolStripMenuItem.Text = "Извещения";
this.поставкиToolStripMenuItem.Name = "поставкиToolStripMenuItem"; this.izvToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.поставкиToolStripMenuItem.Size = new System.Drawing.Size(71, 20); //
this.поставкиToolStripMenuItem.Text = "Поставки"; // postToolStripMenuItem
// //
// изделияToolStripMenuItem this.postToolStripMenuItem.Name = "postToolStripMenuItem";
// this.postToolStripMenuItem.Size = new System.Drawing.Size(71, 20);
this.изделияToolStripMenuItem.Name = "изделияToolStripMenuItem"; this.postToolStripMenuItem.Text = "Поставки";
this.изделияToolStripMenuItem.Size = new System.Drawing.Size(65, 20); this.postToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.изделияToolStripMenuItem.Text = "Изделия"; //
// // izdToolStripMenuItem
// заказчикиToolStripMenuItem //
// this.izdToolStripMenuItem.Name = "izdToolStripMenuItem";
this.заказчикиToolStripMenuItem.Name = аказчикиToolStripMenuItem"; this.izdToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
this.заказчикиToolStripMenuItem.Size = new System.Drawing.Size(76, 20); this.izdToolStripMenuItem.Text = "Изделия";
this.заказчикиToolStripMenuItem.Text = "Заказчики"; this.izdToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
// //
// настройкиToolStripMenuItem // zakToolStripMenuItem
// //
this.настройкиToolStripMenuItem.Name = астройкиToolStripMenuItem"; this.zakToolStripMenuItem.Name = "zakToolStripMenuItem";
this.настройкиToolStripMenuItem.Size = new System.Drawing.Size(79, 20); this.zakToolStripMenuItem.Size = new System.Drawing.Size(76, 20);
this.настройкиToolStripMenuItem.Text = "Настройки"; this.zakToolStripMenuItem.Text = "Заказчики";
// this.zakToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
// IzdForm //
// // setToolStripMenuItem
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.setToolStripMenuItem.Name = "setToolStripMenuItem";
this.ClientSize = new System.Drawing.Size(1041, 359); this.setToolStripMenuItem.Size = new System.Drawing.Size(79, 20);
this.Controls.Add(this.mainMenuStrip); this.setToolStripMenuItem.Text = "Настройки";
this.Controls.Add(this.idzGridView); this.setToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.Controls.Add(this.groupBox1); //
this.Controls.Add(this.label1); // IzdForm
this.Controls.Add(this.resetSearchButton); //
this.Controls.Add(this.searchBox); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.Name = "IzdForm"; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.ClientSize = new System.Drawing.Size(1041, 359);
this.Text = "Изделия"; this.Controls.Add(this.mainMenuStrip);
((System.ComponentModel.ISupportInitialize)(this.idzGridView)).EndInit(); this.Controls.Add(this.idzGridView);
this.groupBox1.ResumeLayout(false); this.Controls.Add(this.groupBox1);
this.groupBox1.PerformLayout(); this.Controls.Add(this.label1);
this.mainMenuStrip.ResumeLayout(false); this.Controls.Add(this.resetSearchButton);
this.mainMenuStrip.PerformLayout(); this.Controls.Add(this.searchBox);
this.ResumeLayout(false); this.Name = "IzdForm";
this.PerformLayout(); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Изделия";
((System.ComponentModel.ISupportInitialize)(this.idzGridView)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.mainMenuStrip.ResumeLayout(false);
this.mainMenuStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
} }
@ -468,12 +483,12 @@ namespace Diplom_B
private System.Windows.Forms.Button resetSearchButton; private System.Windows.Forms.Button resetSearchButton;
private System.Windows.Forms.TextBox searchBox; private System.Windows.Forms.TextBox searchBox;
private System.Windows.Forms.MenuStrip mainMenuStrip; private System.Windows.Forms.MenuStrip mainMenuStrip;
private System.Windows.Forms.ToolStripMenuItem договорToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem dogToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem документыToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem docToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem извещенияToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem izvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem поставкиToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem postToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem изделияToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem izdToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem заказчикиToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem zakToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem настройкиToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem setToolStripMenuItem;
} }
} }

View File

@ -13,6 +13,8 @@ namespace Diplom_B
{ {
public partial class IzdForm : Form public partial class IzdForm : Form
{ {
public int? returnId = null;
private bool needReturn = false;
private void ClearBoxes() private void ClearBoxes()
{ {
idLable.Text = ""; idLable.Text = "";
@ -109,19 +111,20 @@ namespace Diplom_B
filterDrop.Start(); filterDrop.Start();
} }
public IzdForm() public IzdForm(bool needReturn = false)
{ {
InitializeComponent(); InitializeComponent();
try try
{ {
this.needReturn = needReturn;
UpdateTable(WorkDB.ListIzdelie(searchBox.Text)); UpdateTable(WorkDB.ListIzdelie(searchBox.Text));
Init();
} }
catch catch { ShowError(); }
{
ShowError();
}
} }
private void izdGridView_CurrentCellChanged(object sender, EventArgs e) private void izdGridView_CurrentCellChanged(object sender, EventArgs e)
{ {
ClearBoxes(); ClearBoxes();
@ -201,6 +204,9 @@ namespace Diplom_B
if (!int.TryParse(idLable.Text, out int idRes)) { ShowError("Изделие не выбрано."); return; } if (!int.TryParse(idLable.Text, out int idRes)) { ShowError("Изделие не выбрано."); return; }
var izd = WorkDB.GetIzdelie(idRes); var izd = WorkDB.GetIzdelie(idRes);
if (izd == null) { ShowError("Изделия не существует."); return; } if (izd == null) { ShowError("Изделия не существует."); return; }
if (WorkDB.GetPostavkyFromIzdeliya(izd.Id).Length > 0) { ShowError("Есть связанные поставки."); return; }
if (WorkDB.GetDogovoryFromIzdeliya(izd.Id).Length > 0) { ShowError("Есть связанные договора."); return; }
try try
{ {
WorkDB.DeleteIzdelie(izd); WorkDB.DeleteIzdelie(izd);
@ -208,5 +214,55 @@ namespace Diplom_B
catch { ShowError(); } catch { ShowError(); }
UpdateTable(WorkDB.ListIzdelie(searchBox.Text)); UpdateTable(WorkDB.ListIzdelie(searchBox.Text));
} }
}
private void selectButton_Click(object sender, EventArgs e)
{
if (int.TryParse(idLable.Text, out int idRes))
returnId = idRes;
this.Close();
}
private void Init()
{
if (Program.user == null) this.Close();
if (this.needReturn)
{
selectButton.Visible = true;
mainMenuStrip.Visible = false;
}
else
{
mainMenuStrip.Items[0].Enabled = Program.user.Usr.Dog > 0;
mainMenuStrip.Items[1].Enabled = Program.user.Usr.Doc > 0;
mainMenuStrip.Items[2].Enabled = Program.user.Usr.Izv > 0;
mainMenuStrip.Items[3].Enabled = Program.user.Usr.Post > 0;
mainMenuStrip.Items[4].Enabled = Program.user.Usr.Izd > 0;
mainMenuStrip.Items[5].Enabled = Program.user.Usr.Zak > 0;
mainMenuStrip.Items[6].Enabled = Program.user.Usr.Set > 0;
mainMenuStrip.Items[4].Enabled = false;
}
{
deleteButton.Enabled = Program.user.Usr.Izd > 2;
createButton.Enabled = Program.user.Usr.Izd > 2;
changeButton.Enabled = Program.user.Usr.Izd > 1;
}
}
private void MenuItem_Click(object sender, EventArgs e)
{
object form = null;
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[0]) { form = new DogForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[1]) { form = new DocForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[2]) { form = new IzvForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[3]) { form = new PostForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[4]) { form = new IzdForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[5]) { form = new ZakForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[6]) { form = new SetForm(); }
if (form != null)
{
this.Hide();
((Form)form).Closed += (s, args) => this.Close();
((Form)form).Show();
}
}
}
} }

840
IzvForm.Designer.cs generated
View File

@ -29,420 +29,432 @@ namespace Diplom_B
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.selectFileDialog = new System.Windows.Forms.OpenFileDialog(); this.selectFileDialog = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
this.mainMenuStrip = new System.Windows.Forms.MenuStrip(); this.izvGridView = new System.Windows.Forms.DataGridView();
this.договорToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.resetSearchButton = new System.Windows.Forms.Button();
this.izvGridView = new System.Windows.Forms.DataGridView(); this.label10 = new System.Windows.Forms.Label();
this.resetSearchButton = new System.Windows.Forms.Button(); this.searchBox = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.searchBox = new System.Windows.Forms.TextBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.linkFileLabel = new System.Windows.Forms.LinkLabel();
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.resetFileButton = new System.Windows.Forms.Button();
this.linkFileLabel = new System.Windows.Forms.LinkLabel(); this.fileLoadButton = new System.Windows.Forms.Button();
this.resetFileButton = new System.Windows.Forms.Button(); this.errorLabel = new System.Windows.Forms.Label();
this.fileLoadButton = new System.Windows.Forms.Button(); this.selectButton = new System.Windows.Forms.Button();
this.errorLabel = new System.Windows.Forms.Label(); this.createButton = new System.Windows.Forms.Button();
this.SelectIzvButton = new System.Windows.Forms.Button(); this.changeButton = new System.Windows.Forms.Button();
this.createIzvButton = new System.Windows.Forms.Button(); this.idLabel = new System.Windows.Forms.Label();
this.changeIzvButton = new System.Windows.Forms.Button(); this.resetButton = new System.Windows.Forms.Button();
this.idLabel = new System.Windows.Forms.Label(); this.deleteButton = new System.Windows.Forms.Button();
this.ResetIzvButton = new System.Windows.Forms.Button(); this.ukazVnedrBox = new System.Windows.Forms.TextBox();
this.deleteIzvButton = new System.Windows.Forms.Button(); this.ukazZadBox = new System.Windows.Forms.TextBox();
this.ukazVnedrBox = new System.Windows.Forms.TextBox(); this.izmNumBox = new System.Windows.Forms.TextBox();
this.ukazZadBox = new System.Windows.Forms.TextBox(); this.invNumBox = new System.Windows.Forms.TextBox();
this.izmNumBox = new System.Windows.Forms.TextBox(); this.izvNumBox = new System.Windows.Forms.TextBox();
this.invNumBox = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label();
this.izvNumBox = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
this.label1 = new System.Windows.Forms.Label(); this.dogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.документыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.docToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.извещенияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.izvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.поставкиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.postToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.изделияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.izdToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.заказчикиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.zakToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.настройкиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.setToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuStrip.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.izvGridView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.izvGridView)).BeginInit(); this.groupBox1.SuspendLayout();
this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout();
this.groupBox2.SuspendLayout(); this.mainMenuStrip.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// selectFileDialog // selectFileDialog
// //
this.selectFileDialog.Title = "Выбор файла для загрузки"; this.selectFileDialog.Title = "Выбор файла для загрузки";
// //
// mainMenuStrip // saveFileDialog
// //
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.saveFileDialog.Title = "Сохранить файл как";
this.договорToolStripMenuItem, //
this.документыToolStripMenuItem, // izvGridView
this.извещенияToolStripMenuItem, //
this.поставкиToolStripMenuItem, this.izvGridView.AllowUserToAddRows = false;
this.изделияToolStripMenuItem, this.izvGridView.AllowUserToDeleteRows = false;
this.заказчикиToolStripMenuItem, this.izvGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.настройкиToolStripMenuItem});
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
this.mainMenuStrip.Name = "mainMenuStrip";
this.mainMenuStrip.Size = new System.Drawing.Size(869, 24);
this.mainMenuStrip.TabIndex = 0;
this.mainMenuStrip.Text = "menuStrip1";
//
// договорToolStripMenuItem
//
this.договорToolStripMenuItem.Name = оговорToolStripMenuItem";
this.договорToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
this.договорToolStripMenuItem.Text = "Договор";
//
// izvGridView
//
this.izvGridView.AllowUserToAddRows = false;
this.izvGridView.AllowUserToDeleteRows = false;
this.izvGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.izvGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.izvGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.izvGridView.Location = new System.Drawing.Point(324, 53); this.izvGridView.Location = new System.Drawing.Point(324, 53);
this.izvGridView.Name = "izvGridView"; this.izvGridView.Name = "izvGridView";
this.izvGridView.RowHeadersVisible = false; this.izvGridView.RowHeadersVisible = false;
this.izvGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.izvGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.izvGridView.Size = new System.Drawing.Size(533, 256); this.izvGridView.Size = new System.Drawing.Size(533, 256);
this.izvGridView.TabIndex = 19; this.izvGridView.TabIndex = 19;
// this.izvGridView.CurrentCellChanged += new System.EventHandler(this.izvGridView_CurrentCellChanged);
// resetSearchButton //
// // resetSearchButton
this.resetSearchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); //
this.resetSearchButton.Location = new System.Drawing.Point(782, 25); this.resetSearchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.resetSearchButton.Name = "resetSearchButton"; this.resetSearchButton.Location = new System.Drawing.Point(782, 25);
this.resetSearchButton.Size = new System.Drawing.Size(75, 23); this.resetSearchButton.Name = "resetSearchButton";
this.resetSearchButton.TabIndex = 18; this.resetSearchButton.Size = new System.Drawing.Size(75, 23);
this.resetSearchButton.Text = "Сбросить"; this.resetSearchButton.TabIndex = 18;
this.resetSearchButton.UseVisualStyleBackColor = true; this.resetSearchButton.Text = "Сбросить";
// this.resetSearchButton.UseVisualStyleBackColor = true;
// label10 this.resetSearchButton.Click += new System.EventHandler(this.resetSearchButton_Click);
// //
this.label10.AutoSize = true; // label10
this.label10.Location = new System.Drawing.Point(321, 30); //
this.label10.Name = "label10"; this.label10.AutoSize = true;
this.label10.Size = new System.Drawing.Size(39, 13); this.label10.Location = new System.Drawing.Point(321, 30);
this.label10.TabIndex = 17; this.label10.Name = "label10";
this.label10.Text = "Поиск"; this.label10.Size = new System.Drawing.Size(39, 13);
// this.label10.TabIndex = 17;
// searchBox this.label10.Text = "Поиск";
// //
this.searchBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) // searchBox
//
this.searchBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.searchBox.Location = new System.Drawing.Point(366, 27); this.searchBox.Location = new System.Drawing.Point(366, 27);
this.searchBox.Name = "searchBox"; this.searchBox.Name = "searchBox";
this.searchBox.Size = new System.Drawing.Size(410, 20); this.searchBox.Size = new System.Drawing.Size(410, 20);
this.searchBox.TabIndex = 16; this.searchBox.TabIndex = 16;
// this.searchBox.TextChanged += new System.EventHandler(this.searchBox_TextChanged);
// groupBox1 //
// // groupBox1
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) //
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left))); | System.Windows.Forms.AnchorStyles.Left)));
this.groupBox1.Controls.Add(this.groupBox2); this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.errorLabel); this.groupBox1.Controls.Add(this.errorLabel);
this.groupBox1.Controls.Add(this.SelectIzvButton); this.groupBox1.Controls.Add(this.selectButton);
this.groupBox1.Controls.Add(this.createIzvButton); this.groupBox1.Controls.Add(this.createButton);
this.groupBox1.Controls.Add(this.changeIzvButton); this.groupBox1.Controls.Add(this.changeButton);
this.groupBox1.Controls.Add(this.idLabel); this.groupBox1.Controls.Add(this.idLabel);
this.groupBox1.Controls.Add(this.ResetIzvButton); this.groupBox1.Controls.Add(this.resetButton);
this.groupBox1.Controls.Add(this.deleteIzvButton); this.groupBox1.Controls.Add(this.deleteButton);
this.groupBox1.Controls.Add(this.ukazVnedrBox); this.groupBox1.Controls.Add(this.ukazVnedrBox);
this.groupBox1.Controls.Add(this.ukazZadBox); this.groupBox1.Controls.Add(this.ukazZadBox);
this.groupBox1.Controls.Add(this.izmNumBox); this.groupBox1.Controls.Add(this.izmNumBox);
this.groupBox1.Controls.Add(this.invNumBox); this.groupBox1.Controls.Add(this.invNumBox);
this.groupBox1.Controls.Add(this.izvNumBox); this.groupBox1.Controls.Add(this.izvNumBox);
this.groupBox1.Controls.Add(this.label6); this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(12, 27); this.groupBox1.Location = new System.Drawing.Point(12, 27);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(303, 282); this.groupBox1.Size = new System.Drawing.Size(303, 282);
this.groupBox1.TabIndex = 15; this.groupBox1.TabIndex = 15;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "Информационное окно"; this.groupBox1.Text = "Информационное окно";
// //
// groupBox2 // groupBox2
// //
this.groupBox2.Controls.Add(this.linkFileLabel); this.groupBox2.Controls.Add(this.linkFileLabel);
this.groupBox2.Controls.Add(this.resetFileButton); this.groupBox2.Controls.Add(this.resetFileButton);
this.groupBox2.Controls.Add(this.fileLoadButton); this.groupBox2.Controls.Add(this.fileLoadButton);
this.groupBox2.Location = new System.Drawing.Point(6, 175); this.groupBox2.Location = new System.Drawing.Point(6, 175);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(290, 40); this.groupBox2.Size = new System.Drawing.Size(290, 40);
this.groupBox2.TabIndex = 33; this.groupBox2.TabIndex = 33;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "Файл"; this.groupBox2.Text = "Файл";
// //
// linkFileLabel // linkFileLabel
// //
this.linkFileLabel.AutoSize = true; this.linkFileLabel.AutoSize = true;
this.linkFileLabel.Location = new System.Drawing.Point(6, 16); this.linkFileLabel.Location = new System.Drawing.Point(6, 16);
this.linkFileLabel.Name = "linkFileLabel"; this.linkFileLabel.Name = "linkFileLabel";
this.linkFileLabel.Size = new System.Drawing.Size(93, 13); this.linkFileLabel.Size = new System.Drawing.Size(93, 13);
this.linkFileLabel.TabIndex = 22; this.linkFileLabel.TabIndex = 22;
this.linkFileLabel.TabStop = true; this.linkFileLabel.TabStop = true;
this.linkFileLabel.Text = "Ссылка на файл."; this.linkFileLabel.Text = "Ссылка на файл.";
this.linkFileLabel.Visible = false; this.linkFileLabel.Visible = false;
this.linkFileLabel.VisitedLinkColor = System.Drawing.Color.Blue; this.linkFileLabel.VisitedLinkColor = System.Drawing.Color.Blue;
// this.linkFileLabel.Click += new System.EventHandler(this.linkFileLabel_Click);
// resetFileButton //
// // resetFileButton
this.resetFileButton.Location = new System.Drawing.Point(142, 11); //
this.resetFileButton.Name = "resetFileButton"; this.resetFileButton.Location = new System.Drawing.Point(142, 11);
this.resetFileButton.Size = new System.Drawing.Size(68, 23); this.resetFileButton.Name = "resetFileButton";
this.resetFileButton.TabIndex = 32; this.resetFileButton.Size = new System.Drawing.Size(68, 23);
this.resetFileButton.Text = "Удалить"; this.resetFileButton.TabIndex = 32;
this.resetFileButton.UseVisualStyleBackColor = true; this.resetFileButton.Text = "Удалить";
// this.resetFileButton.UseVisualStyleBackColor = true;
// fileLoadButton this.resetFileButton.Click += new System.EventHandler(this.resetFileButton_Click);
// //
this.fileLoadButton.Location = new System.Drawing.Point(216, 11); // fileLoadButton
this.fileLoadButton.Name = "fileLoadButton"; //
this.fileLoadButton.Size = new System.Drawing.Size(68, 23); this.fileLoadButton.Location = new System.Drawing.Point(216, 11);
this.fileLoadButton.TabIndex = 23; this.fileLoadButton.Name = "fileLoadButton";
this.fileLoadButton.Text = "Выбрать"; this.fileLoadButton.Size = new System.Drawing.Size(68, 23);
this.fileLoadButton.UseVisualStyleBackColor = true; this.fileLoadButton.TabIndex = 23;
// this.fileLoadButton.Text = "Выбрать";
// errorLabel this.fileLoadButton.UseVisualStyleBackColor = true;
// this.fileLoadButton.Click += new System.EventHandler(this.fileLoadButton_Click);
this.errorLabel.AutoSize = true; //
this.errorLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); // errorLabel
this.errorLabel.ForeColor = System.Drawing.Color.Red; //
this.errorLabel.Location = new System.Drawing.Point(6, 255); this.errorLabel.AutoSize = true;
this.errorLabel.Name = "errorLabel"; this.errorLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.errorLabel.Size = new System.Drawing.Size(149, 13); this.errorLabel.ForeColor = System.Drawing.Color.Red;
this.errorLabel.TabIndex = 31; this.errorLabel.Location = new System.Drawing.Point(6, 255);
this.errorLabel.Text = "Информация об ошибке"; this.errorLabel.Name = "errorLabel";
this.errorLabel.Visible = false; this.errorLabel.Size = new System.Drawing.Size(149, 13);
// this.errorLabel.TabIndex = 31;
// SelectIzvButton this.errorLabel.Text = "Информация об ошибке";
// this.errorLabel.Visible = false;
this.SelectIzvButton.Location = new System.Drawing.Point(228, 250); //
this.SelectIzvButton.Name = "SelectIzvButton"; // selectButton
this.SelectIzvButton.Size = new System.Drawing.Size(68, 23); //
this.SelectIzvButton.TabIndex = 30; this.selectButton.Location = new System.Drawing.Point(228, 250);
this.SelectIzvButton.Text = "Выбрать"; this.selectButton.Name = "selectButton";
this.SelectIzvButton.UseVisualStyleBackColor = true; this.selectButton.Size = new System.Drawing.Size(68, 23);
this.SelectIzvButton.Visible = false; this.selectButton.TabIndex = 30;
// this.selectButton.Text = "Выбрать";
// createIzvButton this.selectButton.UseVisualStyleBackColor = true;
// this.selectButton.Visible = false;
this.createIzvButton.Location = new System.Drawing.Point(228, 221); //
this.createIzvButton.Name = "createIzvButton"; // createButton
this.createIzvButton.Size = new System.Drawing.Size(68, 23); //
this.createIzvButton.TabIndex = 26; this.createButton.Location = new System.Drawing.Point(228, 221);
this.createIzvButton.Text = "Создать"; this.createButton.Name = "createButton";
this.createIzvButton.UseVisualStyleBackColor = true; this.createButton.Size = new System.Drawing.Size(68, 23);
// this.createButton.TabIndex = 26;
// changeIzvButton this.createButton.Text = "Создать";
// this.createButton.UseVisualStyleBackColor = true;
this.changeIzvButton.Location = new System.Drawing.Point(154, 221); this.createButton.Click += new System.EventHandler(this.createButton_Click);
this.changeIzvButton.Name = "changeIzvButton"; //
this.changeIzvButton.Size = new System.Drawing.Size(68, 23); // changeButton
this.changeIzvButton.TabIndex = 27; //
this.changeIzvButton.Text = "Изменить"; this.changeButton.Location = new System.Drawing.Point(154, 221);
this.changeIzvButton.UseVisualStyleBackColor = true; this.changeButton.Name = "changeButton";
// this.changeButton.Size = new System.Drawing.Size(68, 23);
// idLabel this.changeButton.TabIndex = 27;
// this.changeButton.Text = "Изменить";
this.idLabel.AutoSize = true; this.changeButton.UseVisualStyleBackColor = true;
this.idLabel.Location = new System.Drawing.Point(102, 22); this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
this.idLabel.Name = "idLabel"; //
this.idLabel.Size = new System.Drawing.Size(69, 13); // idLabel
this.idLabel.TabIndex = 24; //
this.idLabel.Text = "Номер в БД"; this.idLabel.AutoSize = true;
// this.idLabel.Location = new System.Drawing.Point(102, 22);
// ResetIzvButton this.idLabel.Name = "idLabel";
// this.idLabel.Size = new System.Drawing.Size(69, 13);
this.ResetIzvButton.Location = new System.Drawing.Point(6, 221); this.idLabel.TabIndex = 24;
this.ResetIzvButton.Name = "ResetIzvButton"; this.idLabel.Text = "Номер в БД";
this.ResetIzvButton.Size = new System.Drawing.Size(68, 23); //
this.ResetIzvButton.TabIndex = 29; // resetButton
this.ResetIzvButton.Text = "Сбросить"; //
this.ResetIzvButton.UseVisualStyleBackColor = true; this.resetButton.Location = new System.Drawing.Point(6, 221);
// this.resetButton.Name = "resetButton";
// deleteIzvButton this.resetButton.Size = new System.Drawing.Size(68, 23);
// this.resetButton.TabIndex = 29;
this.deleteIzvButton.Location = new System.Drawing.Point(80, 221); this.resetButton.Text = "Сбросить";
this.deleteIzvButton.Name = "deleteIzvButton"; this.resetButton.UseVisualStyleBackColor = true;
this.deleteIzvButton.Size = new System.Drawing.Size(68, 23); this.resetButton.Click += new System.EventHandler(this.resetButton_Click);
this.deleteIzvButton.TabIndex = 28; //
this.deleteIzvButton.Text = "Удалить"; // deleteButton
this.deleteIzvButton.UseVisualStyleBackColor = true; //
// this.deleteButton.Location = new System.Drawing.Point(80, 221);
// ukazVnedrBox this.deleteButton.Name = "deleteButton";
// this.deleteButton.Size = new System.Drawing.Size(68, 23);
this.ukazVnedrBox.Location = new System.Drawing.Point(102, 149); this.deleteButton.TabIndex = 28;
this.ukazVnedrBox.Name = "ukazVnedrBox"; this.deleteButton.Text = "Удалить";
this.ukazVnedrBox.Size = new System.Drawing.Size(194, 20); this.deleteButton.UseVisualStyleBackColor = true;
this.ukazVnedrBox.TabIndex = 21; this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
// //
// ukazZadBox // ukazVnedrBox
// //
this.ukazZadBox.Location = new System.Drawing.Point(102, 123); this.ukazVnedrBox.Location = new System.Drawing.Point(102, 149);
this.ukazZadBox.Name = "ukazZadBox"; this.ukazVnedrBox.Name = "ukazVnedrBox";
this.ukazZadBox.Size = new System.Drawing.Size(194, 20); this.ukazVnedrBox.Size = new System.Drawing.Size(194, 20);
this.ukazZadBox.TabIndex = 20; this.ukazVnedrBox.TabIndex = 21;
// //
// izmNumBox // ukazZadBox
// //
this.izmNumBox.Location = new System.Drawing.Point(102, 97); this.ukazZadBox.Location = new System.Drawing.Point(102, 123);
this.izmNumBox.Name = "izmNumBox"; this.ukazZadBox.Name = "ukazZadBox";
this.izmNumBox.Size = new System.Drawing.Size(194, 20); this.ukazZadBox.Size = new System.Drawing.Size(194, 20);
this.izmNumBox.TabIndex = 19; this.ukazZadBox.TabIndex = 20;
// //
// invNumBox // izmNumBox
// //
this.invNumBox.Location = new System.Drawing.Point(102, 71); this.izmNumBox.Location = new System.Drawing.Point(102, 97);
this.invNumBox.Name = "invNumBox"; this.izmNumBox.Name = "izmNumBox";
this.invNumBox.Size = new System.Drawing.Size(194, 20); this.izmNumBox.Size = new System.Drawing.Size(194, 20);
this.invNumBox.TabIndex = 18; this.izmNumBox.TabIndex = 19;
// //
// izvNumBox // invNumBox
// //
this.izvNumBox.Location = new System.Drawing.Point(102, 45); this.invNumBox.Location = new System.Drawing.Point(102, 71);
this.izvNumBox.Name = "izvNumBox"; this.invNumBox.Name = "invNumBox";
this.izvNumBox.Size = new System.Drawing.Size(194, 20); this.invNumBox.Size = new System.Drawing.Size(194, 20);
this.izvNumBox.TabIndex = 17; this.invNumBox.TabIndex = 18;
// //
// label6 // izvNumBox
// //
this.label6.AutoSize = true; this.izvNumBox.Location = new System.Drawing.Point(102, 45);
this.label6.Location = new System.Drawing.Point(15, 152); this.izvNumBox.Name = "izvNumBox";
this.label6.Name = "label6"; this.izvNumBox.Size = new System.Drawing.Size(194, 20);
this.label6.Size = new System.Drawing.Size(81, 13); this.izvNumBox.TabIndex = 17;
this.label6.TabIndex = 14; //
this.label6.Text = "Указ. о внедр."; // label6
// //
// label5 this.label6.AutoSize = true;
// this.label6.Location = new System.Drawing.Point(15, 152);
this.label5.AutoSize = true; this.label6.Name = "label6";
this.label5.Location = new System.Drawing.Point(12, 126); this.label6.Size = new System.Drawing.Size(81, 13);
this.label5.Name = "label5"; this.label6.TabIndex = 14;
this.label5.Size = new System.Drawing.Size(84, 13); this.label6.Text = "Указ. о внедр.";
this.label5.TabIndex = 13; //
this.label5.Text = "Указ. о заделе"; // label5
// //
// label4 this.label5.AutoSize = true;
// this.label5.Location = new System.Drawing.Point(12, 126);
this.label4.AutoSize = true; this.label5.Name = "label5";
this.label4.Location = new System.Drawing.Point(17, 100); this.label5.Size = new System.Drawing.Size(84, 13);
this.label4.Name = "label4"; this.label5.TabIndex = 13;
this.label4.Size = new System.Drawing.Size(79, 13); this.label5.Text = "Указ. о заделе";
this.label4.TabIndex = 12; //
this.label4.Text = "Изменение №"; // label4
// //
// label3 this.label4.AutoSize = true;
// this.label4.Location = new System.Drawing.Point(17, 100);
this.label3.AutoSize = true; this.label4.Name = "label4";
this.label3.Location = new System.Drawing.Point(6, 74); this.label4.Size = new System.Drawing.Size(79, 13);
this.label3.Name = "label3"; this.label4.TabIndex = 12;
this.label3.Size = new System.Drawing.Size(90, 13); this.label4.Text = "Изменение №";
this.label3.TabIndex = 11; //
this.label3.Text = "Инвентарный №"; // label3
// //
// label2 this.label3.AutoSize = true;
// this.label3.Location = new System.Drawing.Point(6, 74);
this.label2.AutoSize = true; this.label3.Name = "label3";
this.label2.Location = new System.Drawing.Point(16, 48); this.label3.Size = new System.Drawing.Size(90, 13);
this.label2.Name = "label2"; this.label3.TabIndex = 11;
this.label2.Size = new System.Drawing.Size(80, 13); this.label3.Text = "Инвентарный №";
this.label2.TabIndex = 10; //
this.label2.Text = "Извещение №"; // label2
// //
// label1 this.label2.AutoSize = true;
// this.label2.Location = new System.Drawing.Point(16, 48);
this.label1.AutoSize = true; this.label2.Name = "label2";
this.label1.Location = new System.Drawing.Point(78, 22); this.label2.Size = new System.Drawing.Size(80, 13);
this.label1.Name = "label1"; this.label2.TabIndex = 10;
this.label1.Size = new System.Drawing.Size(18, 13); this.label2.Text = "Извещение №";
this.label1.TabIndex = 9; //
this.label1.Text = "№"; // label1
// //
// документыToolStripMenuItem this.label1.AutoSize = true;
// this.label1.Location = new System.Drawing.Point(78, 22);
this.документыToolStripMenuItem.Name = окументыToolStripMenuItem"; this.label1.Name = "label1";
this.документыToolStripMenuItem.Size = new System.Drawing.Size(82, 20); this.label1.Size = new System.Drawing.Size(18, 13);
this.документыToolStripMenuItem.Text = "Документы"; this.label1.TabIndex = 9;
// this.label1.Text = "№";
// извещенияToolStripMenuItem //
// // mainMenuStrip
this.извещенияToolStripMenuItem.Name = "извещенияToolStripMenuItem"; //
this.извещенияToolStripMenuItem.Size = new System.Drawing.Size(82, 20); this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.извещенияToolStripMenuItem.Text = "Извещения"; this.dogToolStripMenuItem,
// this.docToolStripMenuItem,
// поставкиToolStripMenuItem this.izvToolStripMenuItem,
// this.postToolStripMenuItem,
this.поставкиToolStripMenuItem.Name = "поставкиToolStripMenuItem"; this.izdToolStripMenuItem,
this.поставкиToolStripMenuItem.Size = new System.Drawing.Size(71, 20); this.zakToolStripMenuItem,
this.поставкиToolStripMenuItem.Text = "Поставки"; this.setToolStripMenuItem});
// this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
// изделияToolStripMenuItem this.mainMenuStrip.Name = "mainMenuStrip";
// this.mainMenuStrip.Size = new System.Drawing.Size(869, 24);
this.изделияToolStripMenuItem.Name = "изделияToolStripMenuItem"; this.mainMenuStrip.TabIndex = 21;
this.изделияToolStripMenuItem.Size = new System.Drawing.Size(65, 20); this.mainMenuStrip.Text = "menuStrip1";
this.изделияToolStripMenuItem.Text = "Изделия"; //
// // dogToolStripMenuItem
// заказчикиToolStripMenuItem //
// this.dogToolStripMenuItem.Name = "dogToolStripMenuItem";
this.заказчикиToolStripMenuItem.Name = аказчикиToolStripMenuItem"; this.dogToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
this.заказчикиToolStripMenuItem.Size = new System.Drawing.Size(76, 20); this.dogToolStripMenuItem.Text = "Договор";
this.заказчикиToolStripMenuItem.Text = "Заказчики"; this.dogToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
// //
// настройкиToolStripMenuItem // docToolStripMenuItem
// //
this.настройкиToolStripMenuItem.Name = астройкиToolStripMenuItem"; this.docToolStripMenuItem.Name = "docToolStripMenuItem";
this.настройкиToolStripMenuItem.Size = new System.Drawing.Size(79, 20); this.docToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.настройкиToolStripMenuItem.Text = "Настройки"; this.docToolStripMenuItem.Text = "Документы";
// this.docToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
// IzvForm //
// // izvToolStripMenuItem
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.izvToolStripMenuItem.Name = "izvToolStripMenuItem";
this.ClientSize = new System.Drawing.Size(869, 321); this.izvToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.Controls.Add(this.izvGridView); this.izvToolStripMenuItem.Text = "Извещения";
this.Controls.Add(this.resetSearchButton); this.izvToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.Controls.Add(this.label10); //
this.Controls.Add(this.searchBox); // postToolStripMenuItem
this.Controls.Add(this.groupBox1); //
this.Controls.Add(this.mainMenuStrip); this.postToolStripMenuItem.Name = "postToolStripMenuItem";
this.MainMenuStrip = this.mainMenuStrip; this.postToolStripMenuItem.Size = new System.Drawing.Size(71, 20);
this.Name = "IzvForm"; this.postToolStripMenuItem.Text = "Поставки";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.postToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.Text = "Извещения"; //
this.mainMenuStrip.ResumeLayout(false); // izdToolStripMenuItem
this.mainMenuStrip.PerformLayout(); //
((System.ComponentModel.ISupportInitialize)(this.izvGridView)).EndInit(); this.izdToolStripMenuItem.Name = "izdToolStripMenuItem";
this.groupBox1.ResumeLayout(false); this.izdToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
this.groupBox1.PerformLayout(); this.izdToolStripMenuItem.Text = "Изделия";
this.groupBox2.ResumeLayout(false); this.izdToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.groupBox2.PerformLayout(); //
this.ResumeLayout(false); // zakToolStripMenuItem
this.PerformLayout(); //
this.zakToolStripMenuItem.Name = "zakToolStripMenuItem";
this.zakToolStripMenuItem.Size = new System.Drawing.Size(76, 20);
this.zakToolStripMenuItem.Text = "Заказчики";
this.zakToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// setToolStripMenuItem
//
this.setToolStripMenuItem.Name = "setToolStripMenuItem";
this.setToolStripMenuItem.Size = new System.Drawing.Size(79, 20);
this.setToolStripMenuItem.Text = "Настройки";
this.setToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// IzvForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(869, 321);
this.Controls.Add(this.mainMenuStrip);
this.Controls.Add(this.izvGridView);
this.Controls.Add(this.resetSearchButton);
this.Controls.Add(this.label10);
this.Controls.Add(this.searchBox);
this.Controls.Add(this.groupBox1);
this.Name = "IzvForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Извещения";
((System.ComponentModel.ISupportInitialize)(this.izvGridView)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.mainMenuStrip.ResumeLayout(false);
this.mainMenuStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.OpenFileDialog selectFileDialog; private System.Windows.Forms.OpenFileDialog selectFileDialog;
private System.Windows.Forms.SaveFileDialog saveFileDialog; private System.Windows.Forms.SaveFileDialog saveFileDialog;
private System.Windows.Forms.MenuStrip mainMenuStrip;
private System.Windows.Forms.ToolStripMenuItem договорToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem документыToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem извещенияToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem поставкиToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem изделияToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem заказчикиToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem настройкиToolStripMenuItem;
private System.Windows.Forms.DataGridView izvGridView; private System.Windows.Forms.DataGridView izvGridView;
private System.Windows.Forms.Button resetSearchButton; private System.Windows.Forms.Button resetSearchButton;
private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label10;
@ -453,12 +465,12 @@ namespace Diplom_B
private System.Windows.Forms.Button resetFileButton; private System.Windows.Forms.Button resetFileButton;
private System.Windows.Forms.Button fileLoadButton; private System.Windows.Forms.Button fileLoadButton;
private System.Windows.Forms.Label errorLabel; private System.Windows.Forms.Label errorLabel;
private System.Windows.Forms.Button SelectIzvButton; private System.Windows.Forms.Button selectButton;
private System.Windows.Forms.Button createIzvButton; private System.Windows.Forms.Button createButton;
private System.Windows.Forms.Button changeIzvButton; private System.Windows.Forms.Button changeButton;
private System.Windows.Forms.Label idLabel; private System.Windows.Forms.Label idLabel;
private System.Windows.Forms.Button ResetIzvButton; private System.Windows.Forms.Button resetButton;
private System.Windows.Forms.Button deleteIzvButton; private System.Windows.Forms.Button deleteButton;
private System.Windows.Forms.TextBox ukazVnedrBox; private System.Windows.Forms.TextBox ukazVnedrBox;
private System.Windows.Forms.TextBox ukazZadBox; private System.Windows.Forms.TextBox ukazZadBox;
private System.Windows.Forms.TextBox izmNumBox; private System.Windows.Forms.TextBox izmNumBox;
@ -470,5 +482,13 @@ namespace Diplom_B
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
} private System.Windows.Forms.MenuStrip mainMenuStrip;
private System.Windows.Forms.ToolStripMenuItem dogToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem docToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem postToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izdToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem zakToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem setToolStripMenuItem;
}
} }

View File

@ -8,6 +8,9 @@ namespace Diplom_B
{ {
public partial class IzvForm : Form public partial class IzvForm : Form
{ {
public int? returnId = null;
private bool needReturn = false;
private Task errDrop; private Task errDrop;
private void ShowError(string msg = null) private void ShowError(string msg = null)
{ {
@ -49,7 +52,7 @@ namespace Diplom_B
ukazVnedrBox.Text = ""; ukazVnedrBox.Text = "";
UpdateLink(); UpdateLink();
} }
private void UpdateIzvTable(Izveschenie[] arr, bool reset_cursor = false) private void UpdateTable(Izveschenie[] arr, bool reset_cursor = false)
{ {
var selected = (!reset_cursor && izvGridView.SelectedRows.Count > 0) ? izvGridView.SelectedRows[0].Index : -1; var selected = (!reset_cursor && izvGridView.SelectedRows.Count > 0) ? izvGridView.SelectedRows[0].Index : -1;
{ {
@ -98,45 +101,85 @@ namespace Diplom_B
public IzvForm() public IzvForm()
{ {
InitializeComponent(); InitializeComponent();
try { UpdateIzvTable(WorkDB.ListIzveschenie(searchBox.Text)); } try
{
UpdateTable(WorkDB.ListIzveschenie(searchBox.Text));
Init();
}
catch { ShowError(); } catch { ShowError(); }
} }
private void Init()
{
if (Program.user == null) this.Close();
if (this.needReturn)
{
selectButton.Visible = true;
mainMenuStrip.Visible = false;
}
else
{
mainMenuStrip.Items[0].Enabled = Program.user.Usr.Dog > 0;
mainMenuStrip.Items[1].Enabled = Program.user.Usr.Doc > 0;
mainMenuStrip.Items[2].Enabled = Program.user.Usr.Izv > 0;
mainMenuStrip.Items[3].Enabled = Program.user.Usr.Post > 0;
mainMenuStrip.Items[4].Enabled = Program.user.Usr.Izd > 0;
mainMenuStrip.Items[5].Enabled = Program.user.Usr.Zak > 0;
mainMenuStrip.Items[6].Enabled = Program.user.Usr.Set > 0;
mainMenuStrip.Items[2].Enabled = false;
}
{
deleteButton.Enabled = Program.user.Usr.Izv > 2;
createButton.Enabled = Program.user.Usr.Izv > 2;
changeButton.Enabled = Program.user.Usr.Izv > 1;
fileLoadButton.Enabled = Program.user.Usr.Izv > 1;
resetFileButton.Enabled = Program.user.Usr.Izv > 1;
}
}
private void fileLoadButton_Click(object sender, EventArgs e) private void fileLoadButton_Click(object sender, EventArgs e)
{ {
if (selectFileDialog.ShowDialog() == DialogResult.Cancel)
{
ShowError("Файл не выбран.");
return;
}
try try
{ {
UpdateLink(); if (selectFileDialog.ShowDialog() != DialogResult.Cancel)
var fn = selectFileDialog.FileName; if (!string.IsNullOrEmpty(selectFileDialog.FileName))
if (string.IsNullOrEmpty(fn)) {
{ var fn = Path.GetFileName(selectFileDialog.FileName);
ShowError("Ошибка в названии файла."); var fb = File.ReadAllBytes(selectFileDialog.FileName);
return; UpdateLink(fn, fb);
} }
UpdateLink(Path.GetFileName(fn), File.ReadAllBytes(fn));
} }
catch { ShowError(); } catch { ShowError(); }
}
private void resetFileButton_Click(object sender, EventArgs e)
{
UpdateLink();
} }
private void linkFileLabel_Click(object sender, EventArgs e) private void linkFileLabel_Click(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(fileName) || fileStruct == null || fileStruct.Length <= 0) if (saveFileDialog.ShowDialog() != DialogResult.Cancel)
{ if (!string.IsNullOrEmpty(saveFileDialog.FileName))
ShowError("Ошибка файла."); File.WriteAllBytes(saveFileDialog.FileName, fileStruct);
return;
}
saveFileDialog.FileName = fileName;
if (saveFileDialog.ShowDialog() == DialogResult.Cancel) return;
try { File.WriteAllBytes(saveFileDialog.FileName, fileStruct); }
catch { ShowError("Ошибка сохранения файла."); }
} }
private void resetFileButton_Click(object sender, EventArgs e)
private Task filterDrop;
private void searchBox_TextChanged(object sender, EventArgs e)
{ {
UpdateLink(); filterDrop = new Task(() =>
{
var fd = filterDrop.Id;
Task.Delay(1000).Wait();
if (filterDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { UpdateTable(WorkDB.ListIzveschenie(searchBox.Text)); }));
else UpdateTable(WorkDB.ListIzveschenie(searchBox.Text));
});
filterDrop.Start();
}
private void resetSearchButton_Click(object sender, EventArgs e)
{
searchBox.Text = "";
filterDrop = new Task(() => { return; });
UpdateTable(WorkDB.ListIzveschenie(searchBox.Text));
} }
private void izvGridView_CurrentCellChanged(object sender, EventArgs e) private void izvGridView_CurrentCellChanged(object sender, EventArgs e)
@ -158,31 +201,11 @@ namespace Diplom_B
} }
} }
private Task filterDrop; private void createButton_Click(object sender, EventArgs e)
private void searchBox_TextChanged(object sender, EventArgs e)
{ {
filterDrop = new Task(() =>
{
var fd = filterDrop.Id;
Task.Delay(1000).Wait();
if (filterDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { UpdateIzvTable(WorkDB.ListIzveschenie(searchBox.Text)); }));
else UpdateIzvTable(WorkDB.ListIzveschenie(searchBox.Text));
}); if (!int.TryParse(invNumBox.Text, out int invNum)) { ShowError("Инв № не верен."); return; }
filterDrop.Start(); if (!int.TryParse(izmNumBox.Text, out int izmNum)) { ShowError("Изм № не верен."); return; }
}
private void resetSearch_Click(object sender, EventArgs e)
{
searchBox.Text = "";
filterDrop = new Task(() => { return; });
UpdateIzvTable(WorkDB.ListIzveschenie(searchBox.Text));
}
private void createIzvButton_Click(object sender, EventArgs e)
{
if (!int.TryParse(invNumBox.Text, out int invNum)) { ShowError("Ошибка инвентарный №."); return; }
if (!int.TryParse(izmNumBox.Text, out int izmNum)) { ShowError("Ошибка извещение №."); return; }
try try
{ {
var r = new Izveschenie() var r = new Izveschenie()
@ -196,18 +219,17 @@ namespace Diplom_B
FileStruct = fileStruct FileStruct = fileStruct
}; };
WorkDB.AddIzveschenie(r); WorkDB.AddIzveschenie(r);
UpdateIzvTable(WorkDB.ListIzveschenie(searchBox.Text)); UpdateTable(WorkDB.ListIzveschenie(searchBox.Text));
} }
catch { ShowError(); } catch { ShowError(); }
} }
private void changeIzvButton_Click(object sender, EventArgs e) private void changeButton_Click(object sender, EventArgs e)
{ {
if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Извещение не выбрано."); return; } if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Извещение не выбрано."); return; }
if (!int.TryParse(invNumBox.Text, out int invNum)) { ShowError("Инв № не верен."); return; }
if (!int.TryParse(izmNumBox.Text, out int izmNum)) { ShowError("Изм № не верен."); return; }
var izv = WorkDB.GetIzveschenie(idRes); var izv = WorkDB.GetIzveschenie(idRes);
if (izv == null) { ShowError("Нет извещения в БД."); return; } if (izv == null) { ShowError("Нет извещения в БД."); return; }
if (!int.TryParse(invNumBox.Text, out int invNum)) { ShowError("Ошибка инвентарный №."); return; }
if (!int.TryParse(izmNumBox.Text, out int izmNum)) { ShowError("Ошибка извещение №."); return; }
try try
{ {
izv.IzvNum = izvNumBox.Text; izv.IzvNum = izvNumBox.Text;
@ -220,23 +242,44 @@ namespace Diplom_B
WorkDB.ChangeIzveschenie(izv); WorkDB.ChangeIzveschenie(izv);
} }
catch { ShowError(); } catch { ShowError(); }
UpdateIzvTable(WorkDB.ListIzveschenie(searchBox.Text)); UpdateTable(WorkDB.ListIzveschenie(searchBox.Text));
} }
private void deleteIzvButton_Click(object sender, EventArgs e) private void deleteButton_Click(object sender, EventArgs e)
{ {
if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Извещение не выбрано."); return; } if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Извещение не выбрано."); return; }
if (WorkDB.GetDocumentyFromIzvechenie(idRes).Length > 0) { ShowError("Есть связанные документы."); return; }
var izv = WorkDB.GetIzveschenie(idRes); var izv = WorkDB.GetIzveschenie(idRes);
if (izv == null) { ShowError("Извещения не существует."); return; } if (izv == null) { ShowError("Поставки не существует."); return; }
try try
{ {
WorkDB.DeleteIzdelie(izv); WorkDB.DeleteIzveschenie(izv);
} }
catch { ShowError(); } catch { ShowError(); }
UpdateIzvTable(WorkDB.ListIzveschenie(searchBox.Text)); UpdateTable(WorkDB.ListIzveschenie(searchBox.Text));
} }
private void ResetIzvButton_Click(object sender, EventArgs e) private void resetButton_Click(object sender, EventArgs e)
{ {
ClearBoxes(); ClearBoxes();
} }
}
private void MenuItem_Click(object sender, EventArgs e)
{
object form = null;
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[0]) { form = new DogForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[1]) { form = new DocForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[2]) { form = new IzvForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[3]) { form = new PostForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[4]) { form = new IzdForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[5]) { form = new ZakForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[6]) { form = new SetForm(); }
if (form != null)
{
this.Hide();
((Form)form).Closed += (s, args) => this.Close();
((Form)form).Show();
}
}
}
} }

180
LoginForm.Designer.cs generated
View File

@ -29,104 +29,102 @@ namespace Diplom_B
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.button1 = new System.Windows.Forms.Button(); this.loginButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox(); this.passBox = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label(); this.errorLabel = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox(); this.nameBox = new System.Windows.Forms.ComboBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// button1 // loginButton
// //
this.button1.Location = new System.Drawing.Point(190, 58); this.loginButton.Location = new System.Drawing.Point(190, 58);
this.button1.Name = "button1"; this.loginButton.Name = "loginButton";
this.button1.Size = new System.Drawing.Size(75, 23); this.loginButton.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 3; this.loginButton.TabIndex = 3;
this.button1.Text = "Войти"; this.loginButton.Text = "Войти";
this.button1.UseVisualStyleBackColor = true; this.loginButton.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click); this.loginButton.Click += new System.EventHandler(this.loginButton_Click);
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9); this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(83, 13); this.label1.Size = new System.Drawing.Size(83, 13);
this.label1.TabIndex = 1; this.label1.TabIndex = 1;
this.label1.Text = "Пользователь:"; this.label1.Text = "Пользователь:";
// //
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(47, 35); this.label2.Location = new System.Drawing.Point(47, 35);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(48, 13); this.label2.Size = new System.Drawing.Size(48, 13);
this.label2.TabIndex = 4; this.label2.TabIndex = 4;
this.label2.Text = "Пароль:"; this.label2.Text = "Пароль:";
// //
// textBox2 // passBox
// //
this.textBox2.Location = new System.Drawing.Point(101, 32); this.passBox.Location = new System.Drawing.Point(101, 32);
this.textBox2.Name = "textBox2"; this.passBox.Name = "passBox";
this.textBox2.Size = new System.Drawing.Size(164, 20); this.passBox.Size = new System.Drawing.Size(164, 20);
this.textBox2.TabIndex = 2; this.passBox.TabIndex = 2;
this.textBox2.UseSystemPasswordChar = true; this.passBox.UseSystemPasswordChar = true;
// this.passBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.keyDown);
// label3 //
// // errorLabel
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); //
this.label3.ForeColor = System.Drawing.Color.Red; this.errorLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label3.Location = new System.Drawing.Point(12, 63); this.errorLabel.ForeColor = System.Drawing.Color.Red;
this.label3.Name = "label3"; this.errorLabel.Location = new System.Drawing.Point(12, 63);
this.label3.Size = new System.Drawing.Size(172, 18); this.errorLabel.Name = "errorLabel";
this.label3.TabIndex = 6; this.errorLabel.Size = new System.Drawing.Size(172, 18);
this.label3.Text = "Отображение ошибки"; this.errorLabel.TabIndex = 6;
// this.errorLabel.Text = "Отображение ошибки";
// comboBox1 this.errorLabel.Visible = false;
// //
this.comboBox1.FormattingEnabled = true; // nameBox
this.comboBox1.Items.AddRange(new object[] { //
"Разработчик", this.nameBox.FormattingEnabled = true;
"Конструктор", this.nameBox.Location = new System.Drawing.Point(101, 6);
"Монтажник", this.nameBox.Name = "nameBox";
"Упаковщик"}); this.nameBox.Size = new System.Drawing.Size(161, 21);
this.comboBox1.Location = new System.Drawing.Point(101, 6); this.nameBox.TabIndex = 1;
this.comboBox1.Name = "comboBox1"; this.nameBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.keyDown);
this.comboBox1.Size = new System.Drawing.Size(161, 21); //
this.comboBox1.TabIndex = 1; // LoginForm
// //
// FormLogin this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
// this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.ClientSize = new System.Drawing.Size(274, 92);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.nameBox);
this.ClientSize = new System.Drawing.Size(274, 92); this.Controls.Add(this.errorLabel);
this.Controls.Add(this.comboBox1); this.Controls.Add(this.passBox);
this.Controls.Add(this.label3); this.Controls.Add(this.label2);
this.Controls.Add(this.textBox2); this.Controls.Add(this.label1);
this.Controls.Add(this.label2); this.Controls.Add(this.loginButton);
this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Controls.Add(this.button1); this.MaximizeBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MinimizeBox = false;
this.MaximizeBox = false; this.Name = "LoginForm";
this.MinimizeBox = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Name = "FormLogin"; this.Text = "Авторизация";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.TopMost = true;
this.Text = "Авторизация"; this.ResumeLayout(false);
this.TopMost = true; this.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button loginButton;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.TextBox passBox;
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label errorLabel;
private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.ComboBox nameBox;
} }
} }

View File

@ -7,6 +7,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using Diplom_B.DB;
namespace Diplom_B namespace Diplom_B
{ {
@ -15,31 +16,68 @@ namespace Diplom_B
public LoginForm() public LoginForm()
{ {
InitializeComponent(); InitializeComponent();
this.CenterToScreen(); Init();
label3.Text = "";
} }
private void button1_Click(object sender, EventArgs e) public void Init()
{
nameBox.Items.AddRange(WorkDB.GetUserList());
}
private Task errDrop;
private void ShowError(string msg = null)
{ {
label3.Text = ""; errorLabel.Text = string.IsNullOrEmpty(msg) ? "Неизвестная ошибка." : msg;
var usr = new User(comboBox1.Text, comboBox1.Text); errorLabel.Visible = true;
errDrop = new Task(() =>
{
var fd = errDrop.Id;
Task.Delay(5000).Wait();
if (errDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { errorLabel.Visible = false; }));
else errorLabel.Visible = false;
});
errDrop.Start();
}
private void loginButton_Click(object sender, EventArgs e)
{
errorLabel.Text = "";
var usr = new User(nameBox.Text, passBox.Text);
if (!usr.CheckUser()) if (!usr.CheckUser())
{ {
label3.Text = "Пользователя нет"; ShowError("Пользователя нет");
return; return;
} }
if (!usr.Login()) if (!usr.Login())
{ {
label3.Text = "Неверный пароль"; ShowError("Неверный пароль");
return; return;
} }
Program.user = usr; Program.user = usr;
object form = null;
switch(usr.Usr.Default)
{
case 0: form = new DogForm(); break;
case 1: form = new DocForm(); break;
case 2: form = new IzvForm(); break;
case 3: form = new PostForm(); break;
case 4: form = new IzdForm(); break;
case 5: form = new ZakForm(); break;
case 6: form = new SetForm(); break;
}
if (form == null) this.Close();
this.Hide(); this.Hide();
var izdForm = new IzdForm(); ((Form)form).Closed += (s, args) => this.Close();
izdForm.Closed += (s, args) => this.Close(); ((Form)form).Show();
izdForm.Show();
} }
}
private void keyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
loginButton_Click(this, new EventArgs());
}
}
} }

462
PostForm.Designer.cs generated
View File

@ -29,20 +29,456 @@ namespace Diplom_B
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.SuspendLayout(); this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
// this.dogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
// PostForm this.docToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
// this.izvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.postToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.izdToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ClientSize = new System.Drawing.Size(800, 450); this.zakToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Name = "PostForm"; this.setToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.postGridView = new System.Windows.Forms.DataGridView();
this.Text = "Form1"; this.resetSearchButton = new System.Windows.Forms.Button();
this.ResumeLayout(false); this.label10 = new System.Windows.Forms.Label();
this.searchBox = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.statusBox = new System.Windows.Forms.ComboBox();
this.datePicker = new System.Windows.Forms.DateTimePicker();
this.dogNumLabel = new System.Windows.Forms.Label();
this.izdNumLabel = new System.Windows.Forms.Label();
this.selectDogButton = new System.Windows.Forms.Button();
this.selectIzdButton = new System.Windows.Forms.Button();
this.primechanieBox = new System.Windows.Forms.RichTextBox();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.errorLabel = new System.Windows.Forms.Label();
this.selectButton = new System.Windows.Forms.Button();
this.createButton = new System.Windows.Forms.Button();
this.changeButton = new System.Windows.Forms.Button();
this.idLabel = new System.Windows.Forms.Label();
this.resetButton = new System.Windows.Forms.Button();
this.deleteButton = new System.Windows.Forms.Button();
this.zavNumBox = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.mainMenuStrip.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.postGridView)).BeginInit();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// mainMenuStrip
//
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.dogToolStripMenuItem,
this.docToolStripMenuItem,
this.izvToolStripMenuItem,
this.postToolStripMenuItem,
this.izdToolStripMenuItem,
this.zakToolStripMenuItem,
this.setToolStripMenuItem});
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
this.mainMenuStrip.Name = "mainMenuStrip";
this.mainMenuStrip.Size = new System.Drawing.Size(920, 24);
this.mainMenuStrip.TabIndex = 20;
this.mainMenuStrip.Text = "menuStrip1";
//
// dogToolStripMenuItem
//
this.dogToolStripMenuItem.Name = "dogToolStripMenuItem";
this.dogToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
this.dogToolStripMenuItem.Text = "Договор";
this.dogToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// docToolStripMenuItem
//
this.docToolStripMenuItem.Name = "docToolStripMenuItem";
this.docToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.docToolStripMenuItem.Text = "Документы";
this.docToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// izvToolStripMenuItem
//
this.izvToolStripMenuItem.Name = "izvToolStripMenuItem";
this.izvToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.izvToolStripMenuItem.Text = "Извещения";
this.izvToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// postToolStripMenuItem
//
this.postToolStripMenuItem.Name = "postToolStripMenuItem";
this.postToolStripMenuItem.Size = new System.Drawing.Size(71, 20);
this.postToolStripMenuItem.Text = "Поставки";
this.postToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// izdToolStripMenuItem
//
this.izdToolStripMenuItem.Name = "izdToolStripMenuItem";
this.izdToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
this.izdToolStripMenuItem.Text = "Изделия";
this.izdToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// zakToolStripMenuItem
//
this.zakToolStripMenuItem.Name = "zakToolStripMenuItem";
this.zakToolStripMenuItem.Size = new System.Drawing.Size(76, 20);
this.zakToolStripMenuItem.Text = "Заказчики";
this.zakToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// setToolStripMenuItem
//
this.setToolStripMenuItem.Name = "setToolStripMenuItem";
this.setToolStripMenuItem.Size = new System.Drawing.Size(79, 20);
this.setToolStripMenuItem.Text = "Настройки";
this.setToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// postGridView
//
this.postGridView.AllowUserToAddRows = false;
this.postGridView.AllowUserToDeleteRows = false;
this.postGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.postGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.postGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.postGridView.Location = new System.Drawing.Point(324, 53);
this.postGridView.Name = "postGridView";
this.postGridView.RowHeadersVisible = false;
this.postGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.postGridView.Size = new System.Drawing.Size(584, 289);
this.postGridView.TabIndex = 25;
this.postGridView.CurrentCellChanged += new System.EventHandler(this.postGridView_CurrentCellChanged);
//
// resetSearchButton
//
this.resetSearchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.resetSearchButton.Location = new System.Drawing.Point(833, 25);
this.resetSearchButton.Name = "resetSearchButton";
this.resetSearchButton.Size = new System.Drawing.Size(75, 23);
this.resetSearchButton.TabIndex = 24;
this.resetSearchButton.Text = "Сбросить";
this.resetSearchButton.UseVisualStyleBackColor = true;
this.resetSearchButton.Click += new System.EventHandler(this.resetSearchButton_Click);
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(321, 30);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(39, 13);
this.label10.TabIndex = 23;
this.label10.Text = "Поиск";
//
// searchBox
//
this.searchBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.searchBox.Location = new System.Drawing.Point(366, 27);
this.searchBox.Name = "searchBox";
this.searchBox.Size = new System.Drawing.Size(461, 20);
this.searchBox.TabIndex = 22;
this.searchBox.TextChanged += new System.EventHandler(this.searchBox_TextChanged);
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox1.Controls.Add(this.statusBox);
this.groupBox1.Controls.Add(this.datePicker);
this.groupBox1.Controls.Add(this.dogNumLabel);
this.groupBox1.Controls.Add(this.izdNumLabel);
this.groupBox1.Controls.Add(this.selectDogButton);
this.groupBox1.Controls.Add(this.selectIzdButton);
this.groupBox1.Controls.Add(this.primechanieBox);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.errorLabel);
this.groupBox1.Controls.Add(this.selectButton);
this.groupBox1.Controls.Add(this.createButton);
this.groupBox1.Controls.Add(this.changeButton);
this.groupBox1.Controls.Add(this.idLabel);
this.groupBox1.Controls.Add(this.resetButton);
this.groupBox1.Controls.Add(this.deleteButton);
this.groupBox1.Controls.Add(this.zavNumBox);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(12, 27);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(303, 315);
this.groupBox1.TabIndex = 21;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Информационное окно";
//
// statusBox
//
this.statusBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.statusBox.FormattingEnabled = true;
this.statusBox.Location = new System.Drawing.Point(95, 149);
this.statusBox.Name = "statusBox";
this.statusBox.Size = new System.Drawing.Size(201, 21);
this.statusBox.TabIndex = 50;
//
// datePicker
//
this.datePicker.CustomFormat = "yyyy.MM.dd";
this.datePicker.Location = new System.Drawing.Point(95, 123);
this.datePicker.Name = "datePicker";
this.datePicker.Size = new System.Drawing.Size(201, 20);
this.datePicker.TabIndex = 49;
//
// dogNumLabel
//
this.dogNumLabel.AutoSize = true;
this.dogNumLabel.Location = new System.Drawing.Point(95, 100);
this.dogNumLabel.Name = "dogNumLabel";
this.dogNumLabel.Size = new System.Drawing.Size(65, 13);
this.dogNumLabel.TabIndex = 48;
this.dogNumLabel.Text = "Договор №";
//
// izdNumLabel
//
this.izdNumLabel.AutoSize = true;
this.izdNumLabel.Location = new System.Drawing.Point(95, 74);
this.izdNumLabel.Name = "izdNumLabel";
this.izdNumLabel.Size = new System.Drawing.Size(65, 13);
this.izdNumLabel.TabIndex = 47;
this.izdNumLabel.Text = "Изделие №";
//
// selectDogButton
//
this.selectDogButton.Location = new System.Drawing.Point(270, 95);
this.selectDogButton.Name = "selectDogButton";
this.selectDogButton.Size = new System.Drawing.Size(26, 23);
this.selectDogButton.TabIndex = 46;
this.selectDogButton.Text = "...";
this.selectDogButton.UseVisualStyleBackColor = true;
this.selectDogButton.Click += new System.EventHandler(this.selectDogButton_Click);
//
// selectIzdButton
//
this.selectIzdButton.Location = new System.Drawing.Point(270, 69);
this.selectIzdButton.Name = "selectIzdButton";
this.selectIzdButton.Size = new System.Drawing.Size(26, 23);
this.selectIzdButton.TabIndex = 45;
this.selectIzdButton.Text = "...";
this.selectIzdButton.UseVisualStyleBackColor = true;
this.selectIzdButton.Click += new System.EventHandler(this.selectIzdButton_Click);
//
// primechanieBox
//
this.primechanieBox.Location = new System.Drawing.Point(95, 175);
this.primechanieBox.Name = "primechanieBox";
this.primechanieBox.Size = new System.Drawing.Size(201, 72);
this.primechanieBox.TabIndex = 42;
this.primechanieBox.Text = "";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(24, 74);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(65, 13);
this.label7.TabIndex = 39;
this.label7.Text = "Изделие №";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(6, 126);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(83, 13);
this.label6.TabIndex = 38;
this.label6.Text = "Дата поставки";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(48, 152);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 13);
this.label3.TabIndex = 37;
this.label3.Text = "Статус";
//
// errorLabel
//
this.errorLabel.AutoSize = true;
this.errorLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.errorLabel.ForeColor = System.Drawing.Color.Red;
this.errorLabel.Location = new System.Drawing.Point(6, 287);
this.errorLabel.Name = "errorLabel";
this.errorLabel.Size = new System.Drawing.Size(149, 13);
this.errorLabel.TabIndex = 31;
this.errorLabel.Text = "Информация об ошибке";
this.errorLabel.Visible = false;
//
// selectButton
//
this.selectButton.Location = new System.Drawing.Point(228, 282);
this.selectButton.Name = "selectButton";
this.selectButton.Size = new System.Drawing.Size(68, 23);
this.selectButton.TabIndex = 30;
this.selectButton.Text = "Выбрать";
this.selectButton.UseVisualStyleBackColor = true;
this.selectButton.Visible = false;
this.selectButton.Click += new System.EventHandler(this.selectButton_Click);
//
// createButton
//
this.createButton.Location = new System.Drawing.Point(228, 253);
this.createButton.Name = "createButton";
this.createButton.Size = new System.Drawing.Size(68, 23);
this.createButton.TabIndex = 26;
this.createButton.Text = "Создать";
this.createButton.UseVisualStyleBackColor = true;
this.createButton.Click += new System.EventHandler(this.createButton_Click);
//
// changeButton
//
this.changeButton.Location = new System.Drawing.Point(154, 253);
this.changeButton.Name = "changeButton";
this.changeButton.Size = new System.Drawing.Size(68, 23);
this.changeButton.TabIndex = 27;
this.changeButton.Text = "Изменить";
this.changeButton.UseVisualStyleBackColor = true;
this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
//
// idLabel
//
this.idLabel.AutoSize = true;
this.idLabel.Location = new System.Drawing.Point(102, 22);
this.idLabel.Name = "idLabel";
this.idLabel.Size = new System.Drawing.Size(69, 13);
this.idLabel.TabIndex = 24;
this.idLabel.Text = "Номер в БД";
//
// resetButton
//
this.resetButton.Location = new System.Drawing.Point(6, 253);
this.resetButton.Name = "resetButton";
this.resetButton.Size = new System.Drawing.Size(68, 23);
this.resetButton.TabIndex = 29;
this.resetButton.Text = "Сбросить";
this.resetButton.UseVisualStyleBackColor = true;
this.resetButton.Click += new System.EventHandler(this.clearButton_Click);
//
// deleteButton
//
this.deleteButton.Location = new System.Drawing.Point(80, 253);
this.deleteButton.Name = "deleteButton";
this.deleteButton.Size = new System.Drawing.Size(68, 23);
this.deleteButton.TabIndex = 28;
this.deleteButton.Text = "Удалить";
this.deleteButton.UseVisualStyleBackColor = true;
this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
//
// zavNumBox
//
this.zavNumBox.Location = new System.Drawing.Point(95, 45);
this.zavNumBox.Name = "zavNumBox";
this.zavNumBox.Size = new System.Drawing.Size(201, 20);
this.zavNumBox.TabIndex = 17;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(19, 178);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(70, 13);
this.label5.TabIndex = 13;
this.label5.Text = "Примечание";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(24, 100);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(65, 13);
this.label4.TabIndex = 12;
this.label4.Text = "Договор №";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 48);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(76, 13);
this.label2.TabIndex = 10;
this.label2.Text = "Заводской №";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(71, 22);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(18, 13);
this.label1.TabIndex = 9;
this.label1.Text = "№";
//
// PostForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(920, 354);
this.Controls.Add(this.postGridView);
this.Controls.Add(this.resetSearchButton);
this.Controls.Add(this.label10);
this.Controls.Add(this.searchBox);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.mainMenuStrip);
this.Name = "PostForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Поставки";
this.mainMenuStrip.ResumeLayout(false);
this.mainMenuStrip.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.postGridView)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
}
private System.Windows.Forms.MenuStrip mainMenuStrip;
private System.Windows.Forms.ToolStripMenuItem dogToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem docToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem postToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izdToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem zakToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem setToolStripMenuItem;
private System.Windows.Forms.DataGridView postGridView;
private System.Windows.Forms.Button resetSearchButton;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox searchBox;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label errorLabel;
private System.Windows.Forms.Button selectButton;
private System.Windows.Forms.Button createButton;
private System.Windows.Forms.Button changeButton;
private System.Windows.Forms.Label idLabel;
private System.Windows.Forms.Button resetButton;
private System.Windows.Forms.Button deleteButton;
private System.Windows.Forms.TextBox zavNumBox;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.RichTextBox primechanieBox;
private System.Windows.Forms.Button selectDogButton;
private System.Windows.Forms.Button selectIzdButton;
private System.Windows.Forms.Label dogNumLabel;
private System.Windows.Forms.Label izdNumLabel;
private System.Windows.Forms.ComboBox statusBox;
private System.Windows.Forms.DateTimePicker datePicker;
}
} }

View File

@ -7,14 +7,281 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using Diplom_B.DB;
namespace Diplom_B namespace Diplom_B
{ {
public partial class PostForm : Form public partial class PostForm : Form
{ {
public PostForm() public int? returnId = null;
private bool needReturn = false;
private int? dogovorId = null;
private int? izdelieId = null;
private void ClearBoxes()
{
idLabel.Text = "";
zavNumBox.Text = "";
izdelieId = null;
izdNumLabel.Text = "";
dogovorId = null;
dogNumLabel.Text = "";
datePicker.Value = DateTime.Now;
statusBox.Items.Clear();
statusBox.Items.AddRange(WorkDB.GetStatusList());
statusBox.SelectedIndex = 0;
primechanieBox.Text = "";
}
private void UpdateTable(Postavka[] arr, bool reset_cursor = false)
{
var selected = (!reset_cursor && postGridView.SelectedRows.Count > 0) ? postGridView.SelectedRows[0].Index : -1;
{
var r = postGridView.Rows;
while (r.Count > 0)
r.Remove(r[0]);
var c = postGridView.Columns;
while (c.Count > 0)
c.Remove(c[0]);
}
{
var c = postGridView.Columns;
c.Add("Id", "№");
c["Id"].Width = 40;
c.Add("ZavNum", "Зав №");
c["ZavNum"].Width = 80;
c.Add("IzdNum", "Изд. №");
c["IzdNum"].Width = 80;
c.Add("DogNum", "Дог. №");
c["DogNum"].Width = 80;
c.Add("DataPostavki", "Дата пост.");
c["DataPostavki"].Width = 100;
c.Add("Status", "Статус");
c["Status"].Width = 80;
c.Add("Primechanie", "Примечание");
c["Primechanie"].Width = 120;
c["Primechanie"].DefaultCellStyle.WrapMode = DataGridViewTriState.True;
}
{
var r = postGridView.Rows;
foreach (var post in arr)
r.Add(new object[] {
post.Id,
post.ZavNum,
post.IzdelieId.HasValue ? WorkDB.GetIzdelie(post.IzdelieId.Value).DecNum : "",
post.DogovorId.HasValue ? "ПОПРАВИТЬ КОД" : "",
post.DataPostavki.ToString("yyyy.MM.dd"),
WorkDB.GetStatus(post.StatusId).Stat,
post.Primechanie
});
}
if (postGridView.Rows.Count > 0)
postGridView.Rows[0].Selected = true;
if (selected != -1 && selected < postGridView.Rows.Count)
for (var i = 0; i < postGridView.Rows.Count; i++)
postGridView.Rows[i].Selected = (i == selected);
postGridView_CurrentCellChanged(this, new EventArgs());
}
private Task errDrop;
private void ShowError(string msg = null)
{
errorLabel.Text = string.IsNullOrEmpty(msg) ? "Неизвестная ошибка." : msg;
errorLabel.Visible = true;
errDrop = new Task(() =>
{
var fd = errDrop.Id;
Task.Delay(5000).Wait();
if (errDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { errorLabel.Visible = false; }));
else errorLabel.Visible = false;
});
errDrop.Start();
}
private Task filterDrop;
private void searchBox_TextChanged(object sender, EventArgs e)
{
filterDrop = new Task(() =>
{
var fd = filterDrop.Id;
Task.Delay(1000).Wait();
if (filterDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { UpdateTable(WorkDB.ListPostavka(searchBox.Text)); }));
else UpdateTable(WorkDB.ListPostavka(searchBox.Text));
});
filterDrop.Start();
}
public PostForm(bool needReturn = false)
{ {
InitializeComponent(); InitializeComponent();
try
{
this.needReturn = needReturn;
UpdateTable(WorkDB.ListPostavka(searchBox.Text));
Init();
}
catch { ShowError(); }
}
private void Init()
{
if (Program.user == null) this.Close();
if (this.needReturn)
{
selectButton.Visible = true;
mainMenuStrip.Visible = false;
}
else
{
mainMenuStrip.Items[0].Enabled = Program.user.Usr.Dog > 0;
mainMenuStrip.Items[1].Enabled = Program.user.Usr.Doc > 0;
mainMenuStrip.Items[2].Enabled = Program.user.Usr.Izv > 0;
mainMenuStrip.Items[3].Enabled = Program.user.Usr.Post > 0;
mainMenuStrip.Items[4].Enabled = Program.user.Usr.Izd > 0;
mainMenuStrip.Items[5].Enabled = Program.user.Usr.Zak > 0;
mainMenuStrip.Items[6].Enabled = Program.user.Usr.Set > 0;
mainMenuStrip.Items[3].Enabled = false;
}
{
deleteButton.Enabled = Program.user.Usr.Post > 2;
createButton.Enabled = Program.user.Usr.Post > 2;
changeButton.Enabled = Program.user.Usr.Post > 1;
selectIzdButton.Enabled = Program.user.Usr.Post > 1;
selectDogButton.Enabled = Program.user.Usr.Post > 1;
}
}
private void postGridView_CurrentCellChanged(object sender, EventArgs e)
{
ClearBoxes();
if (postGridView.SelectedRows.Count != 1)
return;
{
var post = WorkDB.GetPostavka((int)postGridView.SelectedRows[0].Cells[0].Value);
if (post == null)
return;
idLabel.Text = post.Id.ToString();
zavNumBox.Text = post.ZavNum;
if(post.IzdelieId.HasValue)
{
izdNumLabel.Text = WorkDB.GetIzdelie(post.IzdelieId.Value).DecNum;
izdelieId = post.IzdelieId;
}
if (post.DogovorId.HasValue)
{
dogNumLabel.Text = "ПОПРАВИТЬ КОД";
dogovorId = post.DogovorId;
}
datePicker.Value = post.DataPostavki;
statusBox.SelectedIndex = statusBox.Items.IndexOf(WorkDB.GetStatus(post.StatusId).Stat);
primechanieBox.Text = post.Primechanie;
}
}
private void createButton_Click(object sender, EventArgs e)
{
if (WorkDB.GetPostavkiZavNum().Contains(zavNumBox.Text)) { ShowError("Зав № не уникален."); return; }
if (statusBox.SelectedIndex < 0) { ShowError("Не выбран статус."); return; }
try
{
var r = new Postavka()
{
ZavNum = zavNumBox.Text,
IzdelieId = izdelieId,
DogovorId = dogovorId,
DataPostavki = datePicker.Value,
StatusId = WorkDB.GetIdStatus((string)statusBox.SelectedItem).Value,
Primechanie = primechanieBox.Text
};
WorkDB.AddPostavka(r);
UpdateTable(WorkDB.ListPostavka(searchBox.Text));
}
catch { ShowError(); }
}
private void clearButton_Click(object sender, EventArgs e)
{
ClearBoxes();
}
private void resetSearchButton_Click(object sender, EventArgs e)
{
searchBox.Text = "";
filterDrop = new Task(() => { return; });
UpdateTable(WorkDB.ListPostavka(searchBox.Text));
}
private void changeButton_Click(object sender, EventArgs e)
{
if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Поставка не выбрана."); return; }
var post = WorkDB.GetPostavka(idRes);
if (post == null) { ShowError("Нет поставки в БД."); return; }
if (post.ZavNum != zavNumBox.Text && WorkDB.GetPostavkiZavNum().Contains(zavNumBox.Text)) { ShowError("Зав № не уникален."); return; }
if (statusBox.SelectedIndex < 0) { ShowError("Не выбран статус."); return; }
try
{
post.ZavNum = zavNumBox.Text;
post.IzdelieId = izdelieId;
post.DogovorId = dogovorId;
post.DataPostavki = datePicker.Value;
post.StatusId = WorkDB.GetIdStatus(statusBox.SelectedText).Value;
post.Primechanie = primechanieBox.Text;
WorkDB.ChangePostavka(post);
}
catch { ShowError(); }
UpdateTable(WorkDB.ListPostavka(searchBox.Text));
}
private void deleteButton_Click(object sender, EventArgs e)
{
if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Поставка не выбрана."); return; }
var post = WorkDB.GetPostavka(idRes);
if (post == null) { ShowError("Поставки не существует."); return; }
try
{
WorkDB.DeletePostavka(post);
}
catch { ShowError(); }
UpdateTable(WorkDB.ListPostavka(searchBox.Text));
}
private void selectButton_Click(object sender, EventArgs e)
{
if (int.TryParse(idLabel.Text, out int idRes))
returnId = idRes;
this.Close();
}
private void MenuItem_Click(object sender, EventArgs e)
{
object form = null;
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[0]) { form = new DogForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[1]) { form = new DocForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[2]) { form = new IzvForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[3]) { form = new PostForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[4]) { form = new IzdForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[5]) { form = new ZakForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[6]) { form = new SetForm(); }
if (form != null)
{
this.Hide();
((Form)form).Closed += (s, args) => this.Close();
((Form)form).Show();
}
}
private void selectIzdButton_Click(object sender, EventArgs e)
{
var form = new IzdForm(true);
form.ShowDialog();
izdelieId = form.returnId;
if (izdelieId.HasValue)
izdNumLabel.Text = WorkDB.GetIzdelie(izdelieId.Value).DecNum;
else
izdNumLabel.Text = "";
}
private void selectDogButton_Click(object sender, EventArgs e)
{
var form = new DogForm(true);
form.ShowDialog();
dogovorId = form.returnId;
if (dogovorId.HasValue)
dogNumLabel.Text = "НАДО ПОПРАВИТЬ КОД";
else
dogNumLabel.Text = "";
} }
} }
} }

View File

@ -117,4 +117,7 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="mainMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root> </root>

View File

@ -19,8 +19,8 @@ namespace Diplom_B
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
WorkDB.Init(); WorkDB.Init();
//Application.Run(new LoginForm()); Application.Run(new LoginForm());
Application.Run(new MainForm()); //Application.Run(new MainForm());
} }
} }
} }

746
SetForm.Designer.cs generated
View File

@ -29,12 +29,746 @@ namespace Diplom_B
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.dogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ClientSize = new System.Drawing.Size(800, 450); this.docToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Text = "SetForm"; this.izvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.postToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.izdToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.zakToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.setToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.usrGridView = new System.Windows.Forms.DataGridView();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label4 = new System.Windows.Forms.Label();
this.defaultBox = new System.Windows.Forms.ComboBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.chkSet3 = new System.Windows.Forms.CheckBox();
this.chkZak3 = new System.Windows.Forms.CheckBox();
this.chkIzd3 = new System.Windows.Forms.CheckBox();
this.chkPost3 = new System.Windows.Forms.CheckBox();
this.chkIzv3 = new System.Windows.Forms.CheckBox();
this.chkDoc3 = new System.Windows.Forms.CheckBox();
this.chkDog3 = new System.Windows.Forms.CheckBox();
this.chkSet2 = new System.Windows.Forms.CheckBox();
this.chkZak2 = new System.Windows.Forms.CheckBox();
this.chkIzd2 = new System.Windows.Forms.CheckBox();
this.chkPost2 = new System.Windows.Forms.CheckBox();
this.chkIzv2 = new System.Windows.Forms.CheckBox();
this.chkDoc2 = new System.Windows.Forms.CheckBox();
this.chkDog2 = new System.Windows.Forms.CheckBox();
this.chkSet1 = new System.Windows.Forms.CheckBox();
this.chkZak1 = new System.Windows.Forms.CheckBox();
this.chkIzd1 = new System.Windows.Forms.CheckBox();
this.chkPost1 = new System.Windows.Forms.CheckBox();
this.chkIzv1 = new System.Windows.Forms.CheckBox();
this.chkDoc1 = new System.Windows.Forms.CheckBox();
this.label15 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.chkDog1 = new System.Windows.Forms.CheckBox();
this.clearButton = new System.Windows.Forms.Button();
this.idLable = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.nameBox = new System.Windows.Forms.TextBox();
this.errorLable = new System.Windows.Forms.Label();
this.StatusButton = new System.Windows.Forms.Button();
this.deleteButton = new System.Windows.Forms.Button();
this.changeButton = new System.Windows.Forms.Button();
this.createButton = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.passBox = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.resetSearchButton = new System.Windows.Forms.Button();
this.searchBox = new System.Windows.Forms.TextBox();
this.mainMenuStrip.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.usrGridView)).BeginInit();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// mainMenuStrip
//
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.dogToolStripMenuItem,
this.docToolStripMenuItem,
this.izvToolStripMenuItem,
this.postToolStripMenuItem,
this.izdToolStripMenuItem,
this.zakToolStripMenuItem,
this.setToolStripMenuItem});
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
this.mainMenuStrip.Name = "mainMenuStrip";
this.mainMenuStrip.Size = new System.Drawing.Size(639, 24);
this.mainMenuStrip.TabIndex = 19;
this.mainMenuStrip.Text = "menuStrip1";
//
// dogToolStripMenuItem
//
this.dogToolStripMenuItem.Name = "dogToolStripMenuItem";
this.dogToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
this.dogToolStripMenuItem.Text = "Договор";
this.dogToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// docToolStripMenuItem
//
this.docToolStripMenuItem.Name = "docToolStripMenuItem";
this.docToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.docToolStripMenuItem.Text = "Документы";
this.docToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// izvToolStripMenuItem
//
this.izvToolStripMenuItem.Name = "izvToolStripMenuItem";
this.izvToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.izvToolStripMenuItem.Text = "Извещения";
this.izvToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// postToolStripMenuItem
//
this.postToolStripMenuItem.Name = "postToolStripMenuItem";
this.postToolStripMenuItem.Size = new System.Drawing.Size(71, 20);
this.postToolStripMenuItem.Text = "Поставки";
this.postToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// izdToolStripMenuItem
//
this.izdToolStripMenuItem.Name = "izdToolStripMenuItem";
this.izdToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
this.izdToolStripMenuItem.Text = "Изделия";
this.izdToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// zakToolStripMenuItem
//
this.zakToolStripMenuItem.Name = "zakToolStripMenuItem";
this.zakToolStripMenuItem.Size = new System.Drawing.Size(76, 20);
this.zakToolStripMenuItem.Text = "Заказчики";
this.zakToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// setToolStripMenuItem
//
this.setToolStripMenuItem.Name = "setToolStripMenuItem";
this.setToolStripMenuItem.Size = new System.Drawing.Size(79, 20);
this.setToolStripMenuItem.Text = "Настройки";
this.setToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
//
// usrGridView
//
this.usrGridView.AllowUserToAddRows = false;
this.usrGridView.AllowUserToDeleteRows = false;
this.usrGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.usrGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.usrGridView.Location = new System.Drawing.Point(345, 55);
this.usrGridView.Name = "usrGridView";
this.usrGridView.RowHeadersVisible = false;
this.usrGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.usrGridView.Size = new System.Drawing.Size(282, 397);
this.usrGridView.TabIndex = 18;
this.usrGridView.CurrentCellChanged += new System.EventHandler(this.usrGridView_CurrentCellChanged);
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.defaultBox);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.clearButton);
this.groupBox1.Controls.Add(this.idLable);
this.groupBox1.Controls.Add(this.label);
this.groupBox1.Controls.Add(this.nameBox);
this.groupBox1.Controls.Add(this.errorLable);
this.groupBox1.Controls.Add(this.StatusButton);
this.groupBox1.Controls.Add(this.deleteButton);
this.groupBox1.Controls.Add(this.changeButton);
this.groupBox1.Controls.Add(this.createButton);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.passBox);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Location = new System.Drawing.Point(12, 27);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(324, 425);
this.groupBox1.TabIndex = 17;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Информационное окно";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(14, 102);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(72, 13);
this.label4.TabIndex = 27;
this.label4.Text = "Первое окно";
//
// defaultBox
//
this.defaultBox.Cursor = System.Windows.Forms.Cursors.Default;
this.defaultBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.defaultBox.FormattingEnabled = true;
this.defaultBox.Location = new System.Drawing.Point(95, 99);
this.defaultBox.Name = "defaultBox";
this.defaultBox.Size = new System.Drawing.Size(223, 21);
this.defaultBox.TabIndex = 26;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.chkSet3);
this.groupBox2.Controls.Add(this.chkZak3);
this.groupBox2.Controls.Add(this.chkIzd3);
this.groupBox2.Controls.Add(this.chkPost3);
this.groupBox2.Controls.Add(this.chkIzv3);
this.groupBox2.Controls.Add(this.chkDoc3);
this.groupBox2.Controls.Add(this.chkDog3);
this.groupBox2.Controls.Add(this.chkSet2);
this.groupBox2.Controls.Add(this.chkZak2);
this.groupBox2.Controls.Add(this.chkIzd2);
this.groupBox2.Controls.Add(this.chkPost2);
this.groupBox2.Controls.Add(this.chkIzv2);
this.groupBox2.Controls.Add(this.chkDoc2);
this.groupBox2.Controls.Add(this.chkDog2);
this.groupBox2.Controls.Add(this.chkSet1);
this.groupBox2.Controls.Add(this.chkZak1);
this.groupBox2.Controls.Add(this.chkIzd1);
this.groupBox2.Controls.Add(this.chkPost1);
this.groupBox2.Controls.Add(this.chkIzv1);
this.groupBox2.Controls.Add(this.chkDoc1);
this.groupBox2.Controls.Add(this.label15);
this.groupBox2.Controls.Add(this.label14);
this.groupBox2.Controls.Add(this.label13);
this.groupBox2.Controls.Add(this.label11);
this.groupBox2.Controls.Add(this.label10);
this.groupBox2.Controls.Add(this.label9);
this.groupBox2.Controls.Add(this.label8);
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.chkDog1);
this.groupBox2.Location = new System.Drawing.Point(6, 126);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(312, 230);
this.groupBox2.TabIndex = 25;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Доступ";
//
// chkSet3
//
this.chkSet3.AutoSize = true;
this.chkSet3.Location = new System.Drawing.Point(254, 204);
this.chkSet3.Name = "chkSet3";
this.chkSet3.Size = new System.Drawing.Size(15, 14);
this.chkSet3.TabIndex = 67;
this.chkSet3.UseVisualStyleBackColor = true;
//
// chkZak3
//
this.chkZak3.AutoSize = true;
this.chkZak3.Location = new System.Drawing.Point(254, 178);
this.chkZak3.Name = "chkZak3";
this.chkZak3.Size = new System.Drawing.Size(15, 14);
this.chkZak3.TabIndex = 66;
this.chkZak3.UseVisualStyleBackColor = true;
//
// chkIzd3
//
this.chkIzd3.AutoSize = true;
this.chkIzd3.Location = new System.Drawing.Point(254, 152);
this.chkIzd3.Name = "chkIzd3";
this.chkIzd3.Size = new System.Drawing.Size(15, 14);
this.chkIzd3.TabIndex = 65;
this.chkIzd3.UseVisualStyleBackColor = true;
//
// chkPost3
//
this.chkPost3.AutoSize = true;
this.chkPost3.Location = new System.Drawing.Point(254, 127);
this.chkPost3.Name = "chkPost3";
this.chkPost3.Size = new System.Drawing.Size(15, 14);
this.chkPost3.TabIndex = 64;
this.chkPost3.UseVisualStyleBackColor = true;
//
// chkIzv3
//
this.chkIzv3.AutoSize = true;
this.chkIzv3.Location = new System.Drawing.Point(254, 100);
this.chkIzv3.Name = "chkIzv3";
this.chkIzv3.Size = new System.Drawing.Size(15, 14);
this.chkIzv3.TabIndex = 63;
this.chkIzv3.UseVisualStyleBackColor = true;
//
// chkDoc3
//
this.chkDoc3.AutoSize = true;
this.chkDoc3.Location = new System.Drawing.Point(254, 74);
this.chkDoc3.Name = "chkDoc3";
this.chkDoc3.Size = new System.Drawing.Size(15, 14);
this.chkDoc3.TabIndex = 62;
this.chkDoc3.UseVisualStyleBackColor = true;
//
// chkDog3
//
this.chkDog3.AutoSize = true;
this.chkDog3.Location = new System.Drawing.Point(254, 48);
this.chkDog3.Name = "chkDog3";
this.chkDog3.Size = new System.Drawing.Size(15, 14);
this.chkDog3.TabIndex = 61;
this.chkDog3.UseVisualStyleBackColor = true;
//
// chkSet2
//
this.chkSet2.AutoSize = true;
this.chkSet2.Location = new System.Drawing.Point(178, 204);
this.chkSet2.Name = "chkSet2";
this.chkSet2.Size = new System.Drawing.Size(15, 14);
this.chkSet2.TabIndex = 60;
this.chkSet2.UseVisualStyleBackColor = true;
//
// chkZak2
//
this.chkZak2.AutoSize = true;
this.chkZak2.Location = new System.Drawing.Point(178, 178);
this.chkZak2.Name = "chkZak2";
this.chkZak2.Size = new System.Drawing.Size(15, 14);
this.chkZak2.TabIndex = 59;
this.chkZak2.UseVisualStyleBackColor = true;
//
// chkIzd2
//
this.chkIzd2.AutoSize = true;
this.chkIzd2.Location = new System.Drawing.Point(178, 152);
this.chkIzd2.Name = "chkIzd2";
this.chkIzd2.Size = new System.Drawing.Size(15, 14);
this.chkIzd2.TabIndex = 58;
this.chkIzd2.UseVisualStyleBackColor = true;
//
// chkPost2
//
this.chkPost2.AutoSize = true;
this.chkPost2.Location = new System.Drawing.Point(178, 127);
this.chkPost2.Name = "chkPost2";
this.chkPost2.Size = new System.Drawing.Size(15, 14);
this.chkPost2.TabIndex = 57;
this.chkPost2.UseVisualStyleBackColor = true;
//
// chkIzv2
//
this.chkIzv2.AutoSize = true;
this.chkIzv2.Location = new System.Drawing.Point(178, 100);
this.chkIzv2.Name = "chkIzv2";
this.chkIzv2.Size = new System.Drawing.Size(15, 14);
this.chkIzv2.TabIndex = 56;
this.chkIzv2.UseVisualStyleBackColor = true;
//
// chkDoc2
//
this.chkDoc2.AutoSize = true;
this.chkDoc2.Location = new System.Drawing.Point(178, 74);
this.chkDoc2.Name = "chkDoc2";
this.chkDoc2.Size = new System.Drawing.Size(15, 14);
this.chkDoc2.TabIndex = 55;
this.chkDoc2.UseVisualStyleBackColor = true;
//
// chkDog2
//
this.chkDog2.AutoSize = true;
this.chkDog2.Location = new System.Drawing.Point(178, 48);
this.chkDog2.Name = "chkDog2";
this.chkDog2.Size = new System.Drawing.Size(15, 14);
this.chkDog2.TabIndex = 54;
this.chkDog2.UseVisualStyleBackColor = true;
//
// chkSet1
//
this.chkSet1.AutoSize = true;
this.chkSet1.Location = new System.Drawing.Point(102, 204);
this.chkSet1.Name = "chkSet1";
this.chkSet1.Size = new System.Drawing.Size(15, 14);
this.chkSet1.TabIndex = 53;
this.chkSet1.UseVisualStyleBackColor = true;
//
// chkZak1
//
this.chkZak1.AutoSize = true;
this.chkZak1.Location = new System.Drawing.Point(102, 178);
this.chkZak1.Name = "chkZak1";
this.chkZak1.Size = new System.Drawing.Size(15, 14);
this.chkZak1.TabIndex = 52;
this.chkZak1.UseVisualStyleBackColor = true;
//
// chkIzd1
//
this.chkIzd1.AutoSize = true;
this.chkIzd1.Location = new System.Drawing.Point(102, 152);
this.chkIzd1.Name = "chkIzd1";
this.chkIzd1.Size = new System.Drawing.Size(15, 14);
this.chkIzd1.TabIndex = 51;
this.chkIzd1.UseVisualStyleBackColor = true;
//
// chkPost1
//
this.chkPost1.AutoSize = true;
this.chkPost1.Location = new System.Drawing.Point(102, 127);
this.chkPost1.Name = "chkPost1";
this.chkPost1.Size = new System.Drawing.Size(15, 14);
this.chkPost1.TabIndex = 50;
this.chkPost1.UseVisualStyleBackColor = true;
//
// chkIzv1
//
this.chkIzv1.AutoSize = true;
this.chkIzv1.Location = new System.Drawing.Point(102, 100);
this.chkIzv1.Name = "chkIzv1";
this.chkIzv1.Size = new System.Drawing.Size(15, 14);
this.chkIzv1.TabIndex = 49;
this.chkIzv1.UseVisualStyleBackColor = true;
//
// chkDoc1
//
this.chkDoc1.AutoSize = true;
this.chkDoc1.Location = new System.Drawing.Point(102, 74);
this.chkDoc1.Name = "chkDoc1";
this.chkDoc1.Size = new System.Drawing.Size(15, 14);
this.chkDoc1.TabIndex = 48;
this.chkDoc1.UseVisualStyleBackColor = true;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(223, 22);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(70, 13);
this.label15.TabIndex = 47;
this.label15.Text = "Добавление";
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(152, 22);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(65, 13);
this.label14.TabIndex = 46;
this.label14.Text = "Изменение";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(86, 22);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(44, 13);
this.label13.TabIndex = 45;
this.label13.Text = "Чтение";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(6, 204);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(62, 13);
this.label11.TabIndex = 43;
this.label11.Text = "Настройки";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(6, 178);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(61, 13);
this.label10.TabIndex = 42;
this.label10.Text = "Заказчики";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(6, 152);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(51, 13);
this.label9.TabIndex = 38;
this.label9.Text = "Изделия";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(6, 127);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(56, 13);
this.label8.TabIndex = 37;
this.label8.Text = "Поставки";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(6, 100);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(66, 13);
this.label7.TabIndex = 36;
this.label7.Text = "Извещения";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(6, 74);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(66, 13);
this.label6.TabIndex = 35;
this.label6.Text = "Документы";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(6, 48);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(57, 13);
this.label5.TabIndex = 34;
this.label5.Text = "Договора";
//
// chkDog1
//
this.chkDog1.AutoSize = true;
this.chkDog1.Location = new System.Drawing.Point(102, 48);
this.chkDog1.Name = "chkDog1";
this.chkDog1.Size = new System.Drawing.Size(15, 14);
this.chkDog1.TabIndex = 1;
this.chkDog1.UseVisualStyleBackColor = true;
//
// clearButton
//
this.clearButton.Location = new System.Drawing.Point(6, 362);
this.clearButton.Name = "clearButton";
this.clearButton.Size = new System.Drawing.Size(75, 23);
this.clearButton.TabIndex = 24;
this.clearButton.Text = "Сбросить";
this.clearButton.UseVisualStyleBackColor = true;
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
//
// idLable
//
this.idLable.AutoSize = true;
this.idLable.Location = new System.Drawing.Point(92, 24);
this.idLable.Name = "idLable";
this.idLable.Size = new System.Drawing.Size(69, 13);
this.idLable.TabIndex = 23;
this.idLable.Text = "Номер в БД";
//
// label
//
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(6, 50);
this.label.Name = "label";
this.label.Size = new System.Drawing.Size(80, 13);
this.label.TabIndex = 22;
this.label.Text = "Пользователь";
//
// nameBox
//
this.nameBox.Location = new System.Drawing.Point(95, 47);
this.nameBox.Name = "nameBox";
this.nameBox.Size = new System.Drawing.Size(223, 20);
this.nameBox.TabIndex = 21;
//
// errorLable
//
this.errorLable.AutoSize = true;
this.errorLable.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.errorLable.ForeColor = System.Drawing.Color.Red;
this.errorLable.Location = new System.Drawing.Point(3, 396);
this.errorLable.Name = "errorLable";
this.errorLable.Size = new System.Drawing.Size(149, 13);
this.errorLable.TabIndex = 20;
this.errorLable.Text = "Информация об ошибке";
this.errorLable.Visible = false;
//
// StatusButton
//
this.StatusButton.Location = new System.Drawing.Point(236, 391);
this.StatusButton.Name = "StatusButton";
this.StatusButton.Size = new System.Drawing.Size(75, 23);
this.StatusButton.TabIndex = 19;
this.StatusButton.Text = "Статусы";
this.StatusButton.UseVisualStyleBackColor = true;
this.StatusButton.Click += new System.EventHandler(this.StatusButton_Click);
//
// deleteButton
//
this.deleteButton.Location = new System.Drawing.Point(84, 362);
this.deleteButton.Name = "deleteButton";
this.deleteButton.Size = new System.Drawing.Size(75, 23);
this.deleteButton.TabIndex = 18;
this.deleteButton.Text = "Удалить";
this.deleteButton.UseVisualStyleBackColor = true;
this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
//
// changeButton
//
this.changeButton.Location = new System.Drawing.Point(160, 362);
this.changeButton.Name = "changeButton";
this.changeButton.Size = new System.Drawing.Size(75, 23);
this.changeButton.TabIndex = 17;
this.changeButton.Text = "Изменить";
this.changeButton.UseVisualStyleBackColor = true;
this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
//
// createButton
//
this.createButton.Location = new System.Drawing.Point(236, 362);
this.createButton.Name = "createButton";
this.createButton.Size = new System.Drawing.Size(75, 23);
this.createButton.TabIndex = 16;
this.createButton.Text = "Создать";
this.createButton.UseVisualStyleBackColor = true;
this.createButton.Click += new System.EventHandler(this.createButton_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(41, 76);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(45, 13);
this.label3.TabIndex = 8;
this.label3.Text = "Пароль";
//
// passBox
//
this.passBox.Location = new System.Drawing.Point(95, 73);
this.passBox.Name = "passBox";
this.passBox.Size = new System.Drawing.Size(223, 20);
this.passBox.TabIndex = 2;
this.passBox.UseSystemPasswordChar = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(68, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(18, 13);
this.label2.TabIndex = 0;
this.label2.Text = "№";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(342, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(39, 13);
this.label1.TabIndex = 16;
this.label1.Text = "Поиск";
//
// resetSearchButton
//
this.resetSearchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.resetSearchButton.Location = new System.Drawing.Point(552, 27);
this.resetSearchButton.Name = "resetSearchButton";
this.resetSearchButton.Size = new System.Drawing.Size(75, 23);
this.resetSearchButton.TabIndex = 15;
this.resetSearchButton.Text = "Сбросить";
this.resetSearchButton.UseVisualStyleBackColor = true;
this.resetSearchButton.Click += new System.EventHandler(this.resetSearchButton_Click);
//
// searchBox
//
this.searchBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.searchBox.Location = new System.Drawing.Point(387, 29);
this.searchBox.Name = "searchBox";
this.searchBox.Size = new System.Drawing.Size(159, 20);
this.searchBox.TabIndex = 14;
this.searchBox.Tag = "";
this.searchBox.TextChanged += new System.EventHandler(this.searchBox_TextChanged);
//
// SetForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(639, 464);
this.Controls.Add(this.mainMenuStrip);
this.Controls.Add(this.usrGridView);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.resetSearchButton);
this.Controls.Add(this.searchBox);
this.Name = "SetForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Настройки";
this.mainMenuStrip.ResumeLayout(false);
this.mainMenuStrip.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.usrGridView)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
}
private System.Windows.Forms.MenuStrip mainMenuStrip;
private System.Windows.Forms.ToolStripMenuItem dogToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem docToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem postToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem izdToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem zakToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem setToolStripMenuItem;
private System.Windows.Forms.DataGridView usrGridView;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button clearButton;
private System.Windows.Forms.Label idLable;
private System.Windows.Forms.Label label;
private System.Windows.Forms.TextBox nameBox;
private System.Windows.Forms.Label errorLable;
private System.Windows.Forms.Button StatusButton;
private System.Windows.Forms.Button deleteButton;
private System.Windows.Forms.Button changeButton;
private System.Windows.Forms.Button createButton;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox passBox;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button resetSearchButton;
private System.Windows.Forms.TextBox searchBox;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox defaultBox;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.CheckBox chkSet3;
private System.Windows.Forms.CheckBox chkZak3;
private System.Windows.Forms.CheckBox chkIzd3;
private System.Windows.Forms.CheckBox chkPost3;
private System.Windows.Forms.CheckBox chkIzv3;
private System.Windows.Forms.CheckBox chkDoc3;
private System.Windows.Forms.CheckBox chkDog3;
private System.Windows.Forms.CheckBox chkSet2;
private System.Windows.Forms.CheckBox chkZak2;
private System.Windows.Forms.CheckBox chkIzd2;
private System.Windows.Forms.CheckBox chkPost2;
private System.Windows.Forms.CheckBox chkIzv2;
private System.Windows.Forms.CheckBox chkDoc2;
private System.Windows.Forms.CheckBox chkDog2;
private System.Windows.Forms.CheckBox chkSet1;
private System.Windows.Forms.CheckBox chkZak1;
private System.Windows.Forms.CheckBox chkIzd1;
private System.Windows.Forms.CheckBox chkPost1;
private System.Windows.Forms.CheckBox chkIzv1;
private System.Windows.Forms.CheckBox chkDoc1;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.CheckBox chkDog1;
}
} }

View File

@ -7,6 +7,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using Diplom_B.DB;
namespace Diplom_B namespace Diplom_B
{ {
@ -15,6 +16,256 @@ namespace Diplom_B
public SetForm() public SetForm()
{ {
InitializeComponent(); InitializeComponent();
Init();
defaultBox.Items.Clear();
defaultBox.Items.AddRange(Program.user.FormsName);
UpdateTable(WorkDB.ListUser(searchBox.Text));
} }
}
private void Init()
{
if (Program.user == null) this.Close();
{
mainMenuStrip.Items[0].Enabled = Program.user.Usr.Dog > 0;
mainMenuStrip.Items[1].Enabled = Program.user.Usr.Doc > 0;
mainMenuStrip.Items[2].Enabled = Program.user.Usr.Izv > 0;
mainMenuStrip.Items[3].Enabled = Program.user.Usr.Post > 0;
mainMenuStrip.Items[4].Enabled = Program.user.Usr.Izd > 0;
mainMenuStrip.Items[5].Enabled = Program.user.Usr.Zak > 0;
mainMenuStrip.Items[6].Enabled = Program.user.Usr.Set > 0;
mainMenuStrip.Items[6].Enabled = false;
}
{
deleteButton.Enabled = Program.user.Usr.Set > 2;
createButton.Enabled = Program.user.Usr.Set > 2;
changeButton.Enabled = Program.user.Usr.Set > 1;
}
}
private void ClearBoxes()
{
idLable.Text = "";
nameBox.Text = "";
passBox.Text = "";
defaultBox.SelectedIndex = 0;
chkDog1.Checked = chkDog2.Checked = chkDog3.Checked = false;
chkDoc1.Checked = chkDoc2.Checked = chkDoc3.Checked = false;
chkIzv1.Checked = chkIzv2.Checked = chkIzv3.Checked = false;
chkPost1.Checked = chkPost2.Checked = chkPost3.Checked = false;
chkIzd1.Checked = chkIzd2.Checked = chkIzd3.Checked = false;
chkZak1.Checked = chkZak2.Checked = chkZak3.Checked = false;
chkSet1.Checked = chkSet2.Checked = chkSet3.Checked = false;
}
private void clearButton_Click(object sender, EventArgs e)
{
ClearBoxes();
}
private void UpdateTable(DB.User[] arr, bool reset_cursor = false)
{
var selected = (!reset_cursor && usrGridView.SelectedRows.Count > 0) ? usrGridView.SelectedRows[0].Index : -1;
{
var r = usrGridView.Rows;
while (r.Count > 0)
r.Remove(r[0]);
var c = usrGridView.Columns;
while (c.Count > 0)
c.Remove(c[0]);
}
{
var c = usrGridView.Columns;
c.Add("Id", "№");
c["Id"].Width = 40;
c.Add("Name", "Наим.");
c["Name"].Width = 60;
c.Add("DefaultForm", "Окно");
c["DefaultForm"].Width = 100;
}
{
var r = usrGridView.Rows;
foreach (var usr in arr)
r.Add(new object[] {
usr.Id,
usr.Name,
Program.user.FormsName[usr.Default]
});
}
if (usrGridView.Rows.Count > 0)
usrGridView.Rows[0].Selected = true;
if (selected != -1 && selected < usrGridView.Rows.Count)
for (var i = 0; i < usrGridView.Rows.Count; i++)
usrGridView.Rows[i].Selected = (i == selected);
usrGridView_CurrentCellChanged(this, new EventArgs());
}
private Task errDrop;
private void ShowError(string msg = null)
{
errorLable.Text = string.IsNullOrEmpty(msg) ? "Неизвестная ошибка." : msg;
errorLable.Visible = true;
errDrop = new Task(() =>
{
var fd = errDrop.Id;
Task.Delay(5000).Wait();
if (errDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { errorLable.Visible = false; }));
else errorLable.Visible = false;
});
errDrop.Start();
}
private Task filterDrop;
private void searchBox_TextChanged(object sender, EventArgs e)
{
filterDrop = new Task(() =>
{
var fd = filterDrop.Id;
Task.Delay(1000).Wait();
if (filterDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { UpdateTable(WorkDB.ListUser(searchBox.Text)); }));
else UpdateTable(WorkDB. ListUser(searchBox.Text));
});
filterDrop.Start();
}
private void usrGridView_CurrentCellChanged(object sender, EventArgs e)
{
ClearBoxes();
if (usrGridView.SelectedRows.Count != 1)
return;
{
var usr = WorkDB.GetUser((int)usrGridView.SelectedRows[0].Cells[0].Value);
if (usr == null)
return;
idLable.Text = usr.Id.ToString();
nameBox.Text = usr.Name;
passBox.Text = usr.Pass;
defaultBox.SelectedIndex = usr.Default;
chkDog1.Checked = usr.Dog > 0; chkDog2.Checked = usr.Dog > 1; chkDog3.Checked = usr.Dog > 2;
chkDoc1.Checked = usr.Doc > 0; chkDoc2.Checked = usr.Doc > 1; chkDoc3.Checked = usr.Doc > 2;
chkIzv1.Checked = usr.Izv > 0; chkIzv2.Checked = usr.Izv > 1; chkIzv3.Checked = usr.Izv > 2;
chkPost1.Checked = usr.Post > 0; chkPost2.Checked = usr.Post > 1; chkPost3.Checked = usr.Post > 2;
chkIzd1.Checked = usr.Izd > 0; chkIzd2.Checked = usr.Izd > 1; chkIzd3.Checked = usr.Izd > 2;
chkZak1.Checked = usr.Zak > 0; chkZak2.Checked = usr.Zak > 1; chkZak3.Checked = usr.Zak > 2;
chkSet1.Checked = usr.Set > 0; chkSet2.Checked = usr.Set > 1; chkSet3.Checked = usr.Set > 2;
}
}
private void resetSearchButton_Click(object sender, EventArgs e)
{
searchBox.Text = "";
filterDrop = new Task(() => { return; });
UpdateTable(WorkDB.ListUser(searchBox.Text));
}
private void createButton_Click(object sender, EventArgs e)
{
if(WorkDB.GetUserList().Contains(nameBox.Text)) { ShowError("Пользователь существует."); return; }
if(string.IsNullOrEmpty(passBox.Text)) { ShowError("Пароль пустой."); return; }
try
{
var r = new DB.User()
{
Name = nameBox.Text,
Pass = passBox.Text,
Dog = (chkDog3.Checked) ? 3 : (chkDog2.Checked) ? 2 : (chkDog1.Checked) ? 1 : 0,
Doc = (chkDoc3.Checked) ? 3 : (chkDoc2.Checked) ? 2 : (chkDoc1.Checked) ? 1 : 0,
Izv = (chkIzv3.Checked) ? 3 : (chkIzv2.Checked) ? 2 : (chkIzv1.Checked) ? 1 : 0,
Post = (chkPost3.Checked) ? 3 : (chkPost2.Checked) ? 2 : (chkPost1.Checked) ? 1 : 0,
Izd = (chkIzd3.Checked) ? 3 : (chkIzd2.Checked) ? 2 : (chkIzd1.Checked) ? 1 : 0,
Zak = (chkZak3.Checked) ? 3 : (chkZak2.Checked) ? 2 : (chkZak1.Checked) ? 1 : 0,
Set = (chkSet3.Checked) ? 3 : (chkSet2.Checked) ? 2 : (chkSet1.Checked) ? 1 : 0,
};
var flag = false;
switch (defaultBox.SelectedIndex)
{
case 0: flag = r.Dog > 0; break;
case 1: flag = r.Doc > 0; break;
case 2: flag = r.Izv > 0; break;
case 3: flag = r.Post > 0; break;
case 4: flag = r.Izd > 0; break;
case 5: flag = r.Zak > 0; break;
case 6: flag = r.Set > 0; break;
}
if (!flag) { ShowError("Форма недоступна."); return; }
r.Default = defaultBox.SelectedIndex;
WorkDB.AddUser(r);
UpdateTable(WorkDB.ListUser(searchBox.Text));
}
catch { ShowError(); }
}
private void changeButton_Click(object sender, EventArgs e)
{
try
{
if (!int.TryParse(idLable.Text, out int idRes)) { ShowError("Польз. не выбран."); return; }
var usr = WorkDB.GetUser(idRes);
if (usr == null) { ShowError("Нет польз. в БД."); return; }
if (string.IsNullOrEmpty(passBox.Text)) { ShowError("Пароль пустой."); return; }
if (usr.Name != nameBox.Text && WorkDB.GetUserList().Contains(nameBox.Text)) { ShowError("Польз. есть в БД."); return; }
usr.Name = (usr.Name == "admin") ? "admin" : nameBox.Text;
usr.Pass = passBox.Text;
usr.Dog = (chkDog3.Checked || usr.Name == "admin") ? 3 : (chkDog2.Checked) ? 2 : (chkDog1.Checked) ? 1 : 0;
usr.Doc = (chkDoc3.Checked || usr.Name == "admin") ? 3 : (chkDoc2.Checked) ? 2 : (chkDoc1.Checked) ? 1 : 0;
usr.Izv = (chkIzv3.Checked || usr.Name == "admin") ? 3 : (chkIzv2.Checked) ? 2 : (chkIzv1.Checked) ? 1 : 0;
usr.Post = (chkPost3.Checked || usr.Name == "admin") ? 3 : (chkPost2.Checked) ? 2 : (chkPost1.Checked) ? 1 : 0;
usr.Izd = (chkIzd3.Checked || usr.Name == "admin") ? 3 : (chkIzd2.Checked) ? 2 : (chkIzd1.Checked) ? 1 : 0;
usr.Zak = (chkZak3.Checked || usr.Name == "admin") ? 3 : (chkZak2.Checked) ? 2 : (chkZak1.Checked) ? 1 : 0;
usr.Set = (chkSet3.Checked || usr.Name == "admin") ? 3 : (chkSet2.Checked) ? 2 : (chkSet1.Checked) ? 1 : 0;
var flag = false;
switch (defaultBox.SelectedIndex)
{
case 0: flag = usr.Dog > 0; break;
case 1: flag = usr.Doc > 0; break;
case 2: flag = usr.Izv > 0; break;
case 3: flag = usr.Post > 0; break;
case 4: flag = usr.Izd > 0; break;
case 5: flag = usr.Zak > 0; break;
case 6: flag = usr.Set > 0; break;
}
if (!flag) { ShowError("Форма недоступна."); return; }
usr.Default = defaultBox.SelectedIndex;
WorkDB.ChangeUser(usr);
UpdateTable(WorkDB.ListUser(searchBox.Text));
}
catch { ShowError(); }
}
private void deleteButton_Click(object sender, EventArgs e)
{
if (!int.TryParse(idLable.Text, out int idRes)) { ShowError("Польз. не выбран."); return; }
var usr = WorkDB.GetUser(idRes);
if (usr == null) { ShowError("Польз. не существует."); return; }
if (usr.Name == "admin") { ShowError("Нельзя улвить польз."); return; }
try
{
WorkDB.DeleteUser(usr);
}
catch { ShowError(); }
UpdateTable(WorkDB.ListUser(searchBox.Text));
}
private void MenuItem_Click(object sender, EventArgs e)
{
object form = null;
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[0]) { form = new DogForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[1]) { form = new DocForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[2]) { form = new IzvForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[3]) { form = new PostForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[4]) { form = new IzdForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[5]) { form = new ZakForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[6]) { form = new SetForm(); }
if (form != null)
{
this.Hide();
((Form)form).Closed += (s, args) => this.Close();
((Form)form).Show();
}
}
private void StatusButton_Click(object sender, EventArgs e)
{
var form = new StatForm();
form.ShowDialog();
}
}
} }

123
SetForm.resx Normal file
View File

@ -0,0 +1,123 @@
<?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
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<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
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
mimetype set.
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
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
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
: 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
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="mainMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

163
StatForm.Designer.cs generated Normal file
View File

@ -0,0 +1,163 @@

namespace Diplom_B
{
partial class StatForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.errorLable = new System.Windows.Forms.Label();
this.deleteButton = new System.Windows.Forms.Button();
this.changeButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.createButton = new System.Windows.Forms.Button();
this.nameBox = new System.Windows.Forms.TextBox();
this.statGridView = new System.Windows.Forms.DataGridView();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.statGridView)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.errorLable);
this.groupBox1.Controls.Add(this.deleteButton);
this.groupBox1.Controls.Add(this.changeButton);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.createButton);
this.groupBox1.Controls.Add(this.nameBox);
this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(251, 109);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Информационное окно";
//
// errorLable
//
this.errorLable.AutoSize = true;
this.errorLable.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.errorLable.ForeColor = System.Drawing.Color.Red;
this.errorLable.Location = new System.Drawing.Point(6, 80);
this.errorLable.Name = "errorLable";
this.errorLable.Size = new System.Drawing.Size(149, 13);
this.errorLable.TabIndex = 21;
this.errorLable.Text = "Информация об ошибке";
this.errorLable.Visible = false;
//
// deleteButton
//
this.deleteButton.Location = new System.Drawing.Point(9, 45);
this.deleteButton.Name = "deleteButton";
this.deleteButton.Size = new System.Drawing.Size(75, 23);
this.deleteButton.TabIndex = 21;
this.deleteButton.Text = "Удалить";
this.deleteButton.UseVisualStyleBackColor = true;
this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
//
// changeButton
//
this.changeButton.Location = new System.Drawing.Point(85, 45);
this.changeButton.Name = "changeButton";
this.changeButton.Size = new System.Drawing.Size(75, 23);
this.changeButton.TabIndex = 20;
this.changeButton.Text = "Изменить";
this.changeButton.UseVisualStyleBackColor = true;
this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 22);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(57, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Название";
//
// createButton
//
this.createButton.Location = new System.Drawing.Point(161, 45);
this.createButton.Name = "createButton";
this.createButton.Size = new System.Drawing.Size(75, 23);
this.createButton.TabIndex = 19;
this.createButton.Text = "Создать";
this.createButton.UseVisualStyleBackColor = true;
this.createButton.Click += new System.EventHandler(this.createButton_Click);
//
// nameBox
//
this.nameBox.Location = new System.Drawing.Point(69, 19);
this.nameBox.Name = "nameBox";
this.nameBox.Size = new System.Drawing.Size(167, 20);
this.nameBox.TabIndex = 0;
//
// statGridView
//
this.statGridView.AllowUserToAddRows = false;
this.statGridView.AllowUserToDeleteRows = false;
this.statGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.statGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.statGridView.Location = new System.Drawing.Point(12, 127);
this.statGridView.Name = "statGridView";
this.statGridView.RowHeadersVisible = false;
this.statGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.statGridView.Size = new System.Drawing.Size(251, 327);
this.statGridView.TabIndex = 19;
this.statGridView.CurrentCellChanged += new System.EventHandler(this.statGridView_CurrentCellChanged);
//
// StatForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(275, 466);
this.Controls.Add(this.statGridView);
this.Controls.Add(this.groupBox1);
this.Name = "StatForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Статусы поставки";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.statGridView)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox nameBox;
private System.Windows.Forms.Button deleteButton;
private System.Windows.Forms.Button changeButton;
private System.Windows.Forms.Button createButton;
private System.Windows.Forms.Label errorLable;
private System.Windows.Forms.DataGridView statGridView;
}
}

134
StatForm.cs Normal file
View File

@ -0,0 +1,134 @@
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 Diplom_B.DB;
namespace Diplom_B
{
public partial class StatForm : Form
{
public StatForm()
{
InitializeComponent();
Init();
UpdateTable(WorkDB.ListStatus());
}
private void Init()
{
if (Program.user == null) this.Close();
{
deleteButton.Enabled = Program.user.Usr.Set > 2;
createButton.Enabled = Program.user.Usr.Set > 2;
changeButton.Enabled = Program.user.Usr.Set > 1;
}
}
private void UpdateTable(Status[] arr, bool reset_cursor = false)
{
var selected = (!reset_cursor && statGridView.SelectedRows.Count > 0) ? statGridView.SelectedRows[0].Index : -1;
{
var r = statGridView.Rows;
while (r.Count > 0)
r.Remove(r[0]);
var c = statGridView.Columns;
while (c.Count > 0)
c.Remove(c[0]);
}
{
var c = statGridView.Columns;
c.Add("Id", "№");
c["Id"].Width = 40;
c.Add("Name", "Наим.");
c["Name"].Width = 100;
}
{
var r = statGridView.Rows;
foreach (var stat in arr)
r.Add(new object[] {
stat.Id,
stat.Stat,
});
}
if (statGridView.Rows.Count > 0)
statGridView.Rows[0].Selected = true;
if (selected != -1 && selected < statGridView.Rows.Count)
for (var i = 0; i < statGridView.Rows.Count; i++)
statGridView.Rows[i].Selected = (i == selected);
statGridView_CurrentCellChanged(this, new EventArgs());
}
private Task errDrop;
private void ShowError(string msg = null)
{
errorLable.Text = string.IsNullOrEmpty(msg) ? "Неизвестная ошибка." : msg;
errorLable.Visible = true;
errDrop = new Task(() =>
{
var fd = errDrop.Id;
Task.Delay(5000).Wait();
if (errDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { errorLable.Visible = false; }));
else errorLable.Visible = false;
});
errDrop.Start();
}
private void statGridView_CurrentCellChanged(object sender, EventArgs e)
{
if (statGridView.SelectedRows.Count != 1)
return;
{
var stat = WorkDB.GetStatus((int)statGridView.SelectedRows[0].Cells[0].Value);
if (stat == null)
return;
nameBox.Text = stat.Stat;
}
}
private void createButton_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(nameBox.Text)) { ShowError("Статус пустой."); return; }
if (WorkDB.GetStatusList().Contains(nameBox.Text)) { ShowError("Статус существует."); return; }
try
{
var r = new Status() { Stat = nameBox.Text };
WorkDB.AddStatus(r);
UpdateTable(WorkDB.ListStatus());
}
catch { ShowError(); }
}
private void changeButton_Click(object sender, EventArgs e)
{
try
{
if (statGridView.SelectedRows.Count != 1) { ShowError("Статус не выбран."); return; }
if (string.IsNullOrEmpty(nameBox.Text)) { ShowError("Название пустое."); return; }
var stat = WorkDB.GetStatus((int)statGridView.SelectedRows[0].Cells[0].Value);
if (stat.Stat != nameBox.Text && WorkDB.GetStatusList().Contains(nameBox.Text)) { ShowError("Статус существует."); return; }
stat.Stat = nameBox.Text;
WorkDB.ChangeStatus(stat);
UpdateTable(WorkDB.ListStatus());
}
catch { ShowError(); }
}
private void deleteButton_Click(object sender, EventArgs e)
{
if (statGridView.SelectedRows.Count != 1) { ShowError("Статус не выбран."); return; }
if (WorkDB.ListStatus().Length <= 1) { ShowError("Нельзя удалить."); return; }
if (WorkDB.GetPostavkyFromStatus((int)statGridView.SelectedRows[0].Cells[0].Value).Length > 0) { ShowError("Есть связи с поставками."); return; }
var stat = WorkDB.GetStatus((int)statGridView.SelectedRows[0].Cells[0].Value);
if (stat == null) { ShowError("Статуса нет."); return; }
try { WorkDB.DeleteStatus(stat); }
catch { ShowError(); }
UpdateTable(WorkDB.ListStatus());
}
}
}

120
StatForm.resx Normal file
View File

@ -0,0 +1,120 @@
<?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
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<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
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
mimetype set.
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
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
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
: 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
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -9,8 +9,15 @@ namespace Diplom_B
{ {
public class User public class User
{ {
public readonly string[] FormsName = new string[]
{
"Договора","Документы","Извещения",
"Поставки","Изделия","Заказчики",
"Настройки"
};
private string user = ""; private string user = "";
private string password = ""; private string password = "";
public DB.User Usr { get; set; }
public User(string user, string password) public User(string user, string password)
{ {
this.user = user; this.user = user;
@ -37,6 +44,8 @@ namespace Diplom_B
where u.Name == user && u.Pass == password where u.Name == user && u.Pass == password
select u).ToArray(); select u).ToArray();
res = usr.Length == 1; res = usr.Length == 1;
if (res)
Usr = usr[0];
} }
return res; return res;
} }

685
ZakForm.Designer.cs generated
View File

@ -29,331 +29,346 @@ namespace Diplom_B
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.zakGridView = new System.Windows.Forms.DataGridView(); this.zakGridView = new System.Windows.Forms.DataGridView();
this.resetSearchButton = new System.Windows.Forms.Button(); this.resetSearchButton = new System.Windows.Forms.Button();
this.label10 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label();
this.searchBox = new System.Windows.Forms.TextBox(); this.searchBox = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.adressBox = new System.Windows.Forms.RichTextBox(); this.adressBox = new System.Windows.Forms.RichTextBox();
this.errorLabel = new System.Windows.Forms.Label(); this.errorLabel = new System.Windows.Forms.Label();
this.SelectZakButton = new System.Windows.Forms.Button(); this.selectButton = new System.Windows.Forms.Button();
this.createZakButton = new System.Windows.Forms.Button(); this.createButton = new System.Windows.Forms.Button();
this.changeZakButton = new System.Windows.Forms.Button(); this.changeButton = new System.Windows.Forms.Button();
this.idLabel = new System.Windows.Forms.Label(); this.idLabel = new System.Windows.Forms.Label();
this.resetZakButton = new System.Windows.Forms.Button(); this.resetButton = new System.Windows.Forms.Button();
this.deleteZakButton = new System.Windows.Forms.Button(); this.deleteButton = new System.Windows.Forms.Button();
this.emailBox = new System.Windows.Forms.TextBox(); this.emailBox = new System.Windows.Forms.TextBox();
this.phoneBox = new System.Windows.Forms.TextBox(); this.phoneBox = new System.Windows.Forms.TextBox();
this.nameBox = new System.Windows.Forms.TextBox(); this.nameBox = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.mainMenuStrip = new System.Windows.Forms.MenuStrip(); this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
this.договорToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.dogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.документыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.docToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.извещенияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.izvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.поставкиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.postToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.изделияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.izdToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.заказчикиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.zakToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.настройкиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.setToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.zakGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.zakGridView)).BeginInit();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.mainMenuStrip.SuspendLayout(); this.mainMenuStrip.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// zakGridView // zakGridView
// //
this.zakGridView.AllowUserToAddRows = false; this.zakGridView.AllowUserToAddRows = false;
this.zakGridView.AllowUserToDeleteRows = false; this.zakGridView.AllowUserToDeleteRows = false;
this.zakGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.zakGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.zakGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells; this.zakGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.zakGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.zakGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.zakGridView.Location = new System.Drawing.Point(324, 53); this.zakGridView.Location = new System.Drawing.Point(324, 53);
this.zakGridView.Name = "zakGridView"; this.zakGridView.Name = "zakGridView";
this.zakGridView.RowHeadersVisible = false; this.zakGridView.RowHeadersVisible = false;
this.zakGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.zakGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.zakGridView.Size = new System.Drawing.Size(501, 291); this.zakGridView.Size = new System.Drawing.Size(501, 291);
this.zakGridView.TabIndex = 14; this.zakGridView.TabIndex = 14;
// this.zakGridView.CurrentCellChanged += new System.EventHandler(this.zakGridView_CurrentCellChanged);
// resetSearchButton //
// // resetSearchButton
this.resetSearchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); //
this.resetSearchButton.Location = new System.Drawing.Point(750, 25); this.resetSearchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.resetSearchButton.Name = "resetSearchButton"; this.resetSearchButton.Location = new System.Drawing.Point(750, 25);
this.resetSearchButton.Size = new System.Drawing.Size(75, 23); this.resetSearchButton.Name = "resetSearchButton";
this.resetSearchButton.TabIndex = 13; this.resetSearchButton.Size = new System.Drawing.Size(75, 23);
this.resetSearchButton.Text = "Сбросить"; this.resetSearchButton.TabIndex = 13;
this.resetSearchButton.UseVisualStyleBackColor = true; this.resetSearchButton.Text = "Сбросить";
// this.resetSearchButton.UseVisualStyleBackColor = true;
// label10 this.resetSearchButton.Click += new System.EventHandler(this.resetSearchButton_Click);
// //
this.label10.AutoSize = true; // label10
this.label10.Location = new System.Drawing.Point(321, 30); //
this.label10.Name = "label10"; this.label10.AutoSize = true;
this.label10.Size = new System.Drawing.Size(39, 13); this.label10.Location = new System.Drawing.Point(321, 30);
this.label10.TabIndex = 12; this.label10.Name = "label10";
this.label10.Text = "Поиск"; this.label10.Size = new System.Drawing.Size(39, 13);
// this.label10.TabIndex = 12;
// searchBox this.label10.Text = "Поиск";
// //
this.searchBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) // searchBox
//
this.searchBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.searchBox.Location = new System.Drawing.Point(366, 27); this.searchBox.Location = new System.Drawing.Point(366, 27);
this.searchBox.Name = "searchBox"; this.searchBox.Name = "searchBox";
this.searchBox.Size = new System.Drawing.Size(378, 20); this.searchBox.Size = new System.Drawing.Size(378, 20);
this.searchBox.TabIndex = 11; this.searchBox.TabIndex = 11;
// this.searchBox.TextChanged += new System.EventHandler(this.searchBox_TextChanged);
// groupBox1 //
// // groupBox1
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) //
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left))); | System.Windows.Forms.AnchorStyles.Left)));
this.groupBox1.Controls.Add(this.adressBox); this.groupBox1.Controls.Add(this.adressBox);
this.groupBox1.Controls.Add(this.errorLabel); this.groupBox1.Controls.Add(this.errorLabel);
this.groupBox1.Controls.Add(this.SelectZakButton); this.groupBox1.Controls.Add(this.selectButton);
this.groupBox1.Controls.Add(this.createZakButton); this.groupBox1.Controls.Add(this.createButton);
this.groupBox1.Controls.Add(this.changeZakButton); this.groupBox1.Controls.Add(this.changeButton);
this.groupBox1.Controls.Add(this.idLabel); this.groupBox1.Controls.Add(this.idLabel);
this.groupBox1.Controls.Add(this.resetZakButton); this.groupBox1.Controls.Add(this.resetButton);
this.groupBox1.Controls.Add(this.deleteZakButton); this.groupBox1.Controls.Add(this.deleteButton);
this.groupBox1.Controls.Add(this.emailBox); this.groupBox1.Controls.Add(this.emailBox);
this.groupBox1.Controls.Add(this.phoneBox); this.groupBox1.Controls.Add(this.phoneBox);
this.groupBox1.Controls.Add(this.nameBox); this.groupBox1.Controls.Add(this.nameBox);
this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(12, 27); this.groupBox1.Location = new System.Drawing.Point(12, 27);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(303, 317); this.groupBox1.Size = new System.Drawing.Size(303, 317);
this.groupBox1.TabIndex = 10; this.groupBox1.TabIndex = 10;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "Информационное окно"; this.groupBox1.Text = "Информационное окно";
// //
// adressBox // adressBox
// //
this.adressBox.Location = new System.Drawing.Point(102, 71); this.adressBox.Location = new System.Drawing.Point(102, 71);
this.adressBox.Name = "adressBox"; this.adressBox.Name = "adressBox";
this.adressBox.Size = new System.Drawing.Size(194, 124); this.adressBox.Size = new System.Drawing.Size(194, 124);
this.adressBox.TabIndex = 32; this.adressBox.TabIndex = 32;
this.adressBox.Text = ""; this.adressBox.Text = "";
// //
// errorLabel // errorLabel
// //
this.errorLabel.AutoSize = true; this.errorLabel.AutoSize = true;
this.errorLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.errorLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.errorLabel.ForeColor = System.Drawing.Color.Red; this.errorLabel.ForeColor = System.Drawing.Color.Red;
this.errorLabel.Location = new System.Drawing.Point(6, 290); this.errorLabel.Location = new System.Drawing.Point(6, 290);
this.errorLabel.Name = "errorLabel"; this.errorLabel.Name = "errorLabel";
this.errorLabel.Size = new System.Drawing.Size(149, 13); this.errorLabel.Size = new System.Drawing.Size(149, 13);
this.errorLabel.TabIndex = 31; this.errorLabel.TabIndex = 31;
this.errorLabel.Text = "Информация об ошибке"; this.errorLabel.Text = "Информация об ошибке";
this.errorLabel.Visible = false; this.errorLabel.Visible = false;
// //
// SelectZakButton // selectButton
// //
this.SelectZakButton.Location = new System.Drawing.Point(228, 285); this.selectButton.Location = new System.Drawing.Point(228, 285);
this.SelectZakButton.Name = "SelectZakButton"; this.selectButton.Name = "selectButton";
this.SelectZakButton.Size = new System.Drawing.Size(68, 23); this.selectButton.Size = new System.Drawing.Size(68, 23);
this.SelectZakButton.TabIndex = 30; this.selectButton.TabIndex = 30;
this.SelectZakButton.Text = "Выбрать"; this.selectButton.Text = "Выбрать";
this.SelectZakButton.UseVisualStyleBackColor = true; this.selectButton.UseVisualStyleBackColor = true;
this.SelectZakButton.Visible = false; this.selectButton.Visible = false;
// this.selectButton.Click += new System.EventHandler(this.selectButton_Click);
// createZakButton //
// // createButton
this.createZakButton.Location = new System.Drawing.Point(228, 256); //
this.createZakButton.Name = "createZakButton"; this.createButton.Location = new System.Drawing.Point(228, 256);
this.createZakButton.Size = new System.Drawing.Size(68, 23); this.createButton.Name = "createButton";
this.createZakButton.TabIndex = 26; this.createButton.Size = new System.Drawing.Size(68, 23);
this.createZakButton.Text = "Создать"; this.createButton.TabIndex = 26;
this.createZakButton.UseVisualStyleBackColor = true; this.createButton.Text = "Создать";
// this.createButton.UseVisualStyleBackColor = true;
// changeZakButton this.createButton.Click += new System.EventHandler(this.createButton_Click);
// //
this.changeZakButton.Location = new System.Drawing.Point(154, 256); // changeButton
this.changeZakButton.Name = "changeZakButton"; //
this.changeZakButton.Size = new System.Drawing.Size(68, 23); this.changeButton.Location = new System.Drawing.Point(154, 256);
this.changeZakButton.TabIndex = 27; this.changeButton.Name = "changeButton";
this.changeZakButton.Text = "Изменить"; this.changeButton.Size = new System.Drawing.Size(68, 23);
this.changeZakButton.UseVisualStyleBackColor = true; this.changeButton.TabIndex = 27;
// this.changeButton.Text = "Изменить";
// idLabel this.changeButton.UseVisualStyleBackColor = true;
// this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
this.idLabel.AutoSize = true; //
this.idLabel.Location = new System.Drawing.Point(102, 22); // idLabel
this.idLabel.Name = "idLabel"; //
this.idLabel.Size = new System.Drawing.Size(69, 13); this.idLabel.AutoSize = true;
this.idLabel.TabIndex = 24; this.idLabel.Location = new System.Drawing.Point(102, 22);
this.idLabel.Text = "Номер в БД"; this.idLabel.Name = "idLabel";
// this.idLabel.Size = new System.Drawing.Size(69, 13);
// resetZakButton this.idLabel.TabIndex = 24;
// this.idLabel.Text = "Номер в БД";
this.resetZakButton.Location = new System.Drawing.Point(6, 256); //
this.resetZakButton.Name = "resetZakButton"; // resetButton
this.resetZakButton.Size = new System.Drawing.Size(68, 23); //
this.resetZakButton.TabIndex = 29; this.resetButton.Location = new System.Drawing.Point(6, 256);
this.resetZakButton.Text = "Сбросить"; this.resetButton.Name = "resetButton";
this.resetZakButton.UseVisualStyleBackColor = true; this.resetButton.Size = new System.Drawing.Size(68, 23);
// this.resetButton.TabIndex = 29;
// deleteZakButton this.resetButton.Text = "Сбросить";
// this.resetButton.UseVisualStyleBackColor = true;
this.deleteZakButton.Location = new System.Drawing.Point(80, 256); this.resetButton.Click += new System.EventHandler(this.resetButton_Click);
this.deleteZakButton.Name = "deleteZakButton"; //
this.deleteZakButton.Size = new System.Drawing.Size(68, 23); // deleteButton
this.deleteZakButton.TabIndex = 28; //
this.deleteZakButton.Text = "Удалить"; this.deleteButton.Location = new System.Drawing.Point(80, 256);
this.deleteZakButton.UseVisualStyleBackColor = true; this.deleteButton.Name = "deleteButton";
// this.deleteButton.Size = new System.Drawing.Size(68, 23);
// emailBox this.deleteButton.TabIndex = 28;
// this.deleteButton.Text = "Удалить";
this.emailBox.Location = new System.Drawing.Point(102, 227); this.deleteButton.UseVisualStyleBackColor = true;
this.emailBox.Name = "emailBox"; this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
this.emailBox.Size = new System.Drawing.Size(194, 20); //
this.emailBox.TabIndex = 19; // emailBox
// //
// phoneBox this.emailBox.Location = new System.Drawing.Point(102, 227);
// this.emailBox.Name = "emailBox";
this.phoneBox.Location = new System.Drawing.Point(102, 201); this.emailBox.Size = new System.Drawing.Size(194, 20);
this.phoneBox.Name = "phoneBox"; this.emailBox.TabIndex = 19;
this.phoneBox.Size = new System.Drawing.Size(194, 20); //
this.phoneBox.TabIndex = 18; // phoneBox
// //
// nameBox this.phoneBox.Location = new System.Drawing.Point(102, 201);
// this.phoneBox.Name = "phoneBox";
this.nameBox.Location = new System.Drawing.Point(102, 45); this.phoneBox.Size = new System.Drawing.Size(194, 20);
this.nameBox.Name = "nameBox"; this.phoneBox.TabIndex = 18;
this.nameBox.Size = new System.Drawing.Size(194, 20); //
this.nameBox.TabIndex = 17; // nameBox
// //
// label5 this.nameBox.Location = new System.Drawing.Point(102, 45);
// this.nameBox.Name = "nameBox";
this.label5.AutoSize = true; this.nameBox.Size = new System.Drawing.Size(194, 20);
this.label5.Location = new System.Drawing.Point(35, 230); this.nameBox.TabIndex = 17;
this.label5.Name = "label5"; //
this.label5.Size = new System.Drawing.Size(54, 13); // label5
this.label5.TabIndex = 13; //
this.label5.Text = "Эл. почта"; this.label5.AutoSize = true;
// this.label5.Location = new System.Drawing.Point(35, 230);
// label4 this.label5.Name = "label5";
// this.label5.Size = new System.Drawing.Size(54, 13);
this.label4.AutoSize = true; this.label5.TabIndex = 13;
this.label4.Location = new System.Drawing.Point(37, 204); this.label5.Text = "Эл. почта";
this.label4.Name = "label4"; //
this.label4.Size = new System.Drawing.Size(52, 13); // label4
this.label4.TabIndex = 12; //
this.label4.Text = "Телефон"; this.label4.AutoSize = true;
// this.label4.Location = new System.Drawing.Point(37, 204);
// label3 this.label4.Name = "label4";
// this.label4.Size = new System.Drawing.Size(52, 13);
this.label3.AutoSize = true; this.label4.TabIndex = 12;
this.label3.Location = new System.Drawing.Point(51, 74); this.label4.Text = "Телефон";
this.label3.Name = "label3"; //
this.label3.Size = new System.Drawing.Size(38, 13); // label3
this.label3.TabIndex = 11; //
this.label3.Text = "Адрес"; this.label3.AutoSize = true;
// this.label3.Location = new System.Drawing.Point(51, 74);
// label2 this.label3.Name = "label3";
// this.label3.Size = new System.Drawing.Size(38, 13);
this.label2.AutoSize = true; this.label3.TabIndex = 11;
this.label2.Location = new System.Drawing.Point(6, 48); this.label3.Text = "Адрес";
this.label2.Name = "label2"; //
this.label2.Size = new System.Drawing.Size(83, 13); // label2
this.label2.TabIndex = 10; //
this.label2.Text = "Наименование"; this.label2.AutoSize = true;
// this.label2.Location = new System.Drawing.Point(6, 48);
// label1 this.label2.Name = "label2";
// this.label2.Size = new System.Drawing.Size(83, 13);
this.label1.AutoSize = true; this.label2.TabIndex = 10;
this.label1.Location = new System.Drawing.Point(71, 22); this.label2.Text = "Наименование";
this.label1.Name = "label1"; //
this.label1.Size = new System.Drawing.Size(18, 13); // label1
this.label1.TabIndex = 9; //
this.label1.Text = "№"; this.label1.AutoSize = true;
// this.label1.Location = new System.Drawing.Point(71, 22);
// mainMenuStrip this.label1.Name = "label1";
// this.label1.Size = new System.Drawing.Size(18, 13);
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.label1.TabIndex = 9;
this.договорToolStripMenuItem, this.label1.Text = "№";
this.документыToolStripMenuItem, //
this.извещенияToolStripMenuItem, // mainMenuStrip
this.поставкиToolStripMenuItem, //
this.изделияToolStripMenuItem, this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.заказчикиToolStripMenuItem, this.dogToolStripMenuItem,
this.настройкиToolStripMenuItem}); this.docToolStripMenuItem,
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0); this.izvToolStripMenuItem,
this.mainMenuStrip.Name = "mainMenuStrip"; this.postToolStripMenuItem,
this.mainMenuStrip.Size = new System.Drawing.Size(837, 24); this.izdToolStripMenuItem,
this.mainMenuStrip.TabIndex = 15; this.zakToolStripMenuItem,
this.mainMenuStrip.Text = "menuStrip1"; this.setToolStripMenuItem});
// this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
// договорToolStripMenuItem this.mainMenuStrip.Name = "mainMenuStrip";
// this.mainMenuStrip.Size = new System.Drawing.Size(837, 24);
this.договорToolStripMenuItem.Name = оговорToolStripMenuItem"; this.mainMenuStrip.TabIndex = 20;
this.договорToolStripMenuItem.Size = new System.Drawing.Size(66, 20); this.mainMenuStrip.Text = "menuStrip1";
this.договорToolStripMenuItem.Text = "Договор"; //
// // dogToolStripMenuItem
// документыToolStripMenuItem //
// this.dogToolStripMenuItem.Name = "dogToolStripMenuItem";
this.документыToolStripMenuItem.Name = окументыToolStripMenuItem"; this.dogToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
this.документыToolStripMenuItem.Size = new System.Drawing.Size(82, 20); this.dogToolStripMenuItem.Text = "Договор";
this.документыToolStripMenuItem.Text = "Документы"; this.dogToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
// //
// извещенияToolStripMenuItem // docToolStripMenuItem
// //
this.извещенияToolStripMenuItem.Name = "извещенияToolStripMenuItem"; this.docToolStripMenuItem.Name = "docToolStripMenuItem";
this.извещенияToolStripMenuItem.Size = new System.Drawing.Size(82, 20); this.docToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
this.извещенияToolStripMenuItem.Text = "Извещения"; this.docToolStripMenuItem.Text = "Документы";
// this.docToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
// поставкиToolStripMenuItem //
// // izvToolStripMenuItem
this.поставкиToolStripMenuItem.Name = "поставкиToolStripMenuItem"; //
this.поставкиToolStripMenuItem.Size = new System.Drawing.Size(71, 20); this.izvToolStripMenuItem.Name = "izvToolStripMenuItem";
this.поставкиToolStripMenuItem.Text = "Поставки"; this.izvToolStripMenuItem.Size = new System.Drawing.Size(82, 20);
// this.izvToolStripMenuItem.Text = "Извещения";
// изделияToolStripMenuItem this.izvToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
// //
this.изделияToolStripMenuItem.Name = "изделияToolStripMenuItem"; // postToolStripMenuItem
this.изделияToolStripMenuItem.Size = new System.Drawing.Size(65, 20); //
this.изделияToolStripMenuItem.Text = "Изделия"; this.postToolStripMenuItem.Name = "postToolStripMenuItem";
// this.postToolStripMenuItem.Size = new System.Drawing.Size(71, 20);
// заказчикиToolStripMenuItem this.postToolStripMenuItem.Text = "Поставки";
// this.postToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.заказчикиToolStripMenuItem.Name = аказчикиToolStripMenuItem"; //
this.заказчикиToolStripMenuItem.Size = new System.Drawing.Size(76, 20); // izdToolStripMenuItem
this.заказчикиToolStripMenuItem.Text = "Заказчики"; //
// this.izdToolStripMenuItem.Name = "izdToolStripMenuItem";
// настройкиToolStripMenuItem this.izdToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
// this.izdToolStripMenuItem.Text = "Изделия";
this.настройкиToolStripMenuItem.Name = астройкиToolStripMenuItem"; this.izdToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.настройкиToolStripMenuItem.Size = new System.Drawing.Size(79, 20); //
this.настройкиToolStripMenuItem.Text = "Настройки"; // zakToolStripMenuItem
// //
// ZakazchikForm this.zakToolStripMenuItem.Name = "zakToolStripMenuItem";
// this.zakToolStripMenuItem.Size = new System.Drawing.Size(76, 20);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.zakToolStripMenuItem.Text = "Заказчики";
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.zakToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.ClientSize = new System.Drawing.Size(837, 356); //
this.Controls.Add(this.mainMenuStrip); // setToolStripMenuItem
this.Controls.Add(this.zakGridView); //
this.Controls.Add(this.resetSearchButton); this.setToolStripMenuItem.Name = "setToolStripMenuItem";
this.Controls.Add(this.label10); this.setToolStripMenuItem.Size = new System.Drawing.Size(79, 20);
this.Controls.Add(this.searchBox); this.setToolStripMenuItem.Text = "Настройки";
this.Controls.Add(this.groupBox1); this.setToolStripMenuItem.Click += new System.EventHandler(this.MenuItem_Click);
this.Name = "ZakazchikForm"; //
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; // ZakForm
this.Text = "Заказчики"; //
((System.ComponentModel.ISupportInitialize)(this.zakGridView)).EndInit(); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.groupBox1.ResumeLayout(false); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.groupBox1.PerformLayout(); this.ClientSize = new System.Drawing.Size(837, 356);
this.mainMenuStrip.ResumeLayout(false); this.Controls.Add(this.mainMenuStrip);
this.mainMenuStrip.PerformLayout(); this.Controls.Add(this.zakGridView);
this.ResumeLayout(false); this.Controls.Add(this.resetSearchButton);
this.PerformLayout(); this.Controls.Add(this.label10);
this.Controls.Add(this.searchBox);
this.Controls.Add(this.groupBox1);
this.Name = "ZakForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Заказчики";
((System.ComponentModel.ISupportInitialize)(this.zakGridView)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.mainMenuStrip.ResumeLayout(false);
this.mainMenuStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
} }
@ -366,12 +381,12 @@ namespace Diplom_B
private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.RichTextBox adressBox; private System.Windows.Forms.RichTextBox adressBox;
private System.Windows.Forms.Label errorLabel; private System.Windows.Forms.Label errorLabel;
private System.Windows.Forms.Button SelectZakButton; private System.Windows.Forms.Button selectButton;
private System.Windows.Forms.Button createZakButton; private System.Windows.Forms.Button createButton;
private System.Windows.Forms.Button changeZakButton; private System.Windows.Forms.Button changeButton;
private System.Windows.Forms.Label idLabel; private System.Windows.Forms.Label idLabel;
private System.Windows.Forms.Button resetZakButton; private System.Windows.Forms.Button resetButton;
private System.Windows.Forms.Button deleteZakButton; private System.Windows.Forms.Button deleteButton;
private System.Windows.Forms.TextBox emailBox; private System.Windows.Forms.TextBox emailBox;
private System.Windows.Forms.TextBox phoneBox; private System.Windows.Forms.TextBox phoneBox;
private System.Windows.Forms.TextBox nameBox; private System.Windows.Forms.TextBox nameBox;
@ -380,13 +395,13 @@ namespace Diplom_B
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.MenuStrip mainMenuStrip; private System.Windows.Forms.MenuStrip mainMenuStrip;
private System.Windows.Forms.ToolStripMenuItem договорToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem dogToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem документыToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem docToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem извещенияToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem izvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem поставкиToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem postToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem изделияToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem izdToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem заказчикиToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem zakToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem настройкиToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem setToolStripMenuItem;
} }
} }

View File

@ -13,22 +13,19 @@ namespace Diplom_B
{ {
public partial class ZakForm : Form public partial class ZakForm : Form
{ {
private Task errDrop; private int? returnId = null;
private void ShowError(string msg = null) private bool needReturn = false;
public ZakForm(bool needReturn = false)
{ {
errorLabel.Text = string.IsNullOrEmpty(msg) ? "Неизвестная ошибка." : msg; InitializeComponent();
errorLabel.Visible = true; try
errDrop = new Task(() =>
{ {
var fd = errDrop.Id; this.needReturn = needReturn;
Task.Delay(5000).Wait(); Init();
if (errDrop.Id == fd) UpdateTable(WorkDB.ListZakazchik(searchBox.Text));
if (InvokeRequired) Invoke((Action)(() => { errorLabel.Visible = false; })); }
else errorLabel.Visible = false; catch { ShowError(); }
});
errDrop.Start();
} }
private void ClearBoxes() private void ClearBoxes()
{ {
idLabel.Text = ""; idLabel.Text = "";
@ -37,7 +34,7 @@ namespace Diplom_B
phoneBox.Text = ""; phoneBox.Text = "";
emailBox.Text = ""; emailBox.Text = "";
} }
private void UpdateZakTable(Zakazchik[] arr, bool reset_cursor = false) private void UpdateTable(Zakazchik[] arr, bool reset_cursor = false)
{ {
var selected = (!reset_cursor && zakGridView.SelectedRows.Count > 0) ? zakGridView.SelectedRows[0].Index : -1; var selected = (!reset_cursor && zakGridView.SelectedRows.Count > 0) ? zakGridView.SelectedRows[0].Index : -1;
{ {
@ -80,14 +77,59 @@ namespace Diplom_B
zakGridView.Rows[i].Selected = (i == selected); zakGridView.Rows[i].Selected = (i == selected);
zakGridView_CurrentCellChanged(this, new EventArgs()); zakGridView_CurrentCellChanged(this, new EventArgs());
} }
private void Init()
public ZakForm()
{ {
InitializeComponent(); if (Program.user == null) this.Close();
try { UpdateZakTable(WorkDB.ListZakazchik(searchBox.Text)); } if (this.needReturn)
catch { ShowError(); } {
selectButton.Visible = true;
mainMenuStrip.Visible = false;
}
else
{
mainMenuStrip.Items[0].Enabled = Program.user.Usr.Dog > 0;
mainMenuStrip.Items[1].Enabled = Program.user.Usr.Doc > 0;
mainMenuStrip.Items[2].Enabled = Program.user.Usr.Izv > 0;
mainMenuStrip.Items[3].Enabled = Program.user.Usr.Post > 0;
mainMenuStrip.Items[4].Enabled = Program.user.Usr.Izd > 0;
mainMenuStrip.Items[5].Enabled = Program.user.Usr.Zak > 0;
mainMenuStrip.Items[6].Enabled = Program.user.Usr.Set > 0;
mainMenuStrip.Items[5].Enabled = false;
}
{
deleteButton.Enabled = Program.user.Usr.Zak > 2;
createButton.Enabled = Program.user.Usr.Zak > 2;
changeButton.Enabled = Program.user.Usr.Zak > 1;
}
}
private Task errDrop;
private void ShowError(string msg = null)
{
errorLabel.Text = string.IsNullOrEmpty(msg) ? "Неизвестная ошибка." : msg;
errorLabel.Visible = true;
errDrop = new Task(() =>
{
var fd = errDrop.Id;
Task.Delay(5000).Wait();
if (errDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { errorLabel.Visible = false; }));
else errorLabel.Visible = false;
});
errDrop.Start();
}
private Task filterDrop;
private void searchBox_TextChanged(object sender, EventArgs e)
{
filterDrop = new Task(() =>
{
var fd = filterDrop.Id;
Task.Delay(1000).Wait();
if (filterDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { UpdateTable(WorkDB.ListZakazchik(searchBox.Text)); }));
else UpdateTable(WorkDB.ListZakazchik(searchBox.Text));
});
filterDrop.Start();
} }
private void zakGridView_CurrentCellChanged(object sender, EventArgs e) private void zakGridView_CurrentCellChanged(object sender, EventArgs e)
{ {
ClearBoxes(); ClearBoxes();
@ -104,32 +146,13 @@ namespace Diplom_B
emailBox.Text = zak.Email; emailBox.Text = zak.Email;
} }
} }
private void createButton_Click(object sender, EventArgs e)
private Task filterDrop;
private void searchBox_TextChanged(object sender, EventArgs e)
{
filterDrop = new Task(() =>
{
var fd = filterDrop.Id;
Task.Delay(1000).Wait();
if (filterDrop.Id == fd)
if (InvokeRequired) Invoke((Action)(() => { UpdateZakTable(WorkDB.ListZakazchik(searchBox.Text)); }));
else UpdateZakTable(WorkDB.ListZakazchik(searchBox.Text));
});
filterDrop.Start();
}
private void resetSearchButton_Click(object sender, EventArgs e)
{
searchBox.Text = "";
filterDrop = new Task(() => { return; });
UpdateZakTable(WorkDB.ListZakazchik(searchBox.Text));
}
private void createZakButton_Click(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(nameBox.Text)) { ShowError("Нет названия."); return; }
if (WorkDB.GetZakazchikList().Contains(nameBox.Text)) { ShowError("Заказчик существует."); return; }
try try
{ {
var r = new Zakazchik() var r = new DB.Zakazchik()
{ {
Name = nameBox.Text, Name = nameBox.Text,
Adress = adressBox.Text, Adress = adressBox.Text,
@ -137,38 +160,76 @@ namespace Diplom_B
Email = emailBox.Text Email = emailBox.Text
}; };
WorkDB.AddZakazchik(r); WorkDB.AddZakazchik(r);
UpdateZakTable(WorkDB.ListZakazchik(searchBox.Text)); UpdateTable(WorkDB.ListZakazchik(searchBox.Text));
} }
catch { ShowError(); } catch { ShowError(); }
} }
private void changeZakButton_Click(object sender, EventArgs e) private void changeButton_Click(object sender, EventArgs e)
{ {
if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Заказчик не выбран."); return; } if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Заказчик не выбран."); return; }
var zak = WorkDB.GetZakazchik(idRes); if (string.IsNullOrEmpty(nameBox.Text)) { ShowError("Нет названия."); return; }
if (zak == null) { ShowError("Нет заказчика в БД."); return; }
try try
{ {
var zak = WorkDB.GetZakazchik(idRes);
if (zak == null) { ShowError("Нет заказчика в БД."); return; }
if (zak.Name != nameBox.Text && WorkDB.GetZakazchikList().Contains(nameBox.Text)) { ShowError("Заказчик существует."); return; }
zak.Name = nameBox.Text; zak.Name = nameBox.Text;
zak.Adress = adressBox.Text; zak.Adress = adressBox.Text;
zak.Phone = phoneBox.Text; zak.Phone = phoneBox.Text;
zak.Email = emailBox.Text; zak.Email = emailBox.Text;
WorkDB.ChangeZakazchik(zak); WorkDB.ChangeZakazchik(zak);
UpdateTable(WorkDB.ListZakazchik(searchBox.Text));
} }
catch { ShowError(); } catch { ShowError(); }
UpdateZakTable(WorkDB.ListZakazchik(searchBox.Text));
} }
private void deleteZakButton_Click(object sender, EventArgs e) private void deleteButton_Click(object sender, EventArgs e)
{ {
if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Заказчик не выбран."); return; } if (!int.TryParse(idLabel.Text, out int idRes)) { ShowError("Заказчик не выбран."); return; }
var zak = WorkDB.GetZakazchik(idRes); try
if (zak == null) { ShowError("Заказчик не существует."); return; } {
try { WorkDB.DeleteZakazchik(zak); } var zak = WorkDB.GetZakazchik(idRes);
if (zak == null) { ShowError("Нет заказчика в БД."); return; }
if (WorkDB.GetDogovoryFromZakazchik(idRes).Length > 0) { ShowError("Есть связь с договором."); return; }
WorkDB.DeleteZakazchik(zak);
UpdateTable(WorkDB.ListZakazchik(searchBox.Text));
}
catch { ShowError(); } catch { ShowError(); }
UpdateZakTable(WorkDB.ListZakazchik(searchBox.Text));
} }
private void resetZakButton_Click(object sender, EventArgs e) private void resetSearchButton_Click(object sender, EventArgs e)
{
searchBox.Text = "";
filterDrop = new Task(() => { return; });
UpdateTable(WorkDB.ListZakazchik(searchBox.Text));
}
private void resetButton_Click(object sender, EventArgs e)
{ {
ClearBoxes(); ClearBoxes();
} }
} private void selectButton_Click(object sender, EventArgs e)
{
if (int.TryParse(idLabel.Text, out int idRes))
returnId = idRes;
this.Close();
}
private void MenuItem_Click(object sender, EventArgs e)
{
object form = null;
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[0]) { form = new DogForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[1]) { form = new DocForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[2]) { form = new IzvForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[3]) { form = new PostForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[4]) { form = new IzdForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[5]) { form = new ZakForm(); }
if ((ToolStripMenuItem)sender == mainMenuStrip.Items[6]) { form = new SetForm(); }
if (form != null)
{
this.Hide();
((Form)form).Closed += (s, args) => this.Close();
((Form)form).Show();
}
}
}
} }

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<assemblyIdentity name="Diplom B.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="Diplom B" asmv2:product="Diplom B" xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="true" mapFileExtensions="true" />
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
<framework targetVersion="4.7.2" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks>
<dependency>
<dependentAssembly dependencyType="install" codebase="Diplom B.exe.manifest" size="18124">
<assemblyIdentity name="Diplom B.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>2b1QubE+Ze47CBE1wu8wixIqu7deJcA0dNWnAr38KvA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
</asmv1:assembly>

Binary file not shown.

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -1,311 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<asmv1:assemblyIdentity name="Diplom B.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="Diplom B" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<commandLine file="Diplom B.exe" parameters="" />
</entryPoint>
<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!--
Параметры манифеста UAC
Если нужно изменить уровень контроля учетных записей Windows, замените
узел requestedExecutionLevel одним из следующих значений.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Если нужно использовать виртуализацию файлов и реестра для обратной
совместимости, удалите узел requestedExecutionLevel.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentOS>
<osVersionInfo>
<os majorVersion="5" minorVersion="1" buildNumber="2600" servicePackMajor="0" />
</osVersionInfo>
</dependentOS>
</dependency>
<dependency>
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
<assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Diplom B.exe" size="63456">
<assemblyIdentity name="Diplom B" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>nnyDiRvwfMP5VcD7jutgpMUrDVo1ENlsBCgfQp+ZtCI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Data.Sqlite.dll" size="70136">
<assemblyIdentity name="Microsoft.Data.Sqlite" version="1.1.0.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>NbH55b2iv2DMS6kjNzvR7dSrOGWqQUrU47npsluJZmQ=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.EntityFrameworkCore.dll" size="908264">
<assemblyIdentity name="Microsoft.EntityFrameworkCore" version="1.1.6.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>zt4G1TcFhn3xwqVVgeRKNuvSDTXihcfVfbDL03zn2+I=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.EntityFrameworkCore.Relational.dll" size="562152">
<assemblyIdentity name="Microsoft.EntityFrameworkCore.Relational" version="1.1.6.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>FnJ3UxXohLiSIeBPF6l9IR4UFDPbSsrPblqjTEmnZAA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.EntityFrameworkCore.Relational.Design.dll" size="82408">
<assemblyIdentity name="Microsoft.EntityFrameworkCore.Relational.Design" version="1.1.6.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>OHyLB82aaXIqpWDYmmw72cfU/WSp9HV+nPZET1grMhQ=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.EntityFrameworkCore.Sqlite.dll" size="71656">
<assemblyIdentity name="Microsoft.EntityFrameworkCore.Sqlite" version="1.1.6.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>yLDtoxyEow2MPsy493yRvyuhhuKKpiUe1sVGJ5RYUgo=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.EntityFrameworkCore.Sqlite.Design.dll" size="50152">
<assemblyIdentity name="Microsoft.EntityFrameworkCore.Sqlite.Design" version="1.1.6.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>hKM7uUGpmxM1cS4caUPQLCmMFFns7P6TdrKBfR75GC4=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Extensions.Caching.Abstractions.dll" size="25600">
<assemblyIdentity name="Microsoft.Extensions.Caching.Abstractions" version="1.1.1.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>EMk5YJNmzJxl6havefvF3TXYn/YImCHGlI3c1fqBpPM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Extensions.Caching.Memory.dll" size="30200">
<assemblyIdentity name="Microsoft.Extensions.Caching.Memory" version="1.1.1.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>ZWf7AZB+1uiXNhHorht9zlnYz4iK3pCcKZV58F3FIGc=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Extensions.DependencyInjection.dll" size="45048">
<assemblyIdentity name="Microsoft.Extensions.DependencyInjection" version="1.1.0.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>rF525DqztrzKLqGjQ59E5nDllPWYKacwx7TNuXPpIYQ=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Extensions.DependencyInjection.Abstractions.dll" size="35320">
<assemblyIdentity name="Microsoft.Extensions.DependencyInjection.Abstractions" version="1.1.0.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>MxVDd3tVqduiDlNKTMG4c72T1X/RKozVwNWmdMGBZWo=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Extensions.Logging.dll" size="18432">
<assemblyIdentity name="Microsoft.Extensions.Logging" version="1.1.1.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>ljvFAFGG5dFo5S5+rWLHtTAcv6Mcx8YC2lo8sUbrJ/A=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Extensions.Logging.Abstractions.dll" size="44032">
<assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" version="1.1.1.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>L6SX5wIYpcLNXSB0PzYeZeQMx9s1gzatUczSrFLY6X8=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Extensions.Options.dll" size="22016">
<assemblyIdentity name="Microsoft.Extensions.Options" version="1.1.1.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>RcJ917b1kyHaLle4b7HJ9TnAgN497nI5XtguLBnAMg8=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Microsoft.Extensions.Primitives.dll" size="29176">
<assemblyIdentity name="Microsoft.Extensions.Primitives" version="1.1.0.0" publicKeyToken="ADB9793829DDAE60" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>z1pWUM0r5+wXvIp8EdSn3ntQmQ7IRnX+WfEFu5KipfM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Remotion.Linq.dll" size="181248">
<assemblyIdentity name="Remotion.Linq" version="2.1.0.0" publicKeyToken="FEE00910D6E5F53B" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>e8SeWV49VhHGKgQPxr5RKceOjbAqeeMKAmGIPSw8BqM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="System.Collections.Immutable.dll" size="180984">
<assemblyIdentity name="System.Collections.Immutable" version="1.2.1.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>NPlUmewZSn+Cv6Hh1JYgSHBSBL0ibs9qzOBE05sdbO8=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="System.Diagnostics.DiagnosticSource.dll" size="35760">
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" version="4.0.1.1" publicKeyToken="CC7B13FFCD2DDD51" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>maRkT0/hR/PYvefftCw+3Y8oNxkm8HnY3xhl11kwoEA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="System.Interactive.Async.dll" size="185600">
<assemblyIdentity name="System.Interactive.Async" version="3.0.0.0" publicKeyToken="94BC3704CDDFC263" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>DrlvSBaewXYyVEBXNgPUgZLyjdqxs6FlwEgLHSOgPeM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="System.Runtime.CompilerServices.Unsafe.dll" size="20768">
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" version="4.0.2.0" publicKeyToken="B03F5F7F11D50A3A" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>XLdU4oREJRavBdAaO1fyK3GQHeDqOWuSBk/8anC2WfI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<file name="Diplom B.exe.config" size="189">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8=</dsig:DigestValue>
</hash>
</file>
<file name="x64\sqlite3.dll" size="1680384">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>zdbEB7YTcSgOScmis0r07AawGRmT5u3o77kjWZCDeXc=</dsig:DigestValue>
</hash>
</file>
<file name="x86\sqlite3.dll" size="826775">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>bersL5bIocIGmKk93UaNVEe1WsQm3Dge712RsZlTu3s=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,441 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.EntityFrameworkCore.Relational.Design</name>
</assembly>
<members>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CandidateNamingService">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CandidateNamingService.GenerateCandidateIdentifier(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CandidateNamingService.GetDependentEndCandidateNavigationPropertyName(Microsoft.EntityFrameworkCore.Metadata.IForeignKey)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CandidateNamingService.GetPrincipalEndCandidateNavigationPropertyName(Microsoft.EntityFrameworkCore.Metadata.IForeignKey,System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpNamer`1">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpNamer`1.NameCache">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpNamer`1.#ctor(System.Func{`0,System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpNamer`1.GetName(`0)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUniqueNamer`1">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUniqueNamer`1.#ctor(System.Func{`0,System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUniqueNamer`1.#ctor(System.Func{`0,System.String},System.Collections.Generic.IEnumerable{System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUniqueNamer`1.GetName(`0)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="P:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.Instance">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.DelimitString(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.EscapeString(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.EscapeVerbatimString(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Byte[])">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Boolean)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Int32)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Int64)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Decimal)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Single)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Double)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.TimeSpan)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.DateTime)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.DateTimeOffset)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Guid)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateVerbatimStringLiteral(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateLiteral(System.Object)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.IsCSharpKeyword(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateCSharpIdentifier(System.String,System.Collections.Generic.ICollection{System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GenerateCSharpIdentifier(System.String,System.Collections.Generic.ICollection{System.String},System.Func{System.String,System.Collections.Generic.ICollection{System.String},System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.Uniquifier(System.String,System.Collections.Generic.ICollection{System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.GetTypeName(System.Type)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.CSharpUtilities.IsValidIdentifier(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.DbDataReaderExtension">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.DbDataReaderExtension.GetValueOrDefault``1(System.Data.Common.DbDataReader,System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.IInternalDatabaseModelFactory">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.IInternalDatabaseModelFactory.Create(System.Data.Common.DbConnection,Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingAnnotationNames">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingAnnotationNames.Prefix">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingAnnotationNames.UseProviderMethodName">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingAnnotationNames.ColumnOrdinal">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingAnnotationNames.DependentEndNavigation">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingAnnotationNames.PrincipalEndNavigation">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingAnnotationNames.EntityTypeErrors">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingFullAnnotationNames">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingFullAnnotationNames.#ctor(System.String)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="P:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingFullAnnotationNames.Instance">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingFullAnnotationNames.UseProviderMethodName">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingFullAnnotationNames.ColumnOrdinal">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingFullAnnotationNames.DependentEndNavigation">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingFullAnnotationNames.PrincipalEndNavigation">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal.ScaffoldingFullAnnotationNames.EntityTypeErrors">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignLoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,Microsoft.EntityFrameworkCore.Infrastructure.RelationalDesignEventId,System.Func{System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.CannotFindTypeMappingForColumn(System.Object,System.Object)">
<summary>
Could not find type mapping for column '{columnName}' with data type '{dateType}'. Skipping column.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.ForeignKeyScaffoldErrorPrincipalKeyNotFound(System.Object,System.Object,System.Object)">
<summary>
Could not scaffold the foreign key '{foreignKeyName}'. A key for '{columnsList}' was not found in the principal entity type '{principalEntityType}'.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.ForeignKeyScaffoldErrorPrincipalTableNotFound(System.Object)">
<summary>
Could not scaffold the foreign key '{foreignKeyName}'. The referenced table could not be found. This most likely occurred because the referenced table was excluded from scaffolding.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.ForeignKeyScaffoldErrorPrincipalTableScaffoldingError(System.Object,System.Object)">
<summary>
Could not scaffold the foreign key '{foreignKeyName}'. The referenced table '{principalTableName}' could not be scaffolded.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.ForeignKeyScaffoldErrorPropertyNotFound(System.Object,System.Object)">
<summary>
Could not scaffold the foreign key '{foreignKeyName}'. The following columns in the foreign key could not be scaffolded: {columnNames}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.PrimaryKeyErrorPropertyNotFound(System.Object,System.Object)">
<summary>
Could not scaffold the primary key for '{tableName}'. The following columns in the primary key could not be scaffolded: {columnNames}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.MissingPrimaryKey(System.Object)">
<summary>
Unable to identify the primary key for table '{tableName}'.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.ProviderReturnedNullModel(System.Object)">
<summary>
Metadata model returned should not be null. Provider: {providerTypeName}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.ReadOnlyFiles(System.Object,System.Object)">
<summary>
No files generated in directory {outputDirectoryName}. The following file(s) already exist and must be made writeable to continue: {readOnlyFiles}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.UnableToGenerateEntityType(System.Object)">
<summary>
Unable to generate entity type for table '{tableName}'.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.UnableToScaffoldIndexMissingProperty(System.Object,System.Object)">
<summary>
Unable to scaffold the index '{indexName}'. The following columns could not be scaffolded: {columnNames}.
</summary>
</member>
<member name="P:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.MissingUseProviderMethodNameAnnotation">
<summary>
Cannot scaffold the connection string. The "UseProviderMethodName" is missing from the scaffolding model.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.ExistingFiles(System.Object,System.Object)">
<summary>
The following file(s) already exist in directory {outputDirectoryName}: {existingFiles}. Use the Force flag to overwrite these files.
</summary>
</member>
<member name="P:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.SequencesRequireName">
<summary>
Sequence name cannot be null or empty. Entity Framework cannot model a sequence that does not have a name.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.BadSequenceType(System.Object,System.Object)">
<summary>
For sequence '{sequenceName}'. Unable to scaffold because it uses an unsupported type: '{typeName}'.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.MissingSchema(System.Object)">
<summary>
Unable to find a schema in the database matching the selected schema {schema}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.RelationalDesignStrings.MissingTable(System.Object)">
<summary>
Unable to find a table in the database matching the selected table {table}.
</summary>
</member>
</members>
</doc>

File diff suppressed because it is too large Load Diff

View File

@ -1,173 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.EntityFrameworkCore.Sqlite.Design</name>
</assembly>
<members>
<member name="T:Microsoft.EntityFrameworkCore.Infrastructure.SqliteDesignEventId">
<summary>
Values that are used as the eventId when logging messages from the SQLite Design Entity Framework Core
components.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Infrastructure.SqliteDesignEventId.IndexMissingColumnNameWarning">
<summary>
Column name empty on index.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Infrastructure.SqliteDesignEventId.ForeignKeyReferencesMissingColumn">
<summary>
Principal column not found.
</summary>
</member>
<member name="F:Microsoft.EntityFrameworkCore.Infrastructure.SqliteDesignEventId.SchemasNotSupportedWarning">
<summary>
Using schema selections warning.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDatabaseModelFactory">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDatabaseModelFactory.#ctor(Microsoft.Extensions.Logging.ILogger{Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDatabaseModelFactory})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="P:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDatabaseModelFactory.Logger">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDatabaseModelFactory.Create(System.String,Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDatabaseModelFactory.Create(System.Data.Common.DbConnection,Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDesignTimeServices">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteDesignTimeServices.ConfigureDesignTimeServices(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteScaffoldingModelFactory">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteScaffoldingModelFactory.#ctor(Microsoft.Extensions.Logging.ILoggerFactory,Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper,Microsoft.EntityFrameworkCore.Scaffolding.IDatabaseModelFactory,Microsoft.EntityFrameworkCore.Scaffolding.Internal.CandidateNamingService)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteScaffoldingModelFactory.Create(System.String,Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet)">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Scaffolding.Internal.SqliteTableSelectionSetExtensions.Allows(Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet,System.String)">
<summary>
Tests whether the table is allowed by the <see cref="T:Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet" /> and
updates the <see cref="T:Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet" />'s <see cref="T:Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet.Selection" />(s)
to mark that they have been matched.
</summary>
<param name="tableSet"> the <see cref="T:Microsoft.EntityFrameworkCore.Scaffolding.TableSelectionSet" /> to test </param>
<param name="tableName"> name of the database table to check </param>
<returns> whether or not the table is allowed </returns>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Internal.SqliteDesignLoggerExtensions">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignLoggerExtensions.LogWarning(Microsoft.Extensions.Logging.ILogger,Microsoft.EntityFrameworkCore.Infrastructure.SqliteDesignEventId,System.Func{System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignLoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,Microsoft.EntityFrameworkCore.Infrastructure.SqliteDesignEventId,System.Func{System.String})">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="T:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings">
<summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.ColumnNameEmptyOnIndex(System.Object,System.Object)">
<summary>
Found a column on index {indexName} on table {tableName} with an empty or null name. Not including column in index.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.FoundColumn(System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object)">
<summary>
Found column on table: {tableName}, column name: {columnName}, data type: {dataType}, ordinal: {ordinal}, not nullable: {isNotNullable}, primary key ordinal: {primaryKeyOrdinal}, default value: {defaultValue}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.FoundForeignKeyColumn(System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object)">
<summary>
Found foreign key column on table: {tableName}, id: {id}, principal table: {principalTableName}, column name: {columnName}, principal column name: {principalColumnName}, delete action: {deleteAction}, ordinal: {ordinal}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.FoundIndex(System.Object,System.Object,System.Object)">
<summary>
Found index with name: {indexName}, table: {tableName}, is unique: {isUnique}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.FoundIndexColumn(System.Object,System.Object,System.Object,System.Object)">
<summary>
Found index column on index {indexName} on table {tableName}, column name: {columnName}, ordinal: {ordinal}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.FoundTable(System.Object)">
<summary>
Found table with name: {name}.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.PrincipalColumnNotFound(System.Object,System.Object,System.Object,System.Object)">
<summary>
For foreign key with identity {id} on table {tableName}, unable to find the column called {principalColumnName} on the foreign key's principal table, {principalTableName}. Skipping foreign key.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.PrincipalTableNotFound(System.Object,System.Object,System.Object)">
<summary>
For foreign key with identity {id} on table {tableName}, unable to find the principal table {principalTableName}. Either the principal table is missing from the database or it was not included in the selection set. Skipping foreign key.
</summary>
</member>
<member name="M:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.TableNotInSelectionSet(System.Object)">
<summary>
Table {tableName} is not included in the selection set. Skipping.
</summary>
</member>
<member name="P:Microsoft.EntityFrameworkCore.Internal.SqliteDesignStrings.UsingSchemaSelectionsWarning">
<summary>
Scaffolding from a SQLite database will ignore any schema selection arguments.
</summary>
</member>
</members>
</doc>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,406 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.Caching.Abstractions</name>
</assembly>
<members>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.SetPriority(Microsoft.Extensions.Caching.Memory.ICacheEntry,Microsoft.Extensions.Caching.Memory.CacheItemPriority)">
<summary>
Sets the priority for keeping the cache entry in the cache during a memory pressure tokened cleanup.
</summary>
<param name="entry"></param>
<param name="priority"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.AddExpirationToken(Microsoft.Extensions.Caching.Memory.ICacheEntry,Microsoft.Extensions.Primitives.IChangeToken)">
<summary>
Expire the cache entry if the given <see cref="T:Microsoft.Extensions.Primitives.IChangeToken"/> expires.
</summary>
<param name="entry">The <see cref="T:Microsoft.Extensions.Caching.Memory.ICacheEntry"/>.</param>
<param name="expirationToken">The <see cref="T:Microsoft.Extensions.Primitives.IChangeToken"/> that causes the cache entry to expire.</param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.SetAbsoluteExpiration(Microsoft.Extensions.Caching.Memory.ICacheEntry,System.TimeSpan)">
<summary>
Sets an absolute expiration time, relative to now.
</summary>
<param name="entry"></param>
<param name="relative"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.SetAbsoluteExpiration(Microsoft.Extensions.Caching.Memory.ICacheEntry,System.DateTimeOffset)">
<summary>
Sets an absolute expiration date for the cache entry.
</summary>
<param name="entry"></param>
<param name="absolute"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.SetSlidingExpiration(Microsoft.Extensions.Caching.Memory.ICacheEntry,System.TimeSpan)">
<summary>
Sets how long the cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
</summary>
<param name="entry"></param>
<param name="offset"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.RegisterPostEvictionCallback(Microsoft.Extensions.Caching.Memory.ICacheEntry,Microsoft.Extensions.Caching.Memory.PostEvictionDelegate)">
<summary>
The given callback will be fired after the cache entry is evicted from the cache.
</summary>
<param name="entry"></param>
<param name="callback"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.RegisterPostEvictionCallback(Microsoft.Extensions.Caching.Memory.ICacheEntry,Microsoft.Extensions.Caching.Memory.PostEvictionDelegate,System.Object)">
<summary>
The given callback will be fired after the cache entry is evicted from the cache.
</summary>
<param name="entry"></param>
<param name="callback"></param>
<param name="state"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.SetValue(Microsoft.Extensions.Caching.Memory.ICacheEntry,System.Object)">
<summary>
Sets the value of the cache entry.
</summary>
<param name="entry"></param>
<param name="value"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.CacheEntryExtensions.SetOptions(Microsoft.Extensions.Caching.Memory.ICacheEntry,Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions)">
<summary>
Applies the values of an existing <see cref="T:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions"/> to the entry.
</summary>
<param name="entry"></param>
<param name="options"></param>
</member>
<member name="T:Microsoft.Extensions.Caching.Memory.CacheItemPriority">
<summary>
Specifies how items are prioritized for preservation during a memory pressure triggered cleanup.
</summary>
</member>
<member name="F:Microsoft.Extensions.Caching.Memory.EvictionReason.Removed">
<summary>
Manually
</summary>
</member>
<member name="F:Microsoft.Extensions.Caching.Memory.EvictionReason.Replaced">
<summary>
Overwritten
</summary>
</member>
<member name="F:Microsoft.Extensions.Caching.Memory.EvictionReason.Expired">
<summary>
Timed out
</summary>
</member>
<member name="F:Microsoft.Extensions.Caching.Memory.EvictionReason.TokenExpired">
<summary>
Event
</summary>
</member>
<member name="F:Microsoft.Extensions.Caching.Memory.EvictionReason.Capacity">
<summary>
GC, overflow
</summary>
</member>
<member name="T:Microsoft.Extensions.Caching.Memory.ICacheEntry">
<summary>
Represents an entry in the <see cref="T:Microsoft.Extensions.Caching.Memory.IMemoryCache"/> implementation.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.ICacheEntry.Key">
<summary>
Gets the key of the cache entry.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.ICacheEntry.Value">
<summary>
Gets or set the value of the cache entry.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.ICacheEntry.AbsoluteExpiration">
<summary>
Gets or sets an absolute expiration date for the cache entry.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.ICacheEntry.AbsoluteExpirationRelativeToNow">
<summary>
Gets or sets an absolute expiration time, relative to now.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.ICacheEntry.SlidingExpiration">
<summary>
Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.ICacheEntry.ExpirationTokens">
<summary>
Gets the <see cref="T:Microsoft.Extensions.Primitives.IChangeToken"/> instances which cause the cache entry to expire.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.ICacheEntry.PostEvictionCallbacks">
<summary>
Gets or sets the callbacks will be fired after the cache entry is evicted from the cache.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.ICacheEntry.Priority">
<summary>
Gets or sets the priority for keeping the cache entry in the cache during a
memory pressure triggered cleanup. The default is <see cref="F:Microsoft.Extensions.Caching.Memory.CacheItemPriority.Normal"/>.
</summary>
</member>
<member name="T:Microsoft.Extensions.Caching.Memory.IMemoryCache">
<summary>
Represents a local in-memory cache whose values are not serialized.
</summary>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.IMemoryCache.TryGetValue(System.Object,System.Object@)">
<summary>
Gets the item associated with this key if present.
</summary>
<param name="key">An object identifying the requested entry.</param>
<param name="value">The located value or null.</param>
<returns>True if the key was found.</returns>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.IMemoryCache.CreateEntry(System.Object)">
<summary>
Create or overwrite an entry in the cache.
</summary>
<param name="key">An object identifying the entry.</param>
<returns>The newly created <see cref="T:Microsoft.Extensions.Caching.Memory.ICacheEntry"/> instance.</returns>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.IMemoryCache.Remove(System.Object)">
<summary>
Removes the object associated with the given key.
</summary>
<param name="key">An object identifying the entry.</param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryExtensions.SetPriority(Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions,Microsoft.Extensions.Caching.Memory.CacheItemPriority)">
<summary>
Sets the priority for keeping the cache entry in the cache during a memory pressure tokened cleanup.
</summary>
<param name="options"></param>
<param name="priority"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryExtensions.AddExpirationToken(Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions,Microsoft.Extensions.Primitives.IChangeToken)">
<summary>
Expire the cache entry if the given <see cref="T:Microsoft.Extensions.Primitives.IChangeToken"/> expires.
</summary>
<param name="options">The <see cref="T:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions"/>.</param>
<param name="expirationToken">The <see cref="T:Microsoft.Extensions.Primitives.IChangeToken"/> that causes the cache entry to expire.</param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryExtensions.SetAbsoluteExpiration(Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions,System.TimeSpan)">
<summary>
Sets an absolute expiration time, relative to now.
</summary>
<param name="options"></param>
<param name="relative"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryExtensions.SetAbsoluteExpiration(Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions,System.DateTimeOffset)">
<summary>
Sets an absolute expiration date for the cache entry.
</summary>
<param name="options"></param>
<param name="absolute"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryExtensions.SetSlidingExpiration(Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions,System.TimeSpan)">
<summary>
Sets how long the cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
</summary>
<param name="options"></param>
<param name="offset"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryExtensions.RegisterPostEvictionCallback(Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions,Microsoft.Extensions.Caching.Memory.PostEvictionDelegate)">
<summary>
The given callback will be fired after the cache entry is evicted from the cache.
</summary>
<param name="options"></param>
<param name="callback"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryExtensions.RegisterPostEvictionCallback(Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions,Microsoft.Extensions.Caching.Memory.PostEvictionDelegate,System.Object)">
<summary>
The given callback will be fired after the cache entry is evicted from the cache.
</summary>
<param name="options"></param>
<param name="callback"></param>
<param name="state"></param>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions.AbsoluteExpiration">
<summary>
Gets or sets an absolute expiration date for the cache entry.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions.AbsoluteExpirationRelativeToNow">
<summary>
Gets or sets an absolute expiration time, relative to now.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions.SlidingExpiration">
<summary>
Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions.ExpirationTokens">
<summary>
Gets the <see cref="T:Microsoft.Extensions.Primitives.IChangeToken"/> instances which cause the cache entry to expire.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions.PostEvictionCallbacks">
<summary>
Gets or sets the callbacks will be fired after the cache entry is evicted from the cache.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions.Priority">
<summary>
Gets or sets the priority for keeping the cache entry in the cache during a
memory pressure triggered cleanup. The default is <see cref="F:Microsoft.Extensions.Caching.Memory.CacheItemPriority.Normal"/>.
</summary>
</member>
<member name="T:Microsoft.Extensions.Caching.Memory.PostEvictionDelegate">
<summary>
Signature of the callback which gets called when a cache entry expires.
</summary>
<param name="key"></param>
<param name="value"></param>
<param name="reason">The <see cref="T:Microsoft.Extensions.Caching.Memory.EvictionReason"/>.</param>
<param name="state">The information that was passed when registering the callback.</param>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryExtensions.SetAbsoluteExpiration(Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions,System.TimeSpan)">
<summary>
Sets an absolute expiration time, relative to now.
</summary>
<param name="options"></param>
<param name="relative"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryExtensions.SetAbsoluteExpiration(Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions,System.DateTimeOffset)">
<summary>
Sets an absolute expiration date for the cache entry.
</summary>
<param name="options"></param>
<param name="absolute"></param>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryExtensions.SetSlidingExpiration(Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions,System.TimeSpan)">
<summary>
Sets how long the cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
</summary>
<param name="options"></param>
<param name="offset"></param>
</member>
<member name="P:Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions.AbsoluteExpiration">
<summary>
Gets or sets an absolute expiration date for the cache entry.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions.AbsoluteExpirationRelativeToNow">
<summary>
Gets or sets an absolute expiration time, relative to now.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions.SlidingExpiration">
<summary>
Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
</summary>
</member>
<member name="T:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions">
<summary>
Extension methods for setting data in an <see cref="T:Microsoft.Extensions.Caching.Distributed.IDistributedCache" />.
</summary>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.Set(Microsoft.Extensions.Caching.Distributed.IDistributedCache,System.String,System.Byte[])">
<summary>
Sets a sequence of bytes in the specified cache with the specified key.
</summary>
<param name="cache">The cache in which to store the data.</param>
<param name="key">The key to store the data in.</param>
<param name="value">The data to store in the cache.</param>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="key"/> or <paramref name="value"/> is null.</exception>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.SetAsync(Microsoft.Extensions.Caching.Distributed.IDistributedCache,System.String,System.Byte[])">
<summary>
Asynchronously sets a sequence of bytes in the specified cache with the specified key.
</summary>
<param name="cache">The cache in which to store the data.</param>
<param name="key">The key to store the data in.</param>
<param name="value">The data to store in the cache.</param>
<returns>A task that represents the asynchronous set operation.</returns>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="key"/> or <paramref name="value"/> is null.</exception>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.SetString(Microsoft.Extensions.Caching.Distributed.IDistributedCache,System.String,System.String)">
<summary>
Sets a string in the specified cache with the specified key.
</summary>
<param name="cache">The cache in which to store the data.</param>
<param name="key">The key to store the data in.</param>
<param name="value">The data to store in the cache.</param>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="key"/> or <paramref name="value"/> is null.</exception>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.SetString(Microsoft.Extensions.Caching.Distributed.IDistributedCache,System.String,System.String,Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions)">
<summary>
Sets a string in the specified cache with the specified key.
</summary>
<param name="cache">The cache in which to store the data.</param>
<param name="key">The key to store the data in.</param>
<param name="value">The data to store in the cache.</param>
<param name="options">The cache options for the entry.</param>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="key"/> or <paramref name="value"/> is null.</exception>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.SetStringAsync(Microsoft.Extensions.Caching.Distributed.IDistributedCache,System.String,System.String)">
<summary>
Asynchronously sets a string in the specified cache with the specified key.
</summary>
<param name="cache">The cache in which to store the data.</param>
<param name="key">The key to store the data in.</param>
<param name="value">The data to store in the cache.</param>
<returns>A task that represents the asynchronous set operation.</returns>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="key"/> or <paramref name="value"/> is null.</exception>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.SetStringAsync(Microsoft.Extensions.Caching.Distributed.IDistributedCache,System.String,System.String,Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions)">
<summary>
Asynchronously sets a string in the specified cache with the specified key.
</summary>
<param name="cache">The cache in which to store the data.</param>
<param name="key">The key to store the data in.</param>
<param name="value">The data to store in the cache.</param>
<param name="options">The cache options for the entry.</param>
<returns>A task that represents the asynchronous set operation.</returns>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="key"/> or <paramref name="value"/> is null.</exception>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.GetString(Microsoft.Extensions.Caching.Distributed.IDistributedCache,System.String)">
<summary>
Gets a string from the specified cache with the specified key.
</summary>
<param name="cache">The cache in which to store the data.</param>
<param name="key">The key to get the stored data for.</param>
<returns>The string value from the stored cache key.</returns>
</member>
<member name="M:Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.GetStringAsync(Microsoft.Extensions.Caching.Distributed.IDistributedCache,System.String)">
<summary>
Asynchronously gets a string from the specified cache with the specified key.
</summary>
<param name="cache">The cache in which to store the data.</param>
<param name="key">The key to get the stored data for.</param>
<returns>A task that gets the string value from the stored cache key.</returns>
</member>
<member name="T:Microsoft.Extensions.Internal.ISystemClock">
<summary>
Abstracts the system clock to facilitate testing.
</summary>
</member>
<member name="P:Microsoft.Extensions.Internal.ISystemClock.UtcNow">
<summary>
Retrieves the current system time in UTC.
</summary>
</member>
<member name="T:Microsoft.Extensions.Internal.SystemClock">
<summary>
Provides access to the normal system clock.
</summary>
</member>
<member name="P:Microsoft.Extensions.Internal.SystemClock.UtcNow">
<summary>
Retrieves the current system time in UTC.
</summary>
</member>
</members>
</doc>

View File

@ -1,138 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.Caching.Memory</name>
</assembly>
<members>
<member name="P:Microsoft.Extensions.Caching.Memory.CacheEntry.AbsoluteExpiration">
<summary>
Gets or sets an absolute expiration date for the cache entry.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.CacheEntry.AbsoluteExpirationRelativeToNow">
<summary>
Gets or sets an absolute expiration time, relative to now.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.CacheEntry.SlidingExpiration">
<summary>
Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.CacheEntry.ExpirationTokens">
<summary>
Gets the <see cref="T:Microsoft.Extensions.Primitives.IChangeToken"/> instances which cause the cache entry to expire.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.CacheEntry.PostEvictionCallbacks">
<summary>
Gets or sets the callbacks will be fired after the cache entry is evicted from the cache.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.CacheEntry.Priority">
<summary>
Gets or sets the priority for keeping the cache entry in the cache during a
memory pressure triggered cleanup. The default is <see cref="F:Microsoft.Extensions.Caching.Memory.CacheItemPriority.Normal"/>.
</summary>
</member>
<member name="T:Microsoft.Extensions.Caching.Memory.MemoryCache">
<summary>
An implementation of <see cref="T:Microsoft.Extensions.Caching.Memory.IMemoryCache"/> using a dictionary to
store its entries.
</summary>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCache.#ctor(Microsoft.Extensions.Options.IOptions{Microsoft.Extensions.Caching.Memory.MemoryCacheOptions})">
<summary>
Creates a new <see cref="T:Microsoft.Extensions.Caching.Memory.MemoryCache"/> instance.
</summary>
<param name="optionsAccessor">The options of the cache.</param>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCache.Finalize">
<summary>
Cleans up the background collection events.
</summary>
</member>
<member name="P:Microsoft.Extensions.Caching.Memory.MemoryCache.Count">
<summary>
Gets the count of the current entries for diagnostic purposes.
</summary>
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCache.CreateEntry(System.Object)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCache.TryGetValue(System.Object,System.Object@)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCache.Remove(System.Object)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCache.DoMemoryPreassureCollection(System.Object)">
This is called after a Gen2 garbage collection. We assume this means there was memory pressure.
Remove at least 10% of the total entries (or estimated memory?).
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCache.Compact(System.Double)">
Remove at least the given percentage (0.10 for 10%) of the total entries (or estimated memory?), according to the following policy:
1. Remove all expired items.
2. Bucket by CacheItemPriority.
?. Least recently used objects.
?. Items with the soonest absolute expiration.
?. Items with the soonest sliding expiration.
?. Larger objects - estimated by object graph size, inaccurate.
</member>
<member name="M:Microsoft.Extensions.Caching.Memory.MemoryCache.ExpirePriorityBucket(System.Int32,System.Collections.Generic.List{Microsoft.Extensions.Caching.Memory.CacheEntry},System.Collections.Generic.List{Microsoft.Extensions.Caching.Memory.CacheEntry})">
Policy:
?. Least recently used objects.
?. Items with the soonest absolute expiration.
?. Items with the soonest sliding expiration.
?. Larger objects - estimated by object graph size, inaccurate.
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.MemoryCacheServiceCollectionExtensions">
<summary>
Extension methods for setting up memory cache related services in an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.MemoryCacheServiceCollectionExtensions.AddMemoryCache(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds a non distributed in memory implementation of <see cref="T:Microsoft.Extensions.Caching.Memory.IMemoryCache"/> to the
<see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add services to.</param>
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> so that additional calls can be chained.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.MemoryCacheServiceCollectionExtensions.AddMemoryCache(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{Microsoft.Extensions.Caching.Memory.MemoryCacheOptions})">
<summary>
Adds a non distributed in memory implementation of <see cref="T:Microsoft.Extensions.Caching.Memory.IMemoryCache"/> to the
<see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add services to.</param>
<param name="setupAction">
The <see cref="T:System.Action`1"/> to configure the provided <see cref="T:Microsoft.Extensions.Caching.Memory.MemoryCacheOptions"/>.
</param>
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> so that additional calls can be chained.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.MemoryCacheServiceCollectionExtensions.AddDistributedMemoryCache(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds a default implementation of <see cref="T:Microsoft.Extensions.Caching.Distributed.IDistributedCache"/> that stores items in memory
to the <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />. Frameworks that require a distributed cache to work
can safely add this dependency as part of their dependency list to ensure that there is at least
one implementation available.
</summary>
<remarks>
<see cref="M:Microsoft.Extensions.DependencyInjection.MemoryCacheServiceCollectionExtensions.AddDistributedMemoryCache(Microsoft.Extensions.DependencyInjection.IServiceCollection)"/> should only be used in single
server scenarios as this cache stores items in memory and doesn't expand across multiple machines.
For those scenarios it is recommended to use a proper distributed cache that can expand across
multiple machines.
</remarks>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add services to.</param>
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> so that additional calls can be chained.</returns>
</member>
<member name="T:Microsoft.Extensions.Internal.GcNotification">
<summary>
Registers a callback that fires each time a Gen2 garbage collection occurs,
presumably due to memory pressure.
For this to work no components can have a reference to the instance.
</summary>
</member>
</members>
</doc>

View File

@ -1,663 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.DependencyInjection.Abstractions</name>
</assembly>
<members>
<member name="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilities">
<summary>
Helper code for the various activator services.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(System.IServiceProvider,System.Type,System.Object[])">
<summary>
Instantiate a type with constructor arguments provided directly and/or from an <see cref="T:System.IServiceProvider"/>.
</summary>
<param name="provider">The service provider used to resolve dependencies</param>
<param name="instanceType">The type to activate</param>
<param name="parameters">Constructor arguments not provided by the <paramref name="provider"/>.</param>
<returns>An activated object of type instanceType</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[])">
<summary>
Create a delegate that will instantiate a type with constructor arguments provided directly
and/or from an <see cref="T:System.IServiceProvider"/>.
</summary>
<param name="instanceType">The type to activate</param>
<param name="argumentTypes">
The types of objects, in order, that will be passed to the returned function as its second parameter
</param>
<returns>
A factory that will instantiate instanceType using an <see cref="T:System.IServiceProvider"/>
and an argument array containing objects matching the types defined in argumentTypes
</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance``1(System.IServiceProvider,System.Object[])">
<summary>
Instantiate a type with constructor arguments provided directly and/or from an <see cref="T:System.IServiceProvider"/>.
</summary>
<typeparam name="T">The type to activate</typeparam>
<param name="provider">The service provider used to resolve dependencies</param>
<param name="parameters">Constructor arguments not provided by the <paramref name="provider"/>.</param>
<returns>An activated object of type T</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance``1(System.IServiceProvider)">
<summary>
Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
</summary>
<typeparam name="T">The type of the service</typeparam>
<param name="provider">The service provider used to resolve dependencies</param>
<returns>The resolved service or created instance</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance(System.IServiceProvider,System.Type)">
<summary>
Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
</summary>
<param name="provider">The service provider</param>
<param name="type">The type of the service</param>
<returns>The resolved service or created instance</returns>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.IServiceCollection">
<summary>
Specifies the contract for a collection of service descriptors.
</summary>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1">
<summary>
Provides an extension point for creating a container specific builder and an <see cref="T:System.IServiceProvider"/>.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1.CreateBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Creates a container builder from an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The collection of services</param>
<returns>A container builder that can be used to create an <see cref="T:System.IServiceProvider"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1.CreateServiceProvider(`0)">
<summary>
Creates an <see cref="T:System.IServiceProvider"/> from the container builder.
</summary>
<param name="containerBuilder">The container builder</param>
<returns>An <see cref="T:System.IServiceProvider"/></returns>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.IServiceScope">
<summary>
The <see cref="M:System.IDisposable.Dispose"/> method ends the scope lifetime. Once Dispose
is called, any scoped services that have been resolved from
<see cref="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider"/> will be
disposed.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider">
<summary>
The <see cref="T:System.IServiceProvider"/> used to resolve dependencies from the scope.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.IServiceScopeFactory.CreateScope">
<summary>
Create an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> which
contains an <see cref="T:System.IServiceProvider"/> used to resolve dependencies from a
newly created scope.
</summary>
<returns>
An <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> controlling the
lifetime of the scope. Once this is disposed, any scoped services that have been resolved
from the <see cref="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider"/>
will also be disposed.
</returns>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.ISupportRequiredService">
<summary>
Optional contract used by <see cref="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService``1(System.IServiceProvider)"/>
to resolve services if supported by <see cref="T:System.IServiceProvider"/>.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ISupportRequiredService.GetRequiredService(System.Type)">
<summary>
Gets service of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/> implementing
this interface.
</summary>
<param name="serviceType">An object that specifies the type of service object to get.</param>
<returns>A service object of type <paramref name="serviceType"/>.
Throws an exception if the <see cref="T:System.IServiceProvider"/> cannot create the object.</returns>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.ObjectFactory">
<summary>
The result of <see cref="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[])"/>.
</summary>
<param name="serviceProvider">The <see cref="T:System.IServiceProvider"/> to get service arguments from.</param>
<param name="arguments">Additional constructor arguments.</param>
<returns>The instantiated type.</returns>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions">
<summary>
Extension methods for adding services to an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
<summary>
Adds a transient service of the type specified in <paramref name="serviceType"/> with an
implementation of the type specified in <paramref name="implementationType"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register.</param>
<param name="implementationType">The implementation type of the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
<summary>
Adds a transient service of the type specified in <paramref name="serviceType"/> with a
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds a transient service of the type specified in <typeparamref name="TService"/> with an
implementation type specified in <typeparamref name="TImplementation"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<typeparam name="TImplementation">The type of the implementation to use.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
<summary>
Adds a transient service of the type specified in <paramref name="serviceType"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register and the implementation to use.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds a transient service of the type specified in <typeparamref name="TService"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
<summary>
Adds a transient service of the type specified in <typeparamref name="TService"/> with a
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
<summary>
Adds a transient service of the type specified in <typeparamref name="TService"/> with an
implementation type specified in <typeparamref name="TImplementation" /> using the
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<typeparam name="TImplementation">The type of the implementation to use.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
<summary>
Adds a scoped service of the type specified in <paramref name="serviceType"/> with an
implementation of the type specified in <paramref name="implementationType"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register.</param>
<param name="implementationType">The implementation type of the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
<summary>
Adds a scoped service of the type specified in <paramref name="serviceType"/> with a
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds a scoped service of the type specified in <typeparamref name="TService"/> with an
implementation type specified in <typeparamref name="TImplementation"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<typeparam name="TImplementation">The type of the implementation to use.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
<summary>
Adds a scoped service of the type specified in <paramref name="serviceType"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register and the implementation to use.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds a scoped service of the type specified in <typeparamref name="TService"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
<summary>
Adds a scoped service of the type specified in <typeparamref name="TService"/> with a
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
<summary>
Adds a scoped service of the type specified in <typeparamref name="TService"/> with an
implementation type specified in <typeparamref name="TImplementation" /> using the
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<typeparam name="TImplementation">The type of the implementation to use.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
<summary>
Adds a singleton service of the type specified in <paramref name="serviceType"/> with an
implementation of the type specified in <paramref name="implementationType"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register.</param>
<param name="implementationType">The implementation type of the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
<summary>
Adds a singleton service of the type specified in <paramref name="serviceType"/> with a
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds a singleton service of the type specified in <typeparamref name="TService"/> with an
implementation type specified in <typeparamref name="TImplementation"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<typeparam name="TImplementation">The type of the implementation to use.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
<summary>
Adds a singleton service of the type specified in <paramref name="serviceType"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register and the implementation to use.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds a singleton service of the type specified in <typeparamref name="TService"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
<summary>
Adds a singleton service of the type specified in <typeparamref name="TService"/> with a
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
<summary>
Adds a singleton service of the type specified in <typeparamref name="TService"/> with an
implementation type specified in <typeparamref name="TImplementation" /> using the
factory specified in <paramref name="implementationFactory"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<typeparam name="TService">The type of the service to add.</typeparam>
<typeparam name="TImplementation">The type of the implementation to use.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="implementationFactory">The factory that creates the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Object)">
<summary>
Adds a singleton service of the type specified in <paramref name="serviceType"/> with an
instance specified in <paramref name="implementationInstance"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="serviceType">The type of the service to register.</param>
<param name="implementationInstance">The instance of the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,``0)">
<summary>
Adds a singleton service of the type specified in <typeparamref name="TService" /> with an
instance specified in <paramref name="implementationInstance"/> to the
specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
<param name="implementationInstance">The instance of the service.</param>
<returns>A reference to this instance after the operation has completed.</returns>
<seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Type,Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
<summary>
Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="implementationType"/>.
</summary>
<param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
<param name="implementationType">The <see cref="T:System.Type"/> implementing the service.</param>
<param name="lifetime">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime"/> of the service.</param>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Object)">
<summary>
Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="instance"/>
as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>.
</summary>
<param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
<param name="instance">The instance implementing the service.</param>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Func{System.IServiceProvider,System.Object},Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
<summary>
Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="factory"/>.
</summary>
<param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
<param name="factory">A factory used for creating service instances.</param>
<param name="lifetime">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime"/> of the service.</param>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Lifetime">
<inheritdoc />
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType">
<inheritdoc />
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationType">
<inheritdoc />
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationInstance">
<inheritdoc />
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationFactory">
<inheritdoc />
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime">
<summary>
Specifies the lifetime of a service in an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
</member>
<member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton">
<summary>
Specifies that a single instance of the service will be created.
</summary>
</member>
<member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped">
<summary>
Specifies that a new instance of the service will be created for each scope.
</summary>
<remarks>
In ASP.NET Core applications a scope is created around each server request.
</remarks>
</member>
<member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient">
<summary>
Specifies that a new instance of the service will be created every time it is requested.
</summary>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions">
<summary>
Extension methods for getting services from an <see cref="T:System.IServiceProvider" />.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService``1(System.IServiceProvider)">
<summary>
Get service of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
</summary>
<typeparam name="T">The type of service object to get.</typeparam>
<param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
<returns>A service object of type <typeparamref name="T"/> or null if there is no such service.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(System.IServiceProvider,System.Type)">
<summary>
Get service of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/>.
</summary>
<param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
<param name="serviceType">An object that specifies the type of service object to get.</param>
<returns>A service object of type <paramref name="serviceType"/>.</returns>
<exception cref="T:System.InvalidOperationException">There is no service of type <paramref name="serviceType"/>.</exception>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService``1(System.IServiceProvider)">
<summary>
Get service of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
</summary>
<typeparam name="T">The type of service object to get.</typeparam>
<param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
<returns>A service object of type <typeparamref name="T"/>.</returns>
<exception cref="T:System.InvalidOperationException">There is no service of type <typeparamref name="T"/>.</exception>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices``1(System.IServiceProvider)">
<summary>
Get an enumeration of services of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
</summary>
<typeparam name="T">The type of service object to get.</typeparam>
<param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the services from.</param>
<returns>An enumeration of services of type <typeparamref name="T"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices(System.IServiceProvider,System.Type)">
<summary>
Get an enumeration of services of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/>.
</summary>
<param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the services from.</param>
<param name="serviceType">An object that specifies the type of service object to get.</param>
<returns>An enumeration of services of type <paramref name="serviceType"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.CreateScope(System.IServiceProvider)">
<summary>
Creates a new <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> that can be used to resolve scoped services.
</summary>
<param name="provider">The <see cref="T:System.IServiceProvider"/> to create the scope from.</param>
<returns>A <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> that can be used to resolve scoped services.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
<summary>
Adds the specified <paramref name="descriptor"/> to the <paramref name="collection"/>.
</summary>
<param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
<param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</param>
<returns>A reference to the current instance of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
<summary>
Adds a sequence of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to the <paramref name="collection"/>.
</summary>
<param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
<param name="descriptors">The <see cref="T:System.Collections.Generic.IEnumerable`1"/> of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s to add.</param>
<returns>A reference to the current instance of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAdd(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
<summary>
Adds the specified <paramref name="descriptor"/> to the <paramref name="collection"/> if the
service type hasn't been already registered.
</summary>
<param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
<param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</param>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAdd(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
<summary>
Adds the specified <paramref name="descriptors"/> to the <paramref name="collection"/> if the
service type hasn't been already registered.
</summary>
<param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
<param name="descriptors">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s.</param>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
<summary>
Adds a <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> if an existing descriptor with the same
<see cref="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType"/> and an implementation that does not already exist
in <paramref name="services.."/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
<param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</param>
<remarks>
Use <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> when registing a service implementation of a
service type that
supports multiple registrations of the same service type. Using
<see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> is not idempotent and can add
duplicate
<see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> instances if called twice. Using
<see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> will prevent registration
of multiple implementation types.
</remarks>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
<summary>
Adds the specified <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s if an existing descriptor with the same
<see cref="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType"/> and an implementation that does not already exist
in <paramref name="services.."/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
<param name="descriptors">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s.</param>
<remarks>
Use <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> when registing a service
implementation of a service type that
supports multiple registrations of the same service type. Using
<see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> is not idempotent and can add
duplicate
<see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> instances if called twice. Using
<see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> will prevent registration
of multiple implementation types.
</remarks>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Replace(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
<summary>
Removes the first service in <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> with the same service type
as <paramref name="descriptor"/> and adds <paramef name="descriptor"/> to the collection.
</summary>
<param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
<param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to replace with.</param>
<returns></returns>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.AmbiguousConstructorMatch">
<summary>
Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatAmbiguousConstructorMatch(System.Object)">
<summary>
Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.CannotLocateImplementation">
<summary>
Unable to locate implementation '{0}' for service '{1}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatCannotLocateImplementation(System.Object,System.Object)">
<summary>
Unable to locate implementation '{0}' for service '{1}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.CannotResolveService">
<summary>
Unable to resolve service for type '{0}' while attempting to activate '{1}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatCannotResolveService(System.Object,System.Object)">
<summary>
Unable to resolve service for type '{0}' while attempting to activate '{1}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.NoConstructorMatch">
<summary>
A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatNoConstructorMatch(System.Object)">
<summary>
A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.NoServiceRegistered">
<summary>
No service for type '{0}' has been registered.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatNoServiceRegistered(System.Object)">
<summary>
No service for type '{0}' has been registered.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.TryAddIndistinguishableTypeToEnumerable">
<summary>
Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatTryAddIndistinguishableTypeToEnumerable(System.Object,System.Object)">
<summary>
Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'.
</summary>
</member>
</members>
</doc>

View File

@ -1,174 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.DependencyInjection</name>
</assembly>
<members>
<member name="T:Microsoft.Extensions.DependencyInjection.ServiceCollection">
<summary>
Default implementation of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.ServiceCollection.Count">
<inheritdoc />
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.ServiceCollection.IsReadOnly">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.Clear">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.Contains(Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.CopyTo(Microsoft.Extensions.DependencyInjection.ServiceDescriptor[],System.Int32)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.Remove(Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.GetEnumerator">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Creates an <see cref="T:System.IServiceProvider"/> containing services from the provided <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> containing service descriptors.</param>
<returns>The<see cref="T:System.IServiceProvider"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Boolean)">
<summary>
Creates an <see cref="T:System.IServiceProvider"/> containing services from the provided <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>
optionaly enabling scope validation.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> containing service descriptors.</param>
<param name="validateScopes">
<c>true</c> to perform check verifying that scoped services never gets resolved from root provider; otherwise <c>false</c>.
</param>
<returns>The<see cref="T:System.IServiceProvider"/>.</returns>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.ServiceProvider">
<summary>
The default IServiceProvider.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(System.Type)">
<summary>
Gets the service object of the specified type.
</summary>
<param name="serviceType"></param>
<returns></returns>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.AmbigiousConstructorException">
<summary>
Unable to activate type '{0}'. The following constructors are ambigious:
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatAmbigiousConstructorException(System.Object)">
<summary>
Unable to activate type '{0}'. The following constructors are ambigious:
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.CannotResolveService">
<summary>
Unable to resolve service for type '{0}' while attempting to activate '{1}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatCannotResolveService(System.Object,System.Object)">
<summary>
Unable to resolve service for type '{0}' while attempting to activate '{1}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.CircularDependencyException">
<summary>
A circular dependency was detected for the service of type '{0}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatCircularDependencyException(System.Object)">
<summary>
A circular dependency was detected for the service of type '{0}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.UnableToActivateTypeException">
<summary>
No constructor for type '{0}' can be instantiated using services from the service container and default values.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatUnableToActivateTypeException(System.Object)">
<summary>
No constructor for type '{0}' can be instantiated using services from the service container and default values.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.OpenGenericServiceRequiresOpenGenericImplementation">
<summary>
Open generic service type '{0}' requires registering an open generic implementation type.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatOpenGenericServiceRequiresOpenGenericImplementation(System.Object)">
<summary>
Open generic service type '{0}' requires registering an open generic implementation type.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.TypeCannotBeActivated">
<summary>
Cannot instantiate implementation type '{0}' for service type '{1}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatTypeCannotBeActivated(System.Object,System.Object)">
<summary>
Cannot instantiate implementation type '{0}' for service type '{1}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.NoConstructorMatch">
<summary>
A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatNoConstructorMatch(System.Object)">
<summary>
A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.ScopedInSingletonException">
<summary>
Cannot consume {2} service '{0}' from {3} '{1}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatScopedInSingletonException(System.Object,System.Object,System.Object,System.Object)">
<summary>
Cannot consume {2} service '{0}' from {3} '{1}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.ScopedResolvedFromRootException">
<summary>
Cannot resolve '{0}' from root provider because it requires {2} service '{1}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatScopedResolvedFromRootException(System.Object,System.Object,System.Object)">
<summary>
Cannot resolve '{0}' from root provider because it requires {2} service '{1}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.DependencyInjection.Resources.DirectScopedResolvedFromRootException">
<summary>
Cannot resolve {1} service '{0}' from root provider.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.Resources.FormatDirectScopedResolvedFromRootException(System.Object,System.Object)">
<summary>
Cannot resolve {1} service '{0}' from root provider.
</summary>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.ServiceLookup.InstanceService">
<summary>
Summary description for InstanceService
</summary>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite">
<summary>
Summary description for IServiceCallSite
</summary>
</member>
</members>
</doc>

View File

@ -1,507 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.Logging.Abstractions</name>
</assembly>
<members>
<member name="T:Microsoft.Extensions.Logging.ILogger">
<summary>
Represents a type used to perform logging.
</summary>
<remarks>Aggregates most logging patterns to a single method.</remarks>
</member>
<member name="M:Microsoft.Extensions.Logging.ILogger.Log``1(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,``0,System.Exception,System.Func{``0,System.Exception,System.String})">
<summary>
Writes a log entry.
</summary>
<param name="logLevel">Entry will be written on this level.</param>
<param name="eventId">Id of the event.</param>
<param name="state">The entry to be written. Can be also an object.</param>
<param name="exception">The exception related to this entry.</param>
<param name="formatter">Function to create a <c>string</c> message of the <paramref name="state"/> and <paramref name="exception"/>.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel)">
<summary>
Checks if the given <paramref name="logLevel"/> is enabled.
</summary>
<param name="logLevel">level to be checked.</param>
<returns><c>true</c> if enabled.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.ILogger.BeginScope``1(``0)">
<summary>
Begins a logical operation scope.
</summary>
<param name="state">The identifier for the scope.</param>
<returns>An IDisposable that ends the logical operation scope on dispose.</returns>
</member>
<member name="T:Microsoft.Extensions.Logging.ILoggerFactory">
<summary>
Represents a type used to configure the logging system and create instances of <see cref="T:Microsoft.Extensions.Logging.ILogger"/> from
the registered <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider"/>s.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.ILoggerFactory.CreateLogger(System.String)">
<summary>
Creates a new <see cref="T:Microsoft.Extensions.Logging.ILogger"/> instance.
</summary>
<param name="categoryName">The category name for messages produced by the logger.</param>
<returns>The <see cref="T:Microsoft.Extensions.Logging.ILogger"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.ILoggerFactory.AddProvider(Microsoft.Extensions.Logging.ILoggerProvider)">
<summary>
Adds an <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider"/> to the logging system.
</summary>
<param name="provider">The <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider"/>.</param>
</member>
<member name="T:Microsoft.Extensions.Logging.ILogger`1">
<summary>
A generic interface for logging where the category name is derived from the specified
<typeparamref name="TCategoryName"/> type name.
Generally used to enable activation of a named <see cref="T:Microsoft.Extensions.Logging.ILogger"/> from dependency injection.
</summary>
<typeparam name="TCategoryName">The type who's name is used for the logger category name.</typeparam>
</member>
<member name="T:Microsoft.Extensions.Logging.ILoggerProvider">
<summary>
Represents a type that can create instances of <see cref="T:Microsoft.Extensions.Logging.ILogger"/>.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.ILoggerProvider.CreateLogger(System.String)">
<summary>
Creates a new <see cref="T:Microsoft.Extensions.Logging.ILogger"/> instance.
</summary>
<param name="categoryName">The category name for messages produced by the logger.</param>
<returns></returns>
</member>
<member name="T:Microsoft.Extensions.Logging.LoggerExtensions">
<summary>
ILogger extension methods for common scenarios.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a debug log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a debug log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes a debug log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogTrace(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a trace log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogTrace(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a trace log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogTrace(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes a trace log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes an informational log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes an informational log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes an informational log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a warning log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a warning log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes a warning log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogError(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes an error log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogError(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes an error log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogError(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes an error log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a critical log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a critical log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes a critical log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.BeginScope(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats the message and creates a scope.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to create the scope in.</param>
<param name="messageFormat">Format string of the scope message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
<returns>A disposable scope object. Can be null.</returns>
</member>
<member name="T:Microsoft.Extensions.Logging.LoggerFactoryExtensions">
<summary>
ILoggerFactory extension methods for common scenarios.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerFactoryExtensions.CreateLogger``1(Microsoft.Extensions.Logging.ILoggerFactory)">
<summary>
Creates a new ILogger instance using the full name of the given type.
</summary>
<typeparam name="T">The type.</typeparam>
<param name="factory">The factory.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerFactoryExtensions.CreateLogger(Microsoft.Extensions.Logging.ILoggerFactory,System.Type)">
<summary>
Creates a new ILogger instance using the full name of the given type.
</summary>
<param name="factory">The factory.</param>
<param name="type">The type.</param>
</member>
<member name="T:Microsoft.Extensions.Logging.LoggerMessage">
<summary>
Creates delegates which can be later cached to log messages in a performant way.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.DefineScope(System.String)">
<summary>
Creates a delegate which can be invoked to create a log scope.
</summary>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log scope.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.DefineScope``1(System.String)">
<summary>
Creates a delegate which can be invoked to create a log scope.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log scope.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.DefineScope``2(System.String)">
<summary>
Creates a delegate which can be invoked to create a log scope.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log scope.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.DefineScope``3(System.String)">
<summary>
Creates a delegate which can be invoked to create a log scope.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log scope.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``1(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``2(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``3(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``4(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<typeparam name="T4">The type of the fourth parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``5(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<typeparam name="T4">The type of the fourth parameter passed to the named format string.</typeparam>
<typeparam name="T5">The type of the fifth parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``6(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<typeparam name="T4">The type of the fourth parameter passed to the named format string.</typeparam>
<typeparam name="T5">The type of the fifth parameter passed to the named format string.</typeparam>
<typeparam name="T6">The type of the sixth parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="T:Microsoft.Extensions.Logging.Logger`1">
<summary>
Delegates to a new <see cref="T:Microsoft.Extensions.Logging.ILogger"/> instance using the full name of the given type, created by the
provided <see cref="T:Microsoft.Extensions.Logging.ILoggerFactory"/>.
</summary>
<typeparam name="T">The type.</typeparam>
</member>
<member name="M:Microsoft.Extensions.Logging.Logger`1.#ctor(Microsoft.Extensions.Logging.ILoggerFactory)">
<summary>
Creates a new <see cref="T:Microsoft.Extensions.Logging.Logger`1"/>.
</summary>
<param name="factory">The factory.</param>
</member>
<member name="T:Microsoft.Extensions.Logging.LogLevel">
<summary>
Defines logging severity levels.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Trace">
<summary>
Logs that contain the most detailed messages. These messages may contain sensitive application data.
These messages are disabled by default and should never be enabled in a production environment.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Debug">
<summary>
Logs that are used for interactive investigation during development. These logs should primarily contain
information useful for debugging and have no long-term value.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Information">
<summary>
Logs that track the general flow of the application. These logs should have long-term value.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Warning">
<summary>
Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the
application execution to stop.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Error">
<summary>
Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a
failure in the current activity, not an application-wide failure.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Critical">
<summary>
Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires
immediate attention.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.None">
<summary>
Not used for writing log messages. Specifies that a logging category should not write any messages.
</summary>
</member>
<member name="T:Microsoft.Extensions.Logging.Abstractions.NullLogger">
<summary>
Minimalistic logger that does nothing.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger.BeginScope``1(``0)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger.Log``1(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,``0,System.Exception,System.Func{``0,System.Exception,System.String})">
<inheritdoc />
</member>
<member name="T:Microsoft.Extensions.Logging.Abstractions.NullLoggerProvider">
<summary>
Provider for the <see cref="T:Microsoft.Extensions.Logging.Abstractions.NullLogger"/>.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLoggerProvider.CreateLogger(System.String)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLoggerProvider.Dispose">
<inheritdoc />
</member>
<member name="T:Microsoft.Extensions.Logging.Abstractions.Internal.NullScope">
<summary>
An empty scope without any logic
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.Internal.NullScope.Dispose">
<inheritdoc />
</member>
<member name="P:Microsoft.Extensions.Logging.Abstractions.Resource.UnexpectedNumberOfNamedParameters">
<summary>
The format string '{0}' does not have the expected number of named parameters. Expected {1} parameter(s) but found {2} parameter(s).
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.Resource.FormatUnexpectedNumberOfNamedParameters(System.Object,System.Object,System.Object)">
<summary>
The format string '{0}' does not have the expected number of named parameters. Expected {1} parameter(s) but found {2} parameter(s).
</summary>
</member>
<member name="T:Microsoft.Extensions.Logging.Internal.FormattedLogValues">
<summary>
LogValues to enable formatting options supported by <see cref="M:string.Format"/>.
This also enables using {NamedformatItem} in the format string.
</summary>
</member>
<member name="T:Microsoft.Extensions.Logging.Internal.LogValuesFormatter">
<summary>
Formatter to convert the named format items like {NamedformatItem} to <see cref="M:string.Format"/> format.
</summary>
</member>
</members>
</doc>

View File

@ -1,31 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.Logging</name>
</assembly>
<members>
<member name="T:Microsoft.Extensions.Logging.LoggerFactory">
<summary>
Summary description for LoggerFactory
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerFactory.CheckDisposed">
<summary>
Check if the factory has been disposed.
</summary>
<returns>True when <see cref="M:Microsoft.Extensions.Logging.LoggerFactory.Dispose"/> as been called</returns>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions">
<summary>
Extension methods for setting up logging services in an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds logging services to the specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add services to.</param>
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> so that additional calls can be chained.</returns>
</member>
</members>
</doc>

View File

@ -1,246 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.Options</name>
</assembly>
<members>
<member name="T:Microsoft.Extensions.Options.ConfigureOptions`1">
<summary>
Implementation of IConfigureOptions.
</summary>
<typeparam name="TOptions"></typeparam>
</member>
<member name="M:Microsoft.Extensions.Options.ConfigureOptions`1.#ctor(System.Action{`0})">
<summary>
Constructor.
</summary>
<param name="action">The action to register.</param>
</member>
<member name="P:Microsoft.Extensions.Options.ConfigureOptions`1.Action">
<summary>
The configuration action.
</summary>
</member>
<member name="M:Microsoft.Extensions.Options.ConfigureOptions`1.Configure(`0)">
<summary>
Invokes the registered configure Action.
</summary>
<param name="options"></param>
</member>
<member name="T:Microsoft.Extensions.Options.IConfigureOptions`1">
<summary>
Represents something that configures the TOptions type.
</summary>
<typeparam name="TOptions"></typeparam>
</member>
<member name="M:Microsoft.Extensions.Options.IConfigureOptions`1.Configure(`0)">
<summary>
Invoked to configure a TOptions instance.
</summary>
<param name="options">The options instance to configure.</param>
</member>
<member name="T:Microsoft.Extensions.Options.IOptions`1">
<summary>
Used to retreive configured TOptions instances.
</summary>
<typeparam name="TOptions">The type of options being requested.</typeparam>
</member>
<member name="P:Microsoft.Extensions.Options.IOptions`1.Value">
<summary>
The configured TOptions instance.
</summary>
</member>
<member name="T:Microsoft.Extensions.Options.IOptionsChangeTokenSource`1">
<summary>
Used to fetch IChangeTokens used for tracking options changes.
</summary>
<typeparam name="TOptions"></typeparam>
</member>
<member name="M:Microsoft.Extensions.Options.IOptionsChangeTokenSource`1.GetChangeToken">
<summary>
Returns a IChangeToken which can be used to register a change notification callback.
</summary>
<returns></returns>
</member>
<member name="T:Microsoft.Extensions.Options.IOptionsMonitor`1">
<summary>
Used for notifications when TOptions instances change.
</summary>
<typeparam name="TOptions">The options type.</typeparam>
</member>
<member name="P:Microsoft.Extensions.Options.IOptionsMonitor`1.CurrentValue">
<summary>
Returns the current TOptions instance.
</summary>
</member>
<member name="M:Microsoft.Extensions.Options.IOptionsMonitor`1.OnChange(System.Action{`0})">
<summary>
Registers a listener to be called whenever TOptions changes.
</summary>
<param name="listener">The action to be invoked when TOptions has changed.</param>
<returns>An IDisposable which should be disposed to stop listening for changes.</returns>
</member>
<member name="T:Microsoft.Extensions.Options.IOptionsSnapshot`1">
<summary>
Used to access the value of TOptions for the lifetime of a request.
</summary>
<typeparam name="TOptions"></typeparam>
</member>
<member name="P:Microsoft.Extensions.Options.IOptionsSnapshot`1.Value">
<summary>
Returns the value of the TOptions which will be computed once
</summary>
<returns></returns>
</member>
<member name="T:Microsoft.Extensions.Options.Options">
<summary>
Helper class.
</summary>
</member>
<member name="M:Microsoft.Extensions.Options.Options.Create``1(``0)">
<summary>
Creates a wrapper around an instance of TOptions to return itself as an IOptions.
</summary>
<typeparam name="TOptions"></typeparam>
<param name="options"></param>
<returns></returns>
</member>
<member name="T:Microsoft.Extensions.Options.OptionsManager`1">
<summary>
Implementation of IOptions.
</summary>
<typeparam name="TOptions"></typeparam>
</member>
<member name="M:Microsoft.Extensions.Options.OptionsManager`1.#ctor(System.Collections.Generic.IEnumerable{Microsoft.Extensions.Options.IConfigureOptions{`0}})">
<summary>
Initializes a new instance with the specified options configurations.
</summary>
<param name="setups">The configuration actions to run.</param>
</member>
<member name="P:Microsoft.Extensions.Options.OptionsManager`1.Value">
<summary>
The configured options instance.
</summary>
</member>
<member name="T:Microsoft.Extensions.Options.OptionsMonitor`1">
<summary>
Implementation of IOptionsMonitor.
</summary>
<typeparam name="TOptions"></typeparam>
</member>
<member name="M:Microsoft.Extensions.Options.OptionsMonitor`1.#ctor(System.Collections.Generic.IEnumerable{Microsoft.Extensions.Options.IConfigureOptions{`0}},System.Collections.Generic.IEnumerable{Microsoft.Extensions.Options.IOptionsChangeTokenSource{`0}})">
<summary>
Constructor.
</summary>
<param name="setups">The configuration actions to run on an options instance.</param>
<param name="sources">The sources used to listen for changes to the options instance.</param>
</member>
<member name="P:Microsoft.Extensions.Options.OptionsMonitor`1.CurrentValue">
<summary>
The present value of the options.
</summary>
</member>
<member name="M:Microsoft.Extensions.Options.OptionsMonitor`1.OnChange(System.Action{`0})">
<summary>
Registers a listener to be called whenever TOptions changes.
</summary>
<param name="listener">The action to be invoked when TOptions has changed.</param>
<returns>An IDisposable which should be disposed to stop listening for changes.</returns>
</member>
<member name="T:Microsoft.Extensions.Options.OptionsSnapshot`1">
<summary>
Implementation of IOptionsSnapshot.
</summary>
<typeparam name="TOptions"></typeparam>
</member>
<member name="M:Microsoft.Extensions.Options.OptionsSnapshot`1.#ctor(Microsoft.Extensions.Options.IOptionsMonitor{`0})">
<summary>
Initializes a new instance.
</summary>
<param name="monitor">The monitor to fetch the options value from.</param>
</member>
<member name="P:Microsoft.Extensions.Options.OptionsSnapshot`1.Value">
<summary>
The configured options instance.
</summary>
</member>
<member name="T:Microsoft.Extensions.Options.OptionsWrapper`1">
<summary>
IOptions wrapper that returns the options instance.
</summary>
<typeparam name="TOptions"></typeparam>
</member>
<member name="M:Microsoft.Extensions.Options.OptionsWrapper`1.#ctor(`0)">
<summary>
Intializes the wrapper with the options instance to return.
</summary>
<param name="options">The options instance to return.</param>
</member>
<member name="P:Microsoft.Extensions.Options.OptionsWrapper`1.Value">
<summary>
The options instance.
</summary>
</member>
<member name="P:Microsoft.Extensions.Options.Resources.Error_CannotActivateAbstractOrInterface">
<summary>
Cannot create instance of type '{0}' because it is either abstract or an interface.
</summary>
</member>
<member name="M:Microsoft.Extensions.Options.Resources.FormatError_CannotActivateAbstractOrInterface(System.Object)">
<summary>
Cannot create instance of type '{0}' because it is either abstract or an interface.
</summary>
</member>
<member name="P:Microsoft.Extensions.Options.Resources.Error_FailedBinding">
<summary>
Failed to convert '{0}' to type '{1}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.Options.Resources.FormatError_FailedBinding(System.Object,System.Object)">
<summary>
Failed to convert '{0}' to type '{1}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.Options.Resources.Error_FailedToActivate">
<summary>
Failed to create instance of type '{0}'.
</summary>
</member>
<member name="M:Microsoft.Extensions.Options.Resources.FormatError_FailedToActivate(System.Object)">
<summary>
Failed to create instance of type '{0}'.
</summary>
</member>
<member name="P:Microsoft.Extensions.Options.Resources.Error_MissingParameterlessConstructor">
<summary>
Cannot create instance of type '{0}' because it is missing a public parameterless constructor.
</summary>
</member>
<member name="M:Microsoft.Extensions.Options.Resources.FormatError_MissingParameterlessConstructor(System.Object)">
<summary>
Cannot create instance of type '{0}' because it is missing a public parameterless constructor.
</summary>
</member>
<member name="T:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions">
<summary>
Extension methods for adding options services to the DI container.
</summary>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.AddOptions(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
<summary>
Adds services required for using options.
</summary>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the services to.</param>
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> so that additional calls can be chained.</returns>
</member>
<member name="M:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.Configure``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{``0})">
<summary>
Registers an action used to configure a particular type of options.
</summary>
<typeparam name="TOptions">The options type to be configured.</typeparam>
<param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the services to.</param>
<param name="configureOptions">The action used to configure the options.</param>
<returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> so that additional calls can be chained.</returns>
</member>
</members>
</doc>

View File

@ -1,299 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.Primitives</name>
</assembly>
<members>
<member name="T:Microsoft.Extensions.Primitives.CancellationChangeToken">
<summary>
A <see cref="T:Microsoft.Extensions.Primitives.IChangeToken"/> implementation using <see cref="T:System.Threading.CancellationToken"/>.
</summary>
</member>
<member name="M:Microsoft.Extensions.Primitives.CancellationChangeToken.#ctor(System.Threading.CancellationToken)">
<summary>
Initializes a new instance of <see cref="T:Microsoft.Extensions.Primitives.CancellationChangeToken"/>.
</summary>
<param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/>.</param>
</member>
<member name="P:Microsoft.Extensions.Primitives.CancellationChangeToken.ActiveChangeCallbacks">
<inheritdoc />
</member>
<member name="P:Microsoft.Extensions.Primitives.CancellationChangeToken.HasChanged">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Primitives.CancellationChangeToken.RegisterChangeCallback(System.Action{System.Object},System.Object)">
<inheritdoc />
</member>
<member name="T:Microsoft.Extensions.Primitives.ChangeToken">
<summary>
Propagates notifications that a change has occured.
</summary>
</member>
<member name="M:Microsoft.Extensions.Primitives.ChangeToken.OnChange(System.Func{Microsoft.Extensions.Primitives.IChangeToken},System.Action)">
<summary>
Registers the <paramref name="changeTokenConsumer"/> action to be called whenever the token produced changes.
</summary>
<param name="changeTokenProducer">Produces the change token.</param>
<param name="changeTokenConsumer">Action called when the token changes.</param>
<returns></returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.ChangeToken.OnChange``1(System.Func{Microsoft.Extensions.Primitives.IChangeToken},System.Action{``0},``0)">
<summary>
Registers the <paramref name="changeTokenConsumer"/> action to be called whenever the token produced changes.
</summary>
<param name="changeTokenProducer">Produces the change token.</param>
<param name="changeTokenConsumer">Action called when the token changes.</param>
<param name="state">state for the consumer.</param>
<returns></returns>
</member>
<member name="T:Microsoft.Extensions.Primitives.IChangeToken">
<summary>
Propagates notifications that a change has occured.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.IChangeToken.HasChanged">
<summary>
Gets a value that indicates if a change has occured.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.IChangeToken.ActiveChangeCallbacks">
<summary>
Indicates if this token will pro-actively raise callbacks. Callbacks are still guaranteed to fire, eventually.
</summary>
</member>
<member name="M:Microsoft.Extensions.Primitives.IChangeToken.RegisterChangeCallback(System.Action{System.Object},System.Object)">
<summary>
Registers for a callback that will be invoked when the entry has changed.
<see cref="P:Microsoft.Extensions.Primitives.IChangeToken.HasChanged"/> MUST be set before the callback is invoked.
</summary>
<param name="callback">The <see cref="T:System.Action`1"/> to invoke.</param>
<param name="state">State to be passed into the callback.</param>
<returns>An <see cref="T:System.IDisposable"/> that is used to unregister the callback.</returns>
</member>
<member name="T:Microsoft.Extensions.Primitives.Resources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.Resources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.Resources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.Resources.Argument_InvalidOffsetLength">
<summary>
Looks up a localized string similar to Offset and length are out of bounds for the string or length is greater than the number of characters from index to the end of the string..
</summary>
</member>
<member name="T:Microsoft.Extensions.Primitives.StringSegment">
<summary>
An optimized representation of a substring.
</summary>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.#ctor(System.String)">
<summary>
Initializes an instance of the <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> struct.
</summary>
<param name="buffer">
The original <see cref="T:System.String"/>. The <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> includes the whole <see cref="T:System.String"/>.
</param>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.#ctor(System.String,System.Int32,System.Int32)">
<summary>
Initializes an instance of the <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> struct.
</summary>
<param name="buffer">The original <see cref="T:System.String"/> used as buffer.</param>
<param name="offset">The offset of the segment within the <paramref name="buffer"/>.</param>
<param name="length">The length of the segment.</param>
</member>
<member name="P:Microsoft.Extensions.Primitives.StringSegment.Buffer">
<summary>
Gets the <see cref="T:System.String"/> buffer for this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.StringSegment.Offset">
<summary>
Gets the offset within the buffer for this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.StringSegment.Length">
<summary>
Gets the length of this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.StringSegment.Value">
<summary>
Gets the value of this segment as a <see cref="T:System.String"/>.
</summary>
</member>
<member name="P:Microsoft.Extensions.Primitives.StringSegment.HasValue">
<summary>
Gets whether or not this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> contains a valid value.
</summary>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.Equals(System.Object)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.Equals(Microsoft.Extensions.Primitives.StringSegment)">
<summary>
Indicates whether the current object is equal to another object of the same type.
</summary>
<param name="other">An object to compare with this object.</param>
<returns><code>true</code> if the current object is equal to the other parameter; otherwise, <code>false</code>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.Equals(Microsoft.Extensions.Primitives.StringSegment,System.StringComparison)">
<summary>
Indicates whether the current object is equal to another object of the same type.
</summary>
<param name="other">An object to compare with this object.</param>
<param name="comparisonType">One of the enumeration values that specifies the rules to use in the comparison.</param>
<returns><code>true</code> if the current object is equal to the other parameter; otherwise, <code>false</code>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.Equals(System.String)">
<summary>
Checks if the specified <see cref="T:System.String"/> is equal to the current <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
</summary>
<param name="text">The <see cref="T:System.String"/> to compare with the current <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.</param>
<returns><code>true</code> if the specified <see cref="T:System.String"/> is equal to the current <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>; otherwise, <code>false</code>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.Equals(System.String,System.StringComparison)">
<summary>
Checks if the specified <see cref="T:System.String"/> is equal to the current <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
</summary>
<param name="text">The <see cref="T:System.String"/> to compare with the current <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.</param>
<param name="comparisonType">One of the enumeration values that specifies the rules to use in the comparison.</param>
<returns><code>true</code> if the specified <see cref="T:System.String"/> is equal to the current <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>; otherwise, <code>false</code>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.GetHashCode">
<inheritdoc />
<remarks>
This GetHashCode is expensive since it allocates on every call.
However this is required to ensure we retain any behavior (such as hash code randomization) that
string.GetHashCode has.
</remarks>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.op_Equality(Microsoft.Extensions.Primitives.StringSegment,Microsoft.Extensions.Primitives.StringSegment)">
<summary>
Checks if two specified <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> have the same value.
</summary>
<param name="left">The first <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> to compare, or <code>null</code>.</param>
<param name="right">The second <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> to compare, or <code>null</code>.</param>
<returns><code>true</code> if the value of <paramref name="left"/> is the same as the value of <paramref name="right"/>; otherwise, <code>false</code>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.op_Inequality(Microsoft.Extensions.Primitives.StringSegment,Microsoft.Extensions.Primitives.StringSegment)">
<summary>
Checks if two specified <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> have different values.
</summary>
<param name="left">The first <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> to compare, or <code>null</code>.</param>
<param name="right">The second <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> to compare, or <code>null</code>.</param>
<returns><code>true</code> if the value of <paramref name="left"/> is different from the value of <paramref name="right"/>; otherwise, <code>false</code>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.StartsWith(System.String,System.StringComparison)">
<summary>
Checks if the beginning of this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> matches the specified <see cref="T:System.String"/> when compared using the specified <paramref name="comparisonType"/>.
</summary>
<param name="text">The <see cref="T:System.String"/>to compare.</param>
<param name="comparisonType">One of the enumeration values that specifies the rules to use in the comparison.</param>
<returns><code>true</code> if <paramref name="text"/> matches the beginning of this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>; otherwise, <code>false</code>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.EndsWith(System.String,System.StringComparison)">
<summary>
Checks if the end of this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> matches the specified <see cref="T:System.String"/> when compared using the specified <paramref name="comparisonType"/>.
</summary>
<param name="text">The <see cref="T:System.String"/>to compare.</param>
<param name="comparisonType">One of the enumeration values that specifies the rules to use in the comparison.</param>
<returns><code>true</code> if <paramref name="text"/> matches the end of this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>; otherwise, <code>false</code>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.Substring(System.Int32,System.Int32)">
<summary>
Retrieves a substring from this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
The substring starts at the position specified by <paramref name="offset"/> and has the specified <paramref name="length"/>.
</summary>
<param name="offset">The zero-based starting character position of a substring in this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.</param>
<param name="length">The number of characters in the substring.</param>
<returns>A <see cref="T:System.String"/> that is equivalent to the substring of length <paramref name="length"/> that begins at <paramref name="offset"/> in this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/></returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.Subsegment(System.Int32,System.Int32)">
<summary>
Retrieves a <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> that represents a substring from this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
The <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> starts at the position specified by <paramref name="offset"/> and has the specified <paramref name="length"/>.
</summary>
<param name="offset">The zero-based starting character position of a substring in this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.</param>
<param name="length">The number of characters in the substring.</param>
<returns>A <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> that is equivalent to the substring of length <paramref name="length"/> that begins at <paramref name="offset"/> in this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/></returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.IndexOf(System.Char,System.Int32,System.Int32)">
<summary>
Gets the zero-based index of the first occurrence of the character <paramref name="c"/> in this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
The search starts at <paramref name="start"/> and examines a specified number of <paramref name="count"/> character positions.
</summary>
<param name="c">The Unicode character to seek.</param>
<param name="start">The zero-based index position at which the search starts. </param>
<param name="count">The number of characters to examine.</param>
<returns>The zero-based index position of <paramref name="c"/> from the beginning of the <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> if that character is found, or -1 if it is not.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.IndexOf(System.Char,System.Int32)">
<summary>
Gets the zero-based index of the first occurrence of the character <paramref name="c"/> in this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
The search starts at <paramref name="start"/>.
</summary>
<param name="c">The Unicode character to seek.</param>
<param name="start">The zero-based index position at which the search starts. </param>
<returns>The zero-based index position of <paramref name="c"/> from the beginning of the <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> if that character is found, or -1 if it is not.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.IndexOf(System.Char)">
<summary>
Gets the zero-based index of the first occurrence of the character <paramref name="c"/> in this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.
</summary>
<param name="c">The Unicode character to seek.</param>
<returns>The zero-based index position of <paramref name="c"/> from the beginning of the <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> if that character is found, or -1 if it is not.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.Trim">
<summary>
Removes all leading and trailing whitespaces.
</summary>
<returns>The trimmed <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.TrimStart">
<summary>
Removes all leading whitespaces.
</summary>
<returns>The trimmed <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.TrimEnd">
<summary>
Removes all trailing whitespaces.
</summary>
<returns>The trimmed <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringSegment.ToString">
<summary>
Returns the <see cref="T:System.String"/> represented by this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> or <code>String.Empty</code> if the <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> does not contain a value.
</summary>
<returns>The <see cref="T:System.String"/> represented by this <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> or <code>String.Empty</code> if the <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/> does not contain a value.</returns>
</member>
<member name="T:Microsoft.Extensions.Primitives.StringTokenizer">
<summary>
Tokenizes a <c>string</c> into <see cref="T:Microsoft.Extensions.Primitives.StringSegment"/>s.
</summary>
</member>
<member name="M:Microsoft.Extensions.Primitives.StringTokenizer.#ctor(System.String,System.Char[])">
<summary>
Initializes a new instance of <see cref="T:Microsoft.Extensions.Primitives.StringTokenizer"/>.
</summary>
<param name="value">The <c>string</c> to tokenize.</param>
<param name="separators">The characters to tokenize by.</param>
</member>
<member name="T:Microsoft.Extensions.Primitives.StringValues">
<summary>
Represents zero/null, one, or many strings in an efficient way.
</summary>
</member>
</members>
</doc>

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,464 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>System.Diagnostics.DiagnosticSource</name>
</assembly>
<members>
<member name="T:System.Diagnostics.DiagnosticSource">
<summary>
This is the basic API to 'hook' parts of the framework. It is like an EventSource
(which can also write object), but is intended to log complex objects that can't be serialized.
Please See the DiagnosticSource Users Guide
https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md
for instructions on its use.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSource.Write(System.String,System.Object)">
<summary>
Write is a generic way of logging complex payloads. Each notification
is given a name, which identifies it as well as a object (typically an anonymous type)
that gives the information to pass to the notification, which is arbitrary.
The name should be short (so don't use fully qualified names unless you have to
to avoid ambiguity), but you want the name to be globally unique. Typically your componentName.eventName
where componentName and eventName are strings less than 10 characters are a good compromise.
notification names should NOT have '.' in them because component names have dots and for them both
to have dots would lead to ambiguity. The suggestion is to use _ instead. It is assumed
that listeners will use string prefixing to filter groups, thus having hierarchy in component
names is good.
</summary>
<param name="name">The name of the event being written.</param>
<param name="value">An object that represent the value being passed as a payload for the event.
This is often a anonymous type which contains several sub-values.</param>
</member>
<member name="M:System.Diagnostics.DiagnosticSource.IsEnabled(System.String)">
<summary>
Optional: if there is expensive setup for the notification, you can call IsEnabled
before doing this setup. Consumers should not be assuming that they only get notifications
for which IsEnabled is true however, it is optional for producers to call this API.
The name should be the same as what is passed to Write.
</summary>
<param name="name">The name of the event being written.</param>
</member>
<member name="T:System.Diagnostics.DiagnosticListener">
<summary>
A DiagnosticListener is something that forwards on events written with DiagnosticSource.
It is an IObservable (has Subscribe method), and it also has a Subscribe overload that
lets you specify a 'IsEnabled' predicate that users of DiagnosticSource will use for
'quick checks'.
The item in the stream is a KeyValuePair[string, object] where the string is the name
of the diagnostic item and the object is the payload (typically an anonymous type).
There may be many DiagnosticListeners in the system, but we encourage the use of
The DiagnosticSource.DefaultSource which goes to the DiagnosticListener.DefaultListener.
If you need to see 'everything' you can subscribe to the 'AllListeners' event that
will fire for every live DiagnosticListener in the appdomain (past or present).
Please See the DiagnosticSource Users Guide
https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md
for instructions on its use.
</summary>
</member>
<member name="P:System.Diagnostics.DiagnosticListener.AllListeners">
<summary>
When you subscribe to this you get callbacks for all NotificationListeners in the appdomain
as well as those that occurred in the past, and all future Listeners created in the future.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.Subscribe(System.IObserver{System.Collections.Generic.KeyValuePair{System.String,System.Object}},System.Predicate{System.String})">
<summary>
Add a subscriber (Observer). If 'IsEnabled' == null (or not present), then the Source's IsEnabled
will always return true.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.Subscribe(System.IObserver{System.Collections.Generic.KeyValuePair{System.String,System.Object}})">
<summary>
Same as other Subscribe overload where the predicate is assumed to always return true.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.#ctor(System.String)">
<summary>
Make a new DiagnosticListener, it is a NotificationSource, which means the returned result can be used to
log notifications, but it also has a Subscribe method so notifications can be forwarded
arbitrarily. Thus its job is to forward things from the producer to all the listeners
(multi-casting). Generally you should not be making your own DiagnosticListener but use the
DiagnosticListener.Default, so that notifications are as 'public' as possible.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.Dispose">
<summary>
Clean up the NotificationListeners. Notification listeners do NOT DIE ON THEIR OWN
because they are in a global list (for discoverability). You must dispose them explicitly.
Note that we do not do the Dispose(bool) pattern because we frankly don't want to support
subclasses that have non-managed state.
</summary>
</member>
<member name="P:System.Diagnostics.DiagnosticListener.Name">
<summary>
When a DiagnosticListener is created it is given a name. Return this.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.ToString">
<summary>
Return the name for the ToString() to aid in debugging.
</summary>
<returns></returns>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.IsEnabled(System.String)">
<summary>
Override abstract method
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.Write(System.String,System.Object)">
<summary>
Override abstract method
</summary>
</member>
<member name="T:System.Diagnostics.DiagnosticListener.AllListenerObservable">
<summary>
Logically AllListenerObservable has a very simple task. It has a linked list of subscribers that want
a callback when a new listener gets created. When a new DiagnosticListener gets created it should call
OnNewDiagnosticListener so that AllListenerObservable can forward it on to all the subscribers.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.AllListenerObservable.OnNewDiagnosticListener(System.Diagnostics.DiagnosticListener)">
<summary>
Called when a new DiagnosticListener gets created to tell anyone who subscribed that this happened.
</summary>
<param name="diagnosticListener"></param>
</member>
<member name="M:System.Diagnostics.DiagnosticListener.AllListenerObservable.Remove(System.Diagnostics.DiagnosticListener.AllListenerObservable.AllListenerSubscription)">
<summary>
Remove 'subscription from the list of subscriptions that the observable has. Called when
subscriptions are disposed. Returns true if the subscription was removed.
</summary>
</member>
<member name="T:System.Diagnostics.DiagnosticListener.AllListenerObservable.AllListenerSubscription">
<summary>
One node in the linked list of subscriptions that AllListenerObservable keeps. It is
IDisposable, and when that is called it removes itself from the list.
</summary>
</member>
<member name="T:System.Diagnostics.DiagnosticSourceEventSource">
<summary>
DiagnosticSourceEventSource serves two purposes
1) It allows debuggers to inject code via Function evaluation. This is the purpose of the
BreakPointWithDebuggerFuncEval function in the 'OnEventCommand' method. Basically even in
release code, debuggers can place a breakpoint in this method and then trigger the
DiagnosticSourceEventSource via ETW. Thus from outside the process you can get a hook that
is guaranteed to happen BEFORE any DiangosticSource events (if the process is just starting)
or as soon as possible afterward if it is on attach.
2) It provides a 'bridge' that allows DiagnosticSource messages to be forwarded to EventListers
or ETW. You can do this by enabling the Microsoft-Diagnostics-DiagnosticSource with the
'Events' keyword (for diagnostics purposes, you should also turn on the 'Messages' keyword.
This EventSource defines a EventSource argument called 'FilterAndPayloadSpecs' that defines
what DiagnsoticSources to enable and what parts of the payload to serialize into the key-value
list that will be forwarded to the EventSource. If it is empty, all serializable parts of
every DiagnosticSource event will be forwarded (this is NOT recommended for monitoring but
can be useful for discovery).
The FilterAndPayloadSpecs is one long string with the following structures
* It is a newline separated list of FILTER_AND_PAYLOAD_SPEC
* a FILTER_AND_PAYLOAD_SPEC can be
* EVENT_NAME : TRANSFORM_SPECS
* EMPTY - turns on all sources with implicit payload elements.
* an EVENTNAME can be
* DIAGNOSTIC_SOURCE_NAME / DIAGNOSTC_EVENT_NAME @ EVENT_SOURCE_EVENTNAME - give the name as well as the EventSource event to log it under.
* DIAGNOSTIC_SOURCE_NAME / DIAGNOSTC_EVENT_NAME
* DIAGNOSTIC_SOURCE_NAME - which wildcards every event in the Diagnostic source or
* EMPTY - which turns on all sources
* TRANSFORM_SPEC is a semicolon separated list of TRANSFORM_SPEC, which can be
* - TRANSFORM_SPEC - the '-' indicates that implicit payload elements should be suppressed
* VARIABLE_NAME = PROPERTY_SPEC - indicates that a payload element 'VARIABLE_NAME' is created from PROPERTY_SPEC
* PROPERTY_SPEC - This is a shortcut where VARIABLE_NAME is the LAST property name
* a PROPERTY_SPEC is basically a list of names separated by '.'
* PROPERTY_NAME - fetches a property from the DiagnosticSource payload object
* PROPERTY_NAME . PROPERTY NAME - fetches a sub-property of the object.
Example1:
"BridgeTestSource1/TestEvent1:cls_Point_X=cls.Point.X;cls_Point_Y=cls.Point.Y\r\n" +
"BridgeTestSource2/TestEvent2:-cls.Url"
This indicates that two events should be turned on, The 'TestEvent1' event in BridgeTestSource1 and the
'TestEvent2' in BridgeTestSource2. In the first case, because the transform did not begin with a -
any primitive type/string of 'TestEvent1's payload will be serialized into the output. In addition if
there a property of the payload object called 'cls' which in turn has a property 'Point' which in turn
has a property 'X' then that data is also put in the output with the name cls_Point_X. Similarly
if cls.Point.Y exists, then that value will also be put in the output with the name cls_Point_Y.
For the 'BridgeTestSource2/TestEvent2' event, because the - was specified NO implicit fields will be
generated, but if there is a property call 'cls' which has a property 'Url' then that will be placed in
the output with the name 'Url' (since that was the last property name used and no Variable= clause was
specified.
Example:
"BridgeTestSource1\r\n" +
"BridgeTestSource2"
This will enable all events for the BridgeTestSource1 and BridgeTestSource2 sources. Any string/primitive
properties of any of the events will be serialized into the output.
Example:
""
This turns on all DiagnosticSources Any string/primitive properties of any of the events will be serialized
into the output. This is not likely to be a good idea as it will be very verbose, but is useful to quickly
discover what is available.
* How data is logged in the EventSource
By default all data from Diagnostic sources is logged to the the DiagnosticEventSouce event called 'Event'
which has three fields
string SourceName,
string EventName,
IEnumerable[KeyValuePair[string, string]] Argument
However to support start-stop activity tracking, there are six other events that can be used
Activity1Start
Activity1Stop
Activity2Start
Activity2Stop
RecursiveActivity1Start
RecursiveActivity1Stop
By using the SourceName/EventName@EventSourceName syntax, you can force particular DiagnosticSource events to
be logged with one of these EventSource events. This is useful because the events above have start-stop semantics
which means that they create activity IDs that are attached to all logging messages between the start and
the stop (see https://blogs.msdn.microsoft.com/vancem/2015/09/14/exploring-eventsource-activity-correlation-and-causation-features/)
For example the specification
"MyDiagnosticSource/RequestStart@Activity1Start\r\n" +
"MyDiagnosticSource/RequestStop@Activity1Stop\r\n" +
"MyDiagnosticSource/SecurityStart@Activity2Start\r\n" +
"MyDiagnosticSource/SecurityStop@Activity2Stop\r\n"
Defines that RequestStart will be logged with the EventSource Event Activity1Start (and the cooresponding stop) which
means that all events caused between these two markers will have an activity ID assocatied with this start event.
Simmilarly SecurityStart is mapped to Activity2Start.
Note you can map many DiangosticSource events to the same EventSource Event (e.g. Activity1Start). As long as the
activities don't nest, you can reuse the same event name (since the payloads have the DiagnosticSource name which can
disambiguate). However if they nest you need to use another EventSource event because the rules of EventSource
activities state that a start of the same event terminates any existing activity of the same name.
As its name suggests RecursiveActivity1Start, is marked as recursive and thus can be used when the activity can nest with
itself. This should not be a 'top most' activity because it is not 'self healing' (if you miss a stop, then the
activity NEVER ends).
See the DiagnosticSourceEventSourceBridgeTest.cs for more explicit examples of using this bridge.
</summary>
</member>
<member name="F:System.Diagnostics.DiagnosticSourceEventSource.Keywords.Messages">
<summary>
Indicates diagnostics messages from DiagnosticSourceEventSource should be included.
</summary>
</member>
<member name="F:System.Diagnostics.DiagnosticSourceEventSource.Keywords.Events">
<summary>
Indicates that all events from all diagnostic sources should be forwarded to the EventSource using the 'Event' event.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.Message(System.String)">
<summary>
Used to send ad-hoc diagnostics to humans.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.Event(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
<summary>
Events from DiagnosticSource can be forwarded to EventSource using this event.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.EventJson(System.String,System.String,System.String)">
<summary>
This is only used on V4.5 systems that don't have the ability to log KeyValuePairs directly.
It will eventually go away, but we should always reserve the ID for this.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.Activity1Start(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
<summary>
Used to mark the beginning of an activity
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.Activity1Stop(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
<summary>
Used to mark the end of an activity
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.Activity2Start(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
<summary>
Used to mark the beginning of an activity
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.Activity2Stop(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
<summary>
Used to mark the end of an activity that can be recursive.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.RecursiveActivity1Start(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
<summary>
Used to mark the beginning of an activity
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.RecursiveActivity1Stop(System.String,System.String,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}})">
<summary>
Used to mark the end of an activity that can be recursive.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.NewDiagnosticListener(System.String)">
<summary>
Fires when a new DiagnosticSource becomes available.
</summary>
<param name="SourceName"></param>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.#ctor">
<summary>
This constructor uses EventSourceSettings which is only available on V4.6 and above
systems. We use the EventSourceSettings to turn on support for complex types.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.OnEventCommand(System.Diagnostics.Tracing.EventCommandEventArgs)">
<summary>
Called when the EventSource gets a command from a EventListener or ETW.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.BreakPointWithDebuggerFuncEval">
<summary>
A function which is fully interruptible even in release code so we can stop here and
do function evaluation in the debugger. Thus this is just a place that is useful
for the debugger to place a breakpoint where it can inject code with function evaluation
</summary>
</member>
<member name="T:System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform">
<summary>
FilterAndTransform represents on transformation specification from a DiagnosticsSource
to EventSource's 'Event' method. (e.g. MySource/MyEvent:out=prop1.prop2.prop3).
Its main method is 'Morph' which takes a DiagnosticSource object and morphs it into
a list of string,string key value pairs.
This method also contains that static 'Create/Destroy FilterAndTransformList, which
simply parse a series of transformation specifications.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform.CreateFilterAndTransformList(System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform@,System.String,System.Diagnostics.DiagnosticSourceEventSource)">
<summary>
Parses filterAndPayloadSpecs which is a list of lines each of which has the from
DiagnosticSourceName/EventName:PAYLOAD_SPEC
where PAYLOADSPEC is a semicolon separated list of specifications of the form
OutputName=Prop1.Prop2.PropN
Into linked list of FilterAndTransform that together forward events from the given
DiagnosticSource's to 'eventSource'. Sets the 'specList' variable to this value
(destroying anything that was there previously).
By default any serializable properties of the payload object are also included
in the output payload, however this feature and be tuned off by prefixing the
PAYLOADSPEC with a '-'.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform.DestroyFilterAndTransformList(System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform@)">
<summary>
This destroys (turns off) the FilterAndTransform stopping the forwarding started with CreateFilterAndTransformList
</summary>
<param name="specList"></param>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform.#ctor(System.String,System.Int32,System.Int32,System.Diagnostics.DiagnosticSourceEventSource,System.Diagnostics.DiagnosticSourceEventSource.FilterAndTransform)">
<summary>
Creates one FilterAndTransform specification from filterAndPayloadSpec starting at 'startIdx' and ending just before 'endIdx'.
This FilterAndTransform will subscribe to DiagnosticSources specified by the specification and forward them to 'eventSource.
For convenience, the 'Next' field is set to the 'next' parameter, so you can easily form linked lists.
</summary>
</member>
<member name="T:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec">
<summary>
Transform spec represents a string that describes how to extract a piece of data from
the DiagnosticSource payload. An example string is OUTSTR=EVENT_VALUE.PROP1.PROP2.PROP3
It has a Next field so they can be chained together in a linked list.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.#ctor(System.String,System.Int32,System.Int32,System.Diagnostics.DiagnosticSourceEventSource.TransformSpec)">
<summary>
parse the strings 'spec' from startIdx to endIdx (points just beyond the last considered char)
The syntax is ID1=ID2.ID3.ID4 .... Where ID1= is optional.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.Morph(System.Object)">
<summary>
Given the DiagnosticSourcePayload 'obj', compute a key-value pair from it. For example
if the spec is OUTSTR=EVENT_VALUE.PROP1.PROP2.PROP3 and the ultimate value of PROP3 is
10 then the return key value pair is KeyValuePair("OUTSTR","10")
</summary>
</member>
<member name="F:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.Next">
<summary>
A public field that can be used to form a linked list.
</summary>
</member>
<member name="T:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec">
<summary>
A PropertySpec represents information needed to fetch a property from
and efficiently. Thus it represents a '.PROP' in a TransformSpec
(and a transformSpec has a list of these).
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.#ctor(System.String,System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec)">
<summary>
Make a new PropertySpec for a property named 'propertyName'.
For convenience you can set he 'next' field to form a linked
list of PropertySpecs.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.Fetch(System.Object)">
<summary>
Given an object fetch the property that this PropertySpec represents.
</summary>
</member>
<member name="F:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.Next">
<summary>
A public field that can be used to form a linked list.
</summary>
</member>
<member name="T:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.PropertyFetch">
<summary>
PropertyFetch is a helper class. It takes a PropertyInfo and then knows how
to efficiently fetch that property from a .NET object (See Fetch method).
It hides some slightly complex generic code.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.PropertyFetch.FetcherForProperty(System.Reflection.PropertyInfo)">
<summary>
Create a property fetcher from a .NET Reflection PropertyInfo class that
represents a property of a particular type.
</summary>
</member>
<member name="M:System.Diagnostics.DiagnosticSourceEventSource.TransformSpec.PropertySpec.PropertyFetch.Fetch(System.Object)">
<summary>
Given an object, fetch the property that this propertyFech represents.
</summary>
</member>
<member name="T:System.Diagnostics.DiagnosticSourceEventSource.CallbackObserver`1">
<summary>
CallbackObserver is a adapter class that creates an observer (which you can pass
to IObservable.Subscribe), and calls the given callback every time the 'next'
operation on the IObserver happens.
</summary>
<typeparam name="T"></typeparam>
</member>
</members>
</doc>

View File

@ -1,52 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>System.Interactive.Async</name>
</assembly>
<members>
<member name="M:System.Collections.Generic.AsyncEnumerator.MoveNext``1(System.Collections.Generic.IAsyncEnumerator{``0})">
<summary>
Advances the enumerator to the next element in the sequence, returning the result asynchronously.
</summary>
<returns>
Task containing the result of the operation: true if the enumerator was successfully advanced
to the next element; false if the enumerator has passed the end of the sequence.
</returns>
</member>
<member name="T:System.Collections.Generic.IAsyncEnumerable`1">
<summary>
Asynchronous version of the IEnumerable&lt;T&gt; interface, allowing elements of the
enumerable sequence to be retrieved asynchronously.
</summary>
<typeparam name="T">Element type.</typeparam>
</member>
<member name="M:System.Collections.Generic.IAsyncEnumerable`1.GetEnumerator">
<summary>
Gets an asynchronous enumerator over the sequence.
</summary>
<returns>Enumerator for asynchronous enumeration over the sequence.</returns>
</member>
<member name="T:System.Collections.Generic.IAsyncEnumerator`1">
<summary>
Asynchronous version of the IEnumerator&lt;T&gt; interface, allowing elements to be
retrieved asynchronously.
</summary>
<typeparam name="T">Element type.</typeparam>
</member>
<member name="M:System.Collections.Generic.IAsyncEnumerator`1.MoveNext(System.Threading.CancellationToken)">
<summary>
Advances the enumerator to the next element in the sequence, returning the result asynchronously.
</summary>
<param name="cancellationToken">Cancellation token that can be used to cancel the operation.</param>
<returns>
Task containing the result of the operation: true if the enumerator was successfully advanced
to the next element; false if the enumerator has passed the end of the sequence.
</returns>
</member>
<member name="P:System.Collections.Generic.IAsyncEnumerator`1.Current">
<summary>
Gets the current element in the iteration.
</summary>
</member>
</members>
</doc>

View File

@ -1,127 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>System.Runtime.CompilerServices.Unsafe</name>
</assembly>
<members>
<member name="T:System.Runtime.CompilerServices.Unsafe">
<summary>
Contains generic, low-level functionality for manipulating pointers.
</summary>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.Read``1(System.Void*)">
<summary>
Reads a value of type <typeparamref name="T"/> from the given location.
</summary>
<typeparam name="T">The type to read.</typeparam>
<param name="source">The location to read from.</param>
<returns>An object of type <typeparamref name="T"/> read from the given location.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.Write``1(System.Void*,``0)">
<summary>
Writes a value of type <typeparamref name="T"/> to the given location.
</summary>
<typeparam name="T">The type of value to write.</typeparam>
<param name="destination">The location to write to.</param>
<param name="value">The value to write.</param>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(System.Void*,``0@)">
<summary>
Copies a value of type <typeparamref name="T"/> to the given location.
</summary>
<typeparam name="T">The type of value to copy.</typeparam>
<param name="destination">The location to copy to.</param>
<param name="source">A reference to the value to copy.</param>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(``0@,System.Void*)">
<summary>
Copies a value of type <typeparamref name="T"/> to the given location.
</summary>
<typeparam name="T">The type of value to copy.</typeparam>
<param name="destination">The location to copy to.</param>
<param name="source">A pointer to the value to copy.</param>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.AsPointer``1(``0@)">
<summary>
Returns a pointer to the given by-ref parameter.
</summary>
<typeparam name="T">The type of object.</typeparam>
<param name="value">The object whose pointer is obtained.</param>
<returns>A pointer to the given value.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.SizeOf``1">
<summary>
Returns the size of an object of the given type parameter.
</summary>
<typeparam name="T">The type of object whose size is retrieved.</typeparam>
<returns>The size of an object of type <typeparamref name="T"/>.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.As``1(System.Object)">
<summary>
Casts the given object to the specified type.
</summary>
<typeparam name="T">The type which the object will be cast to.</typeparam>
<param name="o">The object to cast.</param>
<returns>The original object, casted to the given type.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(System.Void*)">
<summary>
Reinterprets the given location as a reference to a value of type <typeparamref name="T"/>.
</summary>
<typeparam name="T">The type of the interpreted location.</typeparam>
<param name="source">The location of the value to reference.</param>
<returns>A reference to a value of type <typeparamref name="T"/>.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.As``2(``0@)">
<summary>
Reinterprets the given reference as a reference to a value of type <typeparamref name="TTo"/>.
</summary>
<typeparam name="TFrom">The type of reference to reinterpret.</typeparam>
<typeparam name="TTo">The desired type of the reference.</typeparam>
<param name="source">The reference to reinterpret.</param>
<returns>A reference to a value of type <typeparamref name="TTo"/>.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.Int32)">
<summary>
Adds an element offset to the given reference.
</summary>
<typeparam name="T">The type of reference.</typeparam>
<param name="source">The reference to add the offset to.</param>
<param name="elementOffset">The offset to add.</param>
<returns>A new reference that reflects the addition of offset to pointer.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.Int32)">
<summary>
Subtracts an element offset from the given reference.
</summary>
<typeparam name="T">The type of reference.</typeparam>
<param name="source">The reference to subtract the offset from.</param>
<param name="elementOffset">The offset to subtract.</param>
<returns>A new reference that reflects the subraction of offset from pointer.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.AreSame``1(``0@,``0@)">
<summary>
Determines whether the specified references point to the same location.
</summary>
<param name="left">The first reference to compare.</param>
<param name="right">The second reference to compare.</param>
<returns><c>true</c> if <paramref name="left"/> and <paramref name="right"/> point to the same location; otherwise <c>false</c>.</returns>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Void*,System.Void*,System.UInt32)">
<summary>
Copies bytes from the source address to the destination address.
</summary>
<param name="destination">The destination address to copy to.</param>
<param name="source">The source address to copy from.</param>
<param name="byteCount">The number of bytes to copy.</param>
</member>
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Void*,System.Byte,System.UInt32)">
<summary>
Initializes a block of memory at the given location with a given initial value.
</summary>
<param name="startAddress">The address of the start of the memory block to initialize.</param>
<param name="value">The value to initialize the block to.</param>
<param name="byteCount">The number of bytes to initialize.</param>
</member>
</members>
</doc>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,14 +7,14 @@
<framework targetVersion="4.7.2" profile="Full" supportedRuntime="4.0.30319" /> <framework targetVersion="4.7.2" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks> </compatibleFrameworks>
<dependency> <dependency>
<dependentAssembly dependencyType="install" codebase="Diplom B.exe.manifest" size="18124"> <dependentAssembly dependencyType="install" codebase="Diplom B.exe.manifest" size="18125">
<assemblyIdentity name="Diplom B.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> <assemblyIdentity name="Diplom B.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<hash> <hash>
<dsig:Transforms> <dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>A2YboMO/VKXNvGEoR5VQUBq28eBktUVpKjdMd1W/uM8=</dsig:DigestValue> <dsig:DigestValue>oyXd8Y+i3075vPJOGJf5T+Pgn7HHK0OIX94tmXclS/M=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

View File

@ -1 +1 @@
2a0f0db696b73bf5e703b98de8fd281e959b9f8c 8042d1aa590ef38d94afb73e681da8ad91319d00

View File

@ -93,7 +93,6 @@ F:\GIT\Diplom_B\bin\Debug\System.Diagnostics.DiagnosticSource.xml
F:\GIT\Diplom_B\bin\Debug\System.Interactive.Async.xml F:\GIT\Diplom_B\bin\Debug\System.Interactive.Async.xml
F:\GIT\Diplom_B\bin\Debug\System.Runtime.CompilerServices.Unsafe.xml F:\GIT\Diplom_B\bin\Debug\System.Runtime.CompilerServices.Unsafe.xml
F:\GIT\Diplom_B\obj\Debug\Diplom B.csproj.AssemblyReference.cache F:\GIT\Diplom_B\obj\Debug\Diplom B.csproj.AssemblyReference.cache
F:\GIT\Diplom_B\obj\Debug\Diplom_B.FormLogin.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.IzdForm.resources F:\GIT\Diplom_B\obj\Debug\Diplom_B.IzdForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.Properties.Resources.resources F:\GIT\Diplom_B\obj\Debug\Diplom_B.Properties.Resources.resources
F:\GIT\Diplom_B\obj\Debug\Diplom B.csproj.GenerateResource.cache F:\GIT\Diplom_B\obj\Debug\Diplom B.csproj.GenerateResource.cache
@ -114,3 +113,12 @@ D:\GIT\Diplom B\obj\Debug\Diplom_B.LoginForm.resources
D:\GIT\Diplom B\obj\Debug\Diplom_B.ZakazchikForm.resources D:\GIT\Diplom B\obj\Debug\Diplom_B.ZakazchikForm.resources
D:\GIT\Diplom B\obj\Debug\Diplom_B.MainForm.resources D:\GIT\Diplom B\obj\Debug\Diplom_B.MainForm.resources
D:\GIT\Diplom B\obj\Debug\Diplom_B.PostForm.resources D:\GIT\Diplom B\obj\Debug\Diplom_B.PostForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.DogForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.PostForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.ZakForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.IzvForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.LoginForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.MainForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.SetForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.DocForm.resources
F:\GIT\Diplom_B\obj\Debug\Diplom_B.StatForm.resources

Binary file not shown.

View File

@ -42,14 +42,14 @@
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>
<dependency> <dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Diplom B.exe" size="56800"> <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Diplom B.exe" size="118240">
<assemblyIdentity name="Diplom B" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> <assemblyIdentity name="Diplom B" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash> <hash>
<dsig:Transforms> <dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>xggF3+EhBudMrcPEhZtjIsmSeRC5BRtVf0FBIlSMsjw=</dsig:DigestValue> <dsig:DigestValue>keQrH0k2Dy2nZ7dcX/ISaAXD5aWKNBytuppgVp5Ek/8=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,14 +7,14 @@
<framework targetVersion="4.7.2" profile="Full" supportedRuntime="4.0.30319" /> <framework targetVersion="4.7.2" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks> </compatibleFrameworks>
<dependency> <dependency>
<dependentAssembly dependencyType="install" codebase="Diplom B.exe.manifest" size="18124"> <dependentAssembly dependencyType="install" codebase="Diplom B.exe.manifest" size="18125">
<assemblyIdentity name="Diplom B.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> <assemblyIdentity name="Diplom B.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<hash> <hash>
<dsig:Transforms> <dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>2b1QubE+Ze47CBE1wu8wixIqu7deJcA0dNWnAr38KvA=</dsig:DigestValue> <dsig:DigestValue>CVeM/7YjVO0x6aiLLntr+Qd0fx7XST5BU7P1bSdwLV8=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

View File

@ -1 +1 @@
65b149ef12bdbb64fe7f050140b32fb99bf7c528 d6536d84c8642cad13e9d95c09b74606d62defba

View File

@ -43,8 +43,6 @@ F:\GIT\Diplom_B\bin\Release\System.Collections.Immutable.xml
F:\GIT\Diplom_B\bin\Release\System.Diagnostics.DiagnosticSource.xml F:\GIT\Diplom_B\bin\Release\System.Diagnostics.DiagnosticSource.xml
F:\GIT\Diplom_B\bin\Release\System.Interactive.Async.xml F:\GIT\Diplom_B\bin\Release\System.Interactive.Async.xml
F:\GIT\Diplom_B\bin\Release\System.Runtime.CompilerServices.Unsafe.xml F:\GIT\Diplom_B\bin\Release\System.Runtime.CompilerServices.Unsafe.xml
F:\GIT\Diplom_B\obj\Release\Diplom B.csproj.AssemblyReference.cache
F:\GIT\Diplom_B\obj\Release\Diplom_B.FormLogin.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.IzdForm.resources F:\GIT\Diplom_B\obj\Release\Diplom_B.IzdForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.Properties.Resources.resources F:\GIT\Diplom_B\obj\Release\Diplom_B.Properties.Resources.resources
F:\GIT\Diplom_B\obj\Release\Diplom B.csproj.GenerateResource.cache F:\GIT\Diplom_B\obj\Release\Diplom B.csproj.GenerateResource.cache
@ -115,3 +113,12 @@ D:\GIT\Diplom B\obj\Release\Diplom_B.PostForm.resources
D:\GIT\Diplom B\obj\Release\Diplom_B.ZakazchikForm.resources D:\GIT\Diplom B\obj\Release\Diplom_B.ZakazchikForm.resources
D:\GIT\Diplom B\obj\Release\Diplom_B.MainForm.resources D:\GIT\Diplom B\obj\Release\Diplom_B.MainForm.resources
D:\GIT\Diplom B\obj\Release\Diplom_B.DogForm.resources D:\GIT\Diplom B\obj\Release\Diplom_B.DogForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.DogForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.PostForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.ZakForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.IzvForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.LoginForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.MainForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.DocForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.StatForm.resources
F:\GIT\Diplom_B\obj\Release\Diplom_B.SetForm.resources

Binary file not shown.

View File

@ -42,14 +42,14 @@
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>
<dependency> <dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Diplom B.exe" size="63456"> <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Diplom B.exe" size="111584">
<assemblyIdentity name="Diplom B" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> <assemblyIdentity name="Diplom B" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash> <hash>
<dsig:Transforms> <dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>nnyDiRvwfMP5VcD7jutgpMUrDVo1ENlsBCgfQp+ZtCI=</dsig:DigestValue> <dsig:DigestValue>EBGy+GvlJlIHhAWpZKqNDee2ZnlapHcaW+Zkk98G1hw=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

Some files were not shown because too many files have changed in this diff Show More