Final files

This commit is contained in:
2026-06-18 18:34:05 +03:30
commit 5c3c70c121
82 changed files with 11712 additions and 0 deletions

22
MyShop.sln Normal file
View File

@@ -0,0 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyShop", "MyShop\MyShop.csproj", "{0A9689AD-3745-42B7-8187-97A99CF65480}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0A9689AD-3745-42B7-8187-97A99CF65480}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0A9689AD-3745-42B7-8187-97A99CF65480}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A9689AD-3745-42B7-8187-97A99CF65480}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A9689AD-3745-42B7-8187-97A99CF65480}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

BIN
MyShop.v12.suo Normal file

Binary file not shown.

102
MyShop/AGENTS.md Normal file
View File

@@ -0,0 +1,102 @@
# AGENTS.md
## هدف پروژه
این پروژه یک برنامه **Windows Forms** با **.NET Framework 4.5** و ساختار کلاسیک (non-SDK) است.
فایل پروژه: `MyShop.csproj`
فرم اصلی فعلی: `Form1`
پایگاه داده هدف: **Microsoft Access**
---
## قوانین کلی برای Agent (Codex)
1. **سازگاری نسخه‌ای (خیلی مهم)**
- تمام کدها باید با `.NET Framework 4.5` سازگار باشند.
- از سینتکس‌ها و قابلیت‌های جدید C# که ممکن است در ابزارهای قدیمی مشکل ایجاد کنند استفاده نشود.
- فرض بر سازگاری با محیط قدیمی Visual Studio / MSBuild باشد.
2. **زبان کامنت‌ها**
- تمام کامنت‌های کد باید **فارسی** باشند.
- متن‌های توضیحی داخل کد (در صورت نیاز) فارسی نوشته شوند.
3. **ساخت و اجرا**
- ساخت و اجرا از طریق **Visual Studio** انجام می‌شود.
- تغییراتی که نیازمند ابزار خارج از روال عادی Visual Studio هستند اعمال نشود مگر با درخواست صریح.
4. **قانون تغییرات**
- تغییرات باید **حداقلی، دقیق و قابل‌ردیابی** باشند.
- از بازنویسی گسترده‌ی فایل‌ها بدون نیاز خودداری شود.
- قبل از اعمال تغییرات پرریسک، توضیح کوتاه از اثر تغییر ارائه شود.
---
## قوانین مربوط به WinForms و Designer
1. فایل‌های زیر جزو ساختار اصلی WinForms هستند:
- `Form1.cs`
- `Form1.Designer.cs`
- `Program.cs`
- `Properties/*`
2. **ویرایش `*.Designer.cs` مجاز است**، اما با دقت:
- فقط تغییرات لازم برای پیاده‌سازی UI خواسته‌شده انجام شود.
- نام کنترل‌ها معنی‌دار و پایدار انتخاب شوند.
- از حذف/تغییر ناخواسته تنظیمات فرم و کنترل‌ها جلوگیری شود.
3. اگر UI بر اساس تصویر/طرح خواسته شد:
- ابتدا لیست کنترل‌های لازم، نام‌ها و نوع‌ها مشخص شود.
- سپس `InitializeComponent` به‌صورت منظم و قابل‌فهم تولید/ویرایش شود.
- در صورت ابهام در فاصله‌ها/ابعاد، از مقادیر منطقی و قابل اصلاح استفاده شود.
---
## قوانین پایگاه داده (Microsoft Access)
1. اتصال دیتابیس با `OleDb` انجام شود (سازگار با .NET Framework 4.5).
2. از **Query پارامتری** استفاده شود (جلوگیری از خطا و Injection).
3. Connection string در `App.config` نگهداری شود (نه هاردکد داخل فرم).
4. عملیات دیتابیس:
- `using` برای `OleDbConnection`, `OleDbCommand`, `OleDbDataAdapter` رعایت شود.
- مدیریت خطا با `try/catch` انجام شود و پیام مناسب به کاربر نمایش داده شود.
5. نام جدول/فیلدها در صورت استفاده از کلمات رزرو‌شده Access، با براکت `[]` مدیریت شوند.
---
## سبک کدنویسی
1. نام‌گذاری:
- کلاس‌ها و متدها: واضح و معنی‌دار.
- کنترل‌ها: پیشوند مناسب (مثل `txtName`, `btnSave`, `dgvProducts`).
2. متدها کوتاه و مسئولیت‌محور باشند.
3. منطق دیتابیس تا حد ممکن از کد مستقیم UI جدا شود (در حد سبک پروژه).
4. از افزودن وابستگی/NuGet جدید بدون درخواست صریح خودداری شود.
5. از تغییر خودکار فایل‌های `Properties/*.Designer.cs` مگر در صورت نیاز مشخص خودداری شود.
---
## موارد خارج از محدوده (مگر با درخواست کاربر)
- افزودن فریم‌ورک‌های جدید (WPF, ASP.NET, EF جدید و ...)
- مهاجرت پروژه به نسخه‌های جدید .NET
- افزودن زیرساخت تست خودکار
- تغییرات معماری سنگین
---
## چک‌لیست قبل از تحویل تغییر
- [ ] کد با .NET Framework 4.5 سازگار است.
- [ ] کامنت‌ها فارسی هستند.
- [ ] تغییرات حداقلی و مرتبط با درخواست هستند.
- [ ] در صورت استفاده از Access، کوئری‌ها پارامتری هستند.
- [ ] فایل‌های Designer بدون آسیب به ساختار فرم ویرایش شده‌اند.
- [ ] برنامه در Visual Studio قابل Build/Run است.
---
## قالب پاسخ‌دهی Agent برای هر تسک
1. خلاصه کوتاه از کار انجام‌شده
2. لیست فایل‌های تغییرکرده
3. نکات مهم/ریسک‌ها
4. اگر ابهام وجود داشت: سوال شفاف قبل از اعمال تغییر نهایی

16
MyShop/App.config Normal file
View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="MyShop.Properties.Settings.MyShopConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
<add name="MyShop.Properties.Settings.MyShopConnectionString1"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

2
MyShop/Log.txt Normal file
View File

@@ -0,0 +1,2 @@
ورود ناموفق: 2026/06/09 13:47:15 - نام کاربری وارد شده: admin
ورود مدیر: 2026/06/09 13:47:56

226
MyShop/LoginForm.Designer.cs generated Normal file
View File

@@ -0,0 +1,226 @@
namespace MyShop
{
partial class LoginForm
{
/// <summary>
/// متغیرهای مورد نیاز Designer
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// آزادسازی منابع استفاده شده
/// </summary>
/// <param name="disposing">اگر true باشد منابع مدیریت‌شده آزاد می‌شوند.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region کد تولید شده توسط Windows Form Designer
/// <summary>
/// متد مورد نیاز Designer
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.pnlHeader = new System.Windows.Forms.Panel();
this.lblTitle = new System.Windows.Forms.Label();
this.pnlContent = new System.Windows.Forms.Panel();
this.chkRememberUserName = new System.Windows.Forms.CheckBox();
this.txtPassword = new System.Windows.Forms.TextBox();
this.txtUserName = new System.Windows.Forms.TextBox();
this.lblPassword = new System.Windows.Forms.Label();
this.lblUserName = new System.Windows.Forms.Label();
this.picUser = new System.Windows.Forms.PictureBox();
this.btnExit = new System.Windows.Forms.Button();
this.btnLogin = new System.Windows.Forms.Button();
this.myShopDataSet = new MyShop.MyShopDataSet();
this.usersBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.usersTableAdapter = new MyShop.MyShopDataSetTableAdapters.UsersTableAdapter();
this.pnlHeader.SuspendLayout();
this.pnlContent.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.picUser)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myShopDataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
this.SuspendLayout();
//
// pnlHeader
//
this.pnlHeader.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(36)))), ((int)(((byte)(96)))));
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new System.Drawing.Point(0, 0);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new System.Drawing.Size(420, 42);
this.pnlHeader.TabIndex = 0;
//
// lblTitle
//
this.lblTitle.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblTitle.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
this.lblTitle.ForeColor = System.Drawing.Color.White;
this.lblTitle.Location = new System.Drawing.Point(0, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(420, 42);
this.lblTitle.TabIndex = 0;
this.lblTitle.Text = "ورود به برنامه فروشگاه";
this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pnlContent
//
this.pnlContent.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(231)))), ((int)(((byte)(240)))));
this.pnlContent.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pnlContent.Controls.Add(this.chkRememberUserName);
this.pnlContent.Controls.Add(this.txtPassword);
this.pnlContent.Controls.Add(this.txtUserName);
this.pnlContent.Controls.Add(this.lblPassword);
this.pnlContent.Controls.Add(this.lblUserName);
this.pnlContent.Controls.Add(this.picUser);
this.pnlContent.Location = new System.Drawing.Point(14, 54);
this.pnlContent.Name = "pnlContent";
this.pnlContent.Size = new System.Drawing.Size(392, 150);
this.pnlContent.TabIndex = 1;
//
// chkRememberUserName
//
this.chkRememberUserName.AutoSize = true;
this.chkRememberUserName.Location = new System.Drawing.Point(176, 112);
this.chkRememberUserName.Name = "chkRememberUserName";
this.chkRememberUserName.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.chkRememberUserName.Size = new System.Drawing.Size(126, 21);
this.chkRememberUserName.TabIndex = 5;
this.chkRememberUserName.Text = "ذخیره نام کاربری";
this.chkRememberUserName.UseVisualStyleBackColor = true;
//
// txtPassword
//
this.txtPassword.Location = new System.Drawing.Point(118, 78);
this.txtPassword.Name = "txtPassword";
this.txtPassword.PasswordChar = '*';
this.txtPassword.Size = new System.Drawing.Size(200, 24);
this.txtPassword.TabIndex = 4;
//
// txtUserName
//
this.txtUserName.Location = new System.Drawing.Point(118, 31);
this.txtUserName.Name = "txtUserName";
this.txtUserName.Size = new System.Drawing.Size(200, 24);
this.txtUserName.TabIndex = 3;
//
// lblPassword
//
this.lblPassword.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
this.lblPassword.Location = new System.Drawing.Point(315, 80);
this.lblPassword.Name = "lblPassword";
this.lblPassword.Size = new System.Drawing.Size(68, 18);
this.lblPassword.TabIndex = 2;
this.lblPassword.Text = "گذرواژه:";
this.lblPassword.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblUserName
//
this.lblUserName.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
this.lblUserName.Location = new System.Drawing.Point(315, 33);
this.lblUserName.Name = "lblUserName";
this.lblUserName.Size = new System.Drawing.Size(68, 18);
this.lblUserName.TabIndex = 1;
this.lblUserName.Text = "نام کاربری:";
this.lblUserName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// picUser
//
this.picUser.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(199)))), ((int)(((byte)(238)))), ((int)(((byte)(244)))));
this.picUser.Image = global::MyShop.Properties.Resources.LoginIcon;
this.picUser.Location = new System.Drawing.Point(17, 12);
this.picUser.Name = "picUser";
this.picUser.Size = new System.Drawing.Size(92, 121);
this.picUser.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.picUser.TabIndex = 0;
this.picUser.TabStop = false;
//
// btnExit
//
this.btnExit.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
this.btnExit.Location = new System.Drawing.Point(14, 214);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(142, 30);
this.btnExit.TabIndex = 2;
this.btnExit.Text = "خروج";
this.btnExit.UseVisualStyleBackColor = true;
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
//
// btnLogin
//
this.btnLogin.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
this.btnLogin.Location = new System.Drawing.Point(264, 214);
this.btnLogin.Name = "btnLogin";
this.btnLogin.Size = new System.Drawing.Size(142, 30);
this.btnLogin.TabIndex = 3;
this.btnLogin.Text = "ورود";
this.btnLogin.UseVisualStyleBackColor = true;
this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
//
// myShopDataSet
//
this.myShopDataSet.DataSetName = "MyShopDataSet";
this.myShopDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// usersBindingSource
//
this.usersBindingSource.DataMember = "Users";
this.usersBindingSource.DataSource = this.myShopDataSet;
//
// usersTableAdapter
//
this.usersTableAdapter.ClearBeforeFill = true;
//
// LoginForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(191)))), ((int)(((byte)(229)))));
this.ClientSize = new System.Drawing.Size(420, 258);
this.Controls.Add(this.btnLogin);
this.Controls.Add(this.btnExit);
this.Controls.Add(this.pnlContent);
this.Controls.Add(this.pnlHeader);
this.Font = new System.Drawing.Font("Tahoma", 8.25F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "LoginForm";
this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ورود";
this.pnlHeader.ResumeLayout(false);
this.pnlContent.ResumeLayout(false);
this.pnlContent.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.picUser)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myShopDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel pnlHeader;
private System.Windows.Forms.Label lblTitle;
private System.Windows.Forms.Panel pnlContent;
private System.Windows.Forms.CheckBox chkRememberUserName;
private System.Windows.Forms.TextBox txtPassword;
private System.Windows.Forms.TextBox txtUserName;
private System.Windows.Forms.Label lblPassword;
private System.Windows.Forms.Label lblUserName;
private System.Windows.Forms.PictureBox picUser;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Button btnLogin;
private MyShopDataSet myShopDataSet;
private System.Windows.Forms.BindingSource usersBindingSource;
private MyShopDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
}
}

95
MyShop/LoginForm.cs Normal file
View File

@@ -0,0 +1,95 @@
using System;
using System.IO;
using System.Windows.Forms;
namespace MyShop
{
public partial class LoginForm : Form
{
public bool succeeded;
public string CurrentUserName;
public LoginForm()
{
InitializeComponent();
LoadSavedUserName();
}
private void LoadSavedUserName()
{
txtUserName.Text = Properties.Settings.Default.SavedUserName;
chkRememberUserName.Checked = txtUserName.Text.Length > 0;
}
private void btnLogin_Click(object sender, EventArgs e)
{
usersTableAdapter.FillByUserNameAndPass(myShopDataSet.Users, txtUserName.Text, txtPassword.Text);
if (myShopDataSet.Users.Rows.Count > 0)
{
SaveUserName();
CurrentUserName = txtUserName.Text;
succeeded = true;
MainForm mainForm = new MainForm(CurrentUserName);
mainForm.FormClosed += new FormClosedEventHandler(MainForm_FormClosed);
mainForm.Show();
this.Hide();
}
else
{
WriteFailedLoginLog(txtUserName.Text);
MessageBox.Show("خطا: نام کاربری یا گذرواژه صحیح نیست.", "خطا", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void btnExit_Click(object sender, EventArgs e)
{
succeeded = false;
this.Close();
}
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
{
this.Close();
}
private void WriteFailedLoginLog(string userName)
{
string logPath;
string logText;
logPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Log.txt");
logText = "ورود ناموفق: " + DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss") +
" - نام کاربری وارد شده: " + userName + Environment.NewLine;
try
{
File.AppendAllText(logPath, logText, System.Text.Encoding.UTF8);
}
catch
{
MessageBox.Show("خطا در ثبت ورود ناموفق در پرونده Log.txt", "خطا", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void SaveUserName()
{
if (chkRememberUserName.Checked)
{
Properties.Settings.Default.SavedUserName = txtUserName.Text;
}
else
{
Properties.Settings.Default.SavedUserName = "";
}
Properties.Settings.Default.Save();
}
private void usersBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
}
}
}

129
MyShop/LoginForm.resx Normal file
View File

@@ -0,0 +1,129 @@
<?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="myShopDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="usersBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>183, 17</value>
</metadata>
<metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>373, 17</value>
</metadata>
</root>

BIN
MyShop/LoginIcon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

1461
MyShop/MainForm.Designer.cs generated Normal file

File diff suppressed because it is too large Load Diff

1300
MyShop/MainForm.cs Normal file

File diff suppressed because it is too large Load Diff

138
MyShop/MainForm.resx Normal file
View File

@@ -0,0 +1,138 @@
<?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="goodsBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>642, 17</value>
</metadata>
<metadata name="myShopDataSet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>468, 17</value>
</metadata>
<metadata name="myShopDataSet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>468, 17</value>
</metadata>
<metadata name="customersBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="goodsTableAdapter1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 60</value>
</metadata>
<metadata name="customersTableAdapter1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>242, 17</value>
</metadata>
</root>

125
MyShop/MyShop.csproj Normal file
View File

@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0A9689AD-3745-42B7-8187-97A99CF65480}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MyShop</RootNamespace>
<AssemblyName>MyShop</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="LoginForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="LoginForm.Designer.cs">
<DependentUpon>LoginForm.cs</DependentUpon>
</Compile>
<Compile Include="MainForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="MyShopDataSetExtensions.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="MyShopDataSet1.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>MyShopDataSet1.xsd</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="LoginForm.resx">
<DependentUpon>LoginForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="MyShopDataSet1.xsc">
<DependentUpon>MyShopDataSet1.xsd</DependentUpon>
</None>
<None Include="MyShopDataSet1.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>MyShopDataSet1.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="MyShopDataSet1.xss">
<DependentUpon>MyShopDataSet1.xsd</DependentUpon>
</None>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="db\MyShop.mdb">
<Link>MyShop.mdb</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="LoginIcon.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

BIN
MyShop/MyShop.mdb Normal file

Binary file not shown.

1538
MyShop/MyShopDataSet.Designer.cs generated Normal file

File diff suppressed because it is too large Load Diff

1
MyShop/MyShopDataSet.xsc Normal file
View File

@@ -0,0 +1 @@

101
MyShop/MyShopDataSet.xsd Normal file
View File

@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MyShopDataSet" targetNamespace="http://tempuri.org/MyShopDataSet.xsd" xmlns:mstns="http://tempuri.org/MyShopDataSet.xsd" xmlns="http://tempuri.org/MyShopDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MyShopConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MyShopConnectionString (Settings)" PropertyReference="ApplicationSettings.MyShop.Properties.Settings.GlobalReference.Default.MyShopConnectionString" Provider="System.Data.OleDb" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GoodsTableAdapter" GeneratorDataComponentClassName="GoodsTableAdapter" Name="Goods" UserDataComponentName="GoodsTableAdapter">
<MainSource>
<DbSource ConnectionRef="MyShopConnectionString (Settings)" DbObjectName="Goods" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM `Goods` WHERE ((`GoodsCode` = ?) AND ((? = 1 AND `GoodsName` IS NULL) OR (`GoodsName` = ?)) AND ((? = 1 AND `GoodsUnitPrice` IS NULL) OR (`GoodsUnitPrice` = ?)) AND ((? = 1 AND `GoodsStock` IS NULL) OR (`GoodsStock` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_GoodsName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO `Goods` (`GoodsName`, `GoodsUnitPrice`, `GoodsStock`) VALUES (?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="GoodsName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT GoodsCode, GoodsName, GoodsUnitPrice, GoodsStock FROM Goods</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE `Goods` SET `GoodsName` = ?, `GoodsUnitPrice` = ?, `GoodsStock` = ? WHERE ((`GoodsCode` = ?) AND ((? = 1 AND `GoodsName` IS NULL) OR (`GoodsName` = ?)) AND ((? = 1 AND `GoodsUnitPrice` IS NULL) OR (`GoodsUnitPrice` = ?)) AND ((? = 1 AND `GoodsStock` IS NULL) OR (`GoodsStock` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="GoodsName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_GoodsName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="GoodsCode" DataSetColumn="GoodsCode" />
<Mapping SourceColumn="GoodsName" DataSetColumn="GoodsName" />
<Mapping SourceColumn="GoodsUnitPrice" DataSetColumn="GoodsUnitPrice" />
<Mapping SourceColumn="GoodsStock" DataSetColumn="GoodsStock" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="MyShopDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="MyShopDataSet" msprop:Generator_UserDSName="MyShopDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Goods" msprop:Generator_TableClassName="GoodsDataTable" msprop:Generator_TableVarName="tableGoods" msprop:Generator_TablePropName="Goods" msprop:Generator_RowDeletingName="GoodsRowDeleting" msprop:Generator_RowChangingName="GoodsRowChanging" msprop:Generator_RowEvHandlerName="GoodsRowChangeEventHandler" msprop:Generator_RowDeletedName="GoodsRowDeleted" msprop:Generator_UserTableName="Goods" msprop:Generator_RowChangedName="GoodsRowChanged" msprop:Generator_RowEvArgName="GoodsRowChangeEvent" msprop:Generator_RowClassName="GoodsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="GoodsCode" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnGoodsCode" msprop:Generator_ColumnPropNameInRow="GoodsCode" msprop:Generator_ColumnPropNameInTable="GoodsCodeColumn" msprop:Generator_UserColumnName="GoodsCode" type="xs:int" />
<xs:element name="GoodsName" msprop:Generator_ColumnVarNameInTable="columnGoodsName" msprop:Generator_ColumnPropNameInRow="GoodsName" msprop:Generator_ColumnPropNameInTable="GoodsNameColumn" msprop:Generator_UserColumnName="GoodsName" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="GoodsUnitPrice" msprop:Generator_ColumnVarNameInTable="columnGoodsUnitPrice" msprop:Generator_ColumnPropNameInRow="GoodsUnitPrice" msprop:Generator_ColumnPropNameInTable="GoodsUnitPriceColumn" msprop:Generator_UserColumnName="GoodsUnitPrice" type="xs:int" minOccurs="0" />
<xs:element name="GoodsStock" msprop:Generator_ColumnVarNameInTable="columnGoodsStock" msprop:Generator_ColumnPropNameInRow="GoodsStock" msprop:Generator_ColumnPropNameInTable="GoodsStockColumn" msprop:Generator_UserColumnName="GoodsStock" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Goods" />
<xs:field xpath="mstns:GoodsCode" />
</xs:unique>
</xs:element>
</xs:schema>

1
MyShop/MyShopDataSet.xss Normal file
View File

@@ -0,0 +1 @@

5100
MyShop/MyShopDataSet1.Designer.cs generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@

408
MyShop/MyShopDataSet1.xsd Normal file
View File

@@ -0,0 +1,408 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MyShopDataSet" targetNamespace="http://tempuri.org/MyShopDataSet1.xsd" xmlns:mstns="http://tempuri.org/MyShopDataSet1.xsd" xmlns="http://tempuri.org/MyShopDataSet1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MyShopConnectionString1" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MyShopConnectionString1 (Settings)" PropertyReference="ApplicationSettings.MyShop.Properties.Settings.GlobalReference.Default.MyShopConnectionString1" Provider="System.Data.OleDb" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CustomersTableAdapter" GeneratorDataComponentClassName="CustomersTableAdapter" Name="Customers" UserDataComponentName="CustomersTableAdapter">
<MainSource>
<DbSource ConnectionRef="MyShopConnectionString1 (Settings)" DbObjectName="Customers" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM `Customers` WHERE ((`CustomerCode` = ?) AND ((? = 1 AND `CustomerFirstName` IS NULL) OR (`CustomerFirstName` = ?)) AND ((? = 1 AND `CustomerLastName` IS NULL) OR (`CustomerLastName` = ?)) AND ((? = 1 AND `CustomerMobile` IS NULL) OR (`CustomerMobile` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_CustomerCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_CustomerFirstName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerFirstName" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_CustomerFirstName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerFirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_CustomerLastName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerLastName" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_CustomerLastName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerLastName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_CustomerMobile" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerMobile" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_CustomerMobile" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerMobile" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO `Customers` (`CustomerFirstName`, `CustomerLastName`, `CustomerMobile`) VALUES (?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerFirstName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerFirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerLastName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerLastName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerMobile" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerMobile" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CustomerCode, CustomerFirstName, CustomerLastName, CustomerMobile FROM Customers</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE `Customers` SET `CustomerFirstName` = ?, `CustomerLastName` = ?, `CustomerMobile` = ? WHERE ((`CustomerCode` = ?) AND ((? = 1 AND `CustomerFirstName` IS NULL) OR (`CustomerFirstName` = ?)) AND ((? = 1 AND `CustomerLastName` IS NULL) OR (`CustomerLastName` = ?)) AND ((? = 1 AND `CustomerMobile` IS NULL) OR (`CustomerMobile` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerFirstName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerFirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerLastName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerLastName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="CustomerMobile" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerMobile" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_CustomerCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_CustomerFirstName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerFirstName" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_CustomerFirstName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerFirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_CustomerLastName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerLastName" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_CustomerLastName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerLastName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_CustomerMobile" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerMobile" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_CustomerMobile" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="CustomerMobile" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CustomerCode" DataSetColumn="CustomerCode" />
<Mapping SourceColumn="CustomerFirstName" DataSetColumn="CustomerFirstName" />
<Mapping SourceColumn="CustomerLastName" DataSetColumn="CustomerLastName" />
<Mapping SourceColumn="CustomerMobile" DataSetColumn="CustomerMobile" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FactorItemsTableAdapter" GeneratorDataComponentClassName="FactorItemsTableAdapter" Name="FactorItems" UserDataComponentName="FactorItemsTableAdapter">
<MainSource>
<DbSource ConnectionRef="MyShopConnectionString1 (Settings)" DbObjectName="FactorItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM `FactorItems` WHERE (((? = 1 AND `FactorCode` IS NULL) OR (`FactorCode` = ?)) AND (`GoodsCode` = ?) AND ((? = 1 AND `GoodsAmount` IS NULL) OR (`GoodsAmount` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_FactorCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorCode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_FactorCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsAmount" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsAmount" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO `FactorItems` (`FactorCode`, `GoodsCode`, `GoodsAmount`) VALUES (?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="FactorCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorCode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsCode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsAmount" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT FactorCode, GoodsCode, GoodsAmount FROM FactorItems</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE `FactorItems` SET `FactorCode` = ?, `GoodsCode` = ?, `GoodsAmount` = ? WHERE (((? = 1 AND `FactorCode` IS NULL) OR (`FactorCode` = ?)) AND (`GoodsCode` = ?) AND ((? = 1 AND `GoodsAmount` IS NULL) OR (`GoodsAmount` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="FactorCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorCode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsCode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsAmount" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_FactorCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorCode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_FactorCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsAmount" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsAmount" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="FactorCode" DataSetColumn="FactorCode" />
<Mapping SourceColumn="GoodsCode" DataSetColumn="GoodsCode" />
<Mapping SourceColumn="GoodsAmount" DataSetColumn="GoodsAmount" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FactorsTableAdapter" GeneratorDataComponentClassName="FactorsTableAdapter" Name="Factors" UserDataComponentName="FactorsTableAdapter">
<MainSource>
<DbSource ConnectionRef="MyShopConnectionString1 (Settings)" DbObjectName="Factors" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM `Factors` WHERE ((`FactorCode` = ?) AND ((? = 1 AND `CustomerCode` IS NULL) OR (`CustomerCode` = ?)) AND ((? = 1 AND `FactorDate` IS NULL) OR (`FactorDate` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_FactorCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_CustomerCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_CustomerCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_FactorDate" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorDate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="Original_FactorDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="FactorDate" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO `Factors` (`CustomerCode`, `FactorDate`) VALUES (?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="CustomerCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="FactorDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="FactorDate" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT FactorCode, CustomerCode, FactorDate FROM Factors</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE `Factors` SET `CustomerCode` = ?, `FactorDate` = ? WHERE ((`FactorCode` = ?) AND ((? = 1 AND `CustomerCode` IS NULL) OR (`CustomerCode` = ?)) AND ((? = 1 AND `FactorDate` IS NULL) OR (`FactorDate` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="CustomerCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="FactorDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="FactorDate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_FactorCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_CustomerCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_CustomerCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_FactorDate" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="FactorDate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="Original_FactorDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="FactorDate" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="FactorCode" DataSetColumn="FactorCode" />
<Mapping SourceColumn="CustomerCode" DataSetColumn="CustomerCode" />
<Mapping SourceColumn="FactorDate" DataSetColumn="FactorDate" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GoodsTableAdapter" GeneratorDataComponentClassName="GoodsTableAdapter" Name="Goods" UserDataComponentName="GoodsTableAdapter">
<MainSource>
<DbSource ConnectionRef="MyShopConnectionString1 (Settings)" DbObjectName="Goods" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM `Goods` WHERE ((`GoodsCode` = ?) AND ((? = 1 AND `GoodsName` IS NULL) OR (`GoodsName` = ?)) AND ((? = 1 AND `GoodsUnitPrice` IS NULL) OR (`GoodsUnitPrice` = ?)) AND ((? = 1 AND `GoodsStock` IS NULL) OR (`GoodsStock` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_GoodsName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO `Goods` (`GoodsName`, `GoodsUnitPrice`, `GoodsStock`) VALUES (?, ?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="GoodsName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT GoodsCode, GoodsName, GoodsUnitPrice, GoodsStock FROM Goods</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE `Goods` SET `GoodsName` = ?, `GoodsUnitPrice` = ?, `GoodsStock` = ? WHERE ((`GoodsCode` = ?) AND ((? = 1 AND `GoodsName` IS NULL) OR (`GoodsName` = ?)) AND ((? = 1 AND `GoodsUnitPrice` IS NULL) OR (`GoodsUnitPrice` = ?)) AND ((? = 1 AND `GoodsStock` IS NULL) OR (`GoodsStock` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="GoodsName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsName" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_GoodsName" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="GoodsName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsUnitPrice" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsUnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_GoodsStock" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="GoodsStock" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="GoodsCode" DataSetColumn="GoodsCode" />
<Mapping SourceColumn="GoodsName" DataSetColumn="GoodsName" />
<Mapping SourceColumn="GoodsUnitPrice" DataSetColumn="GoodsUnitPrice" />
<Mapping SourceColumn="GoodsStock" DataSetColumn="GoodsStock" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UsersTableAdapter" GeneratorDataComponentClassName="UsersTableAdapter" Name="Users" UserDataComponentName="UsersTableAdapter">
<MainSource>
<DbSource ConnectionRef="MyShopConnectionString1 (Settings)" DbObjectName="Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM `Users` WHERE ((`UserCode` = ?) AND ((? = 1 AND `Username` IS NULL) OR (`Username` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_UserCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="UserCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Username" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_Username" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO `Users` (`Username`, `Password`) VALUES (?, ?)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Username" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Password" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT UserCode, Username, [Password] FROM Users</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE `Users` SET `Username` = ?, `Password` = ? WHERE ((`UserCode` = ?) AND ((? = 1 AND `Username` IS NULL) OR (`Username` = ?)))</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Username" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Password" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_UserCode" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="UserCode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Username" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_Username" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Username" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="UserCode" DataSetColumn="UserCode" />
<Mapping SourceColumn="Username" DataSetColumn="Username" />
<Mapping SourceColumn="Password" DataSetColumn="Password" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="MyShopDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="MyShopDataSet" msprop:Generator_UserDSName="MyShopDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Customers" msprop:Generator_TableClassName="CustomersDataTable" msprop:Generator_TableVarName="tableCustomers" msprop:Generator_TablePropName="Customers" msprop:Generator_RowDeletingName="CustomersRowDeleting" msprop:Generator_RowChangingName="CustomersRowChanging" msprop:Generator_RowEvHandlerName="CustomersRowChangeEventHandler" msprop:Generator_RowDeletedName="CustomersRowDeleted" msprop:Generator_UserTableName="Customers" msprop:Generator_RowChangedName="CustomersRowChanged" msprop:Generator_RowEvArgName="CustomersRowChangeEvent" msprop:Generator_RowClassName="CustomersRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CustomerCode" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnCustomerCode" msprop:Generator_ColumnPropNameInRow="CustomerCode" msprop:Generator_ColumnPropNameInTable="CustomerCodeColumn" msprop:Generator_UserColumnName="CustomerCode" type="xs:int" />
<xs:element name="CustomerFirstName" msprop:Generator_ColumnVarNameInTable="columnCustomerFirstName" msprop:Generator_ColumnPropNameInRow="CustomerFirstName" msprop:Generator_ColumnPropNameInTable="CustomerFirstNameColumn" msprop:Generator_UserColumnName="CustomerFirstName" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CustomerLastName" msprop:Generator_ColumnVarNameInTable="columnCustomerLastName" msprop:Generator_ColumnPropNameInRow="CustomerLastName" msprop:Generator_ColumnPropNameInTable="CustomerLastNameColumn" msprop:Generator_UserColumnName="CustomerLastName" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CustomerMobile" msprop:Generator_ColumnVarNameInTable="columnCustomerMobile" msprop:Generator_ColumnPropNameInRow="CustomerMobile" msprop:Generator_ColumnPropNameInTable="CustomerMobileColumn" msprop:Generator_UserColumnName="CustomerMobile" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FactorItems" msprop:Generator_TableClassName="FactorItemsDataTable" msprop:Generator_TableVarName="tableFactorItems" msprop:Generator_TablePropName="FactorItems" msprop:Generator_RowDeletingName="FactorItemsRowDeleting" msprop:Generator_RowChangingName="FactorItemsRowChanging" msprop:Generator_RowEvHandlerName="FactorItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="FactorItemsRowDeleted" msprop:Generator_UserTableName="FactorItems" msprop:Generator_RowChangedName="FactorItemsRowChanged" msprop:Generator_RowEvArgName="FactorItemsRowChangeEvent" msprop:Generator_RowClassName="FactorItemsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="FactorCode" msprop:Generator_ColumnVarNameInTable="columnFactorCode" msprop:Generator_ColumnPropNameInRow="FactorCode" msprop:Generator_ColumnPropNameInTable="FactorCodeColumn" msprop:Generator_UserColumnName="FactorCode" type="xs:int" minOccurs="0" />
<xs:element name="GoodsCode" msprop:Generator_ColumnVarNameInTable="columnGoodsCode" msprop:Generator_ColumnPropNameInRow="GoodsCode" msprop:Generator_ColumnPropNameInTable="GoodsCodeColumn" msprop:Generator_UserColumnName="GoodsCode" type="xs:int" />
<xs:element name="GoodsAmount" msprop:Generator_ColumnVarNameInTable="columnGoodsAmount" msprop:Generator_ColumnPropNameInRow="GoodsAmount" msprop:Generator_ColumnPropNameInTable="GoodsAmountColumn" msprop:Generator_UserColumnName="GoodsAmount" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Factors" msprop:Generator_TableClassName="FactorsDataTable" msprop:Generator_TableVarName="tableFactors" msprop:Generator_TablePropName="Factors" msprop:Generator_RowDeletingName="FactorsRowDeleting" msprop:Generator_RowChangingName="FactorsRowChanging" msprop:Generator_RowEvHandlerName="FactorsRowChangeEventHandler" msprop:Generator_RowDeletedName="FactorsRowDeleted" msprop:Generator_UserTableName="Factors" msprop:Generator_RowChangedName="FactorsRowChanged" msprop:Generator_RowEvArgName="FactorsRowChangeEvent" msprop:Generator_RowClassName="FactorsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="FactorCode" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnFactorCode" msprop:Generator_ColumnPropNameInRow="FactorCode" msprop:Generator_ColumnPropNameInTable="FactorCodeColumn" msprop:Generator_UserColumnName="FactorCode" type="xs:int" />
<xs:element name="CustomerCode" msprop:Generator_ColumnVarNameInTable="columnCustomerCode" msprop:Generator_ColumnPropNameInRow="CustomerCode" msprop:Generator_ColumnPropNameInTable="CustomerCodeColumn" msprop:Generator_UserColumnName="CustomerCode" type="xs:int" minOccurs="0" />
<xs:element name="FactorDate" msprop:Generator_ColumnVarNameInTable="columnFactorDate" msprop:Generator_ColumnPropNameInRow="FactorDate" msprop:Generator_ColumnPropNameInTable="FactorDateColumn" msprop:Generator_UserColumnName="FactorDate" type="xs:dateTime" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Goods" msprop:Generator_TableClassName="GoodsDataTable" msprop:Generator_TableVarName="tableGoods" msprop:Generator_TablePropName="Goods" msprop:Generator_RowDeletingName="GoodsRowDeleting" msprop:Generator_RowChangingName="GoodsRowChanging" msprop:Generator_RowEvHandlerName="GoodsRowChangeEventHandler" msprop:Generator_RowDeletedName="GoodsRowDeleted" msprop:Generator_UserTableName="Goods" msprop:Generator_RowChangedName="GoodsRowChanged" msprop:Generator_RowEvArgName="GoodsRowChangeEvent" msprop:Generator_RowClassName="GoodsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="GoodsCode" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnGoodsCode" msprop:Generator_ColumnPropNameInRow="GoodsCode" msprop:Generator_ColumnPropNameInTable="GoodsCodeColumn" msprop:Generator_UserColumnName="GoodsCode" type="xs:int" />
<xs:element name="GoodsName" msprop:Generator_ColumnVarNameInTable="columnGoodsName" msprop:Generator_ColumnPropNameInRow="GoodsName" msprop:Generator_ColumnPropNameInTable="GoodsNameColumn" msprop:Generator_UserColumnName="GoodsName" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="GoodsUnitPrice" msprop:Generator_ColumnVarNameInTable="columnGoodsUnitPrice" msprop:Generator_ColumnPropNameInRow="GoodsUnitPrice" msprop:Generator_ColumnPropNameInTable="GoodsUnitPriceColumn" msprop:Generator_UserColumnName="GoodsUnitPrice" type="xs:int" minOccurs="0" />
<xs:element name="GoodsStock" msprop:Generator_ColumnVarNameInTable="columnGoodsStock" msprop:Generator_ColumnPropNameInRow="GoodsStock" msprop:Generator_ColumnPropNameInTable="GoodsStockColumn" msprop:Generator_UserColumnName="GoodsStock" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Users" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers" msprop:Generator_TablePropName="Users" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_UserTableName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_RowClassName="UsersRow">
<xs:complexType>
<xs:sequence>
<xs:element name="UserCode" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnUserCode" msprop:Generator_ColumnPropNameInRow="UserCode" msprop:Generator_ColumnPropNameInTable="UserCodeColumn" msprop:Generator_UserColumnName="UserCode" type="xs:int" />
<xs:element name="Username" msprop:Generator_ColumnVarNameInTable="columnUsername" msprop:Generator_ColumnPropNameInRow="Username" msprop:Generator_ColumnPropNameInTable="UsernameColumn" msprop:Generator_UserColumnName="Username" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Password" msprop:Generator_ColumnVarNameInTable="columnPassword" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_UserColumnName="Password" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="536870910" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Customers" />
<xs:field xpath="mstns:CustomerCode" />
</xs:unique>
<xs:unique name="FactorItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:FactorItems" />
<xs:field xpath="mstns:GoodsCode" />
</xs:unique>
<xs:unique name="Factors_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Factors" />
<xs:field xpath="mstns:FactorCode" />
</xs:unique>
<xs:unique name="Goods_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Goods" />
<xs:field xpath="mstns:GoodsCode" />
</xs:unique>
<xs:unique name="Users_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Users" />
<xs:field xpath="mstns:UserCode" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FactorsFactorItems" msdata:parent="Factors" msdata:child="FactorItems" msdata:parentkey="FactorCode" msdata:childkey="FactorCode" msprop:Generator_UserChildTable="FactorItems" msprop:Generator_ChildPropName="GetFactorItemsRows" msprop:Generator_UserRelationName="FactorsFactorItems" msprop:Generator_RelationVarName="relationFactorsFactorItems" msprop:Generator_UserParentTable="Factors" msprop:Generator_ParentPropName="FactorsRow" />
<msdata:Relationship name="GoodsFactorItems" msdata:parent="Goods" msdata:child="FactorItems" msdata:parentkey="GoodsCode" msdata:childkey="GoodsCode" msprop:Generator_UserChildTable="FactorItems" msprop:Generator_ChildPropName="GetFactorItemsRows" msprop:Generator_UserRelationName="GoodsFactorItems" msprop:Generator_RelationVarName="relationGoodsFactorItems" msprop:Generator_UserParentTable="Goods" msprop:Generator_ParentPropName="GoodsRow" />
<msdata:Relationship name="CustomersFactors" msdata:parent="Customers" msdata:child="Factors" msdata:parentkey="CustomerCode" msdata:childkey="CustomerCode" msprop:Generator_UserChildTable="Factors" msprop:Generator_ChildPropName="GetFactorsRows" msprop:Generator_UserRelationName="CustomersFactors" msprop:Generator_ParentPropName="CustomersRow" msprop:Generator_RelationVarName="relationCustomersFactors" msprop:Generator_UserParentTable="Customers" />
</xs:appinfo>
</xs:annotation>
</xs:schema>

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,472 @@
using System.Data;
using System.Data.OleDb;
namespace MyShop.MyShopDataSetTableAdapters
{
public partial class CustomersTableAdapter
{
public virtual int InsertCustomerQuery(string firstName, string lastName, string mobile)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "INSERT INTO [Customers] ([CustomerFirstName], [CustomerLastName], [CustomerMobile]) VALUES (?, ?, ?)";
command.Parameters.Add("CustomerFirstName", OleDbType.VarWChar).Value = firstName;
command.Parameters.Add("CustomerLastName", OleDbType.VarWChar).Value = lastName;
command.Parameters.Add("CustomerMobile", OleDbType.VarWChar).Value = mobile;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int UpdateCustomerQuery(string firstName, string lastName, string mobile, int customerCode)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "UPDATE [Customers] SET [CustomerFirstName] = ?, [CustomerLastName] = ?, [CustomerMobile] = ? WHERE ([CustomerCode] = ?)";
command.Parameters.Add("CustomerFirstName", OleDbType.VarWChar).Value = firstName;
command.Parameters.Add("CustomerLastName", OleDbType.VarWChar).Value = lastName;
command.Parameters.Add("CustomerMobile", OleDbType.VarWChar).Value = mobile;
command.Parameters.Add("CustomerCode", OleDbType.Integer).Value = customerCode;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int DeleteCustomerQuery(int customerCode)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "DELETE FROM [Customers] WHERE ([CustomerCode] = ?)";
command.Parameters.Add("CustomerCode", OleDbType.Integer).Value = customerCode;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int FillByCustomerCode(MyShopDataSet.CustomersDataTable dataTable, int customerCode)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "SELECT [CustomerCode], [CustomerFirstName], [CustomerLastName], [CustomerMobile] FROM [Customers] WHERE ([CustomerCode] = ?)";
command.Parameters.Add("CustomerCode", OleDbType.Integer).Value = customerCode;
this.Adapter.SelectCommand = command;
if (this.ClearBeforeFill)
{
dataTable.Clear();
}
return this.Adapter.Fill(dataTable);
}
}
public virtual int FillByCustomerName(MyShopDataSet.CustomersDataTable dataTable, string customerName)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "SELECT [CustomerCode], [CustomerFirstName], [CustomerLastName], [CustomerMobile] FROM [Customers] WHERE ([CustomerFirstName] LIKE ?) OR ([CustomerLastName] LIKE ?)";
command.Parameters.Add("CustomerFirstName", OleDbType.VarWChar).Value = "%" + customerName + "%";
command.Parameters.Add("CustomerLastName", OleDbType.VarWChar).Value = "%" + customerName + "%";
this.Adapter.SelectCommand = command;
if (this.ClearBeforeFill)
{
dataTable.Clear();
}
return this.Adapter.Fill(dataTable);
}
}
}
public partial class FactorsTableAdapter
{
public virtual int InsertQuery(int customerCode, System.DateTime factorDate)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "INSERT INTO [Factors] ([CustomerCode], [FactorDate]) VALUES (?, ?)";
command.Parameters.Add("CustomerCode", OleDbType.Integer).Value = customerCode;
command.Parameters.Add("FactorDate", OleDbType.Date).Value = factorDate;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
command.ExecuteNonQuery();
command.CommandText = "SELECT @@IDENTITY";
command.Parameters.Clear();
return System.Convert.ToInt32(command.ExecuteScalar());
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
}
public partial class FactorItemsTableAdapter
{
public virtual int InsertQuery(int factorCode, int goodsCode, int goodsAmount)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "INSERT INTO [FactorItems] ([FactorCode], [GoodsCode], [GoodsAmount]) VALUES (?, ?, ?)";
command.Parameters.Add("FactorCode", OleDbType.Integer).Value = factorCode;
command.Parameters.Add("GoodsCode", OleDbType.Integer).Value = goodsCode;
command.Parameters.Add("GoodsAmount", OleDbType.Integer).Value = goodsAmount;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
}
public partial class GoodsTableAdapter
{
public virtual int InsertQuery(int goodsCode, string goodsName, int goodsUnitPrice, int goodsStock)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "INSERT INTO [Goods] ([GoodsCode], [GoodsName], [GoodsUnitPrice], [GoodsStock]) VALUES (?, ?, ?, ?)";
command.Parameters.Add("GoodsCode", OleDbType.Integer).Value = goodsCode;
command.Parameters.Add("GoodsName", OleDbType.VarWChar).Value = goodsName;
command.Parameters.Add("GoodsUnitPrice", OleDbType.Integer).Value = goodsUnitPrice;
command.Parameters.Add("GoodsStock", OleDbType.Integer).Value = goodsStock;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int DeleteQuery(int goodsCode)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "DELETE FROM [Goods] WHERE ([GoodsCode] = ?)";
command.Parameters.Add("GoodsCode", OleDbType.Integer).Value = goodsCode;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int UpdateQuery(string goodsName, int goodsUnitPrice, int goodsStock, int goodsCode)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "UPDATE [Goods] SET [GoodsName] = ?, [GoodsUnitPrice] = ?, [GoodsStock] = ? WHERE ([GoodsCode] = ?)";
command.Parameters.Add("GoodsName", OleDbType.VarWChar).Value = goodsName;
command.Parameters.Add("GoodsUnitPrice", OleDbType.Integer).Value = goodsUnitPrice;
command.Parameters.Add("GoodsStock", OleDbType.Integer).Value = goodsStock;
command.Parameters.Add("GoodsCode", OleDbType.Integer).Value = goodsCode;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int FillByGoodsCode(MyShopDataSet.GoodsDataTable dataTable, int goodsCode)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "SELECT [GoodsCode], [GoodsName], [GoodsUnitPrice], [GoodsStock] FROM [Goods] WHERE ([GoodsCode] = ?)";
command.Parameters.Add("GoodsCode", OleDbType.Integer).Value = goodsCode;
this.Adapter.SelectCommand = command;
if (this.ClearBeforeFill)
{
dataTable.Clear();
}
return this.Adapter.Fill(dataTable);
}
}
public virtual int FillByGoodsName(MyShopDataSet.GoodsDataTable dataTable, string goodsName)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "SELECT [GoodsCode], [GoodsName], [GoodsUnitPrice], [GoodsStock] FROM [Goods] WHERE ([GoodsName] LIKE ?)";
command.Parameters.Add("GoodsName", OleDbType.VarWChar).Value = "%" + goodsName + "%";
this.Adapter.SelectCommand = command;
if (this.ClearBeforeFill)
{
dataTable.Clear();
}
return this.Adapter.Fill(dataTable);
}
}
}
public partial class UsersTableAdapter
{
public virtual int InsertUserQuery(string userName, string password)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "INSERT INTO [Users] ([Username], [Password]) VALUES (?, ?)";
command.Parameters.Add("Username", OleDbType.VarWChar).Value = userName;
command.Parameters.Add("Password", OleDbType.LongVarWChar).Value = password;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int UpdateUserQuery(string userName, string password, int userCode)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "UPDATE [Users] SET [Username] = ?, [Password] = ? WHERE ([UserCode] = ?)";
command.Parameters.Add("Username", OleDbType.VarWChar).Value = userName;
command.Parameters.Add("Password", OleDbType.LongVarWChar).Value = password;
command.Parameters.Add("UserCode", OleDbType.Integer).Value = userCode;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int DeleteUserQuery(int userCode)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "DELETE FROM [Users] WHERE ([UserCode] = ?)";
command.Parameters.Add("UserCode", OleDbType.Integer).Value = userCode;
ConnectionState previousConnectionState = command.Connection.State;
if ((command.Connection.State & ConnectionState.Open) != ConnectionState.Open)
{
command.Connection.Open();
}
try
{
return command.ExecuteNonQuery();
}
finally
{
if (previousConnectionState == ConnectionState.Closed)
{
command.Connection.Close();
}
}
}
}
public virtual int FillByUserNameAndPass(MyShopDataSet.UsersDataTable dataTable, string userName, string password)
{
using (OleDbCommand command = new OleDbCommand())
{
command.Connection = this.Connection;
command.CommandType = CommandType.Text;
command.CommandText = "SELECT [UserCode], [Username], [Password] FROM [Users] WHERE ([Username] = ?) AND ([Password] = ?)";
command.Parameters.Add("Username", OleDbType.VarWChar).Value = userName;
command.Parameters.Add("Password", OleDbType.LongVarWChar).Value = password;
this.Adapter.SelectCommand = command;
if (this.ClearBeforeFill)
{
dataTable.Clear();
}
return this.Adapter.Fill(dataTable);
}
}
}
}

22
MyShop/Program.cs Normal file
View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MyShop
{
static class Program
{
/// <summary>
/// نقطه شروع اصلی برنامه
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new LoginForm());
}
}
}

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MyShop")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MyShop")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("fea5bc9d-2b8d-4b00-a5ea-4e7678077d1e")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

73
MyShop/Properties/Resources.Designer.cs generated Normal file
View File

@@ -0,0 +1,73 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MyShop.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MyShop.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap LoginIcon {
get {
object obj = ResourceManager.GetObject("LoginIcon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@@ -0,0 +1,124 @@
<?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>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="LoginIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\LoginIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

58
MyShop/Properties/Settings.Designer.cs generated Normal file
View File

@@ -0,0 +1,58 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MyShop.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\MyShop.mdb")]
public string MyShopConnectionString {
get {
return ((string)(this["MyShopConnectionString"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\MyShop.mdb")]
public string MyShopConnectionString1 {
get {
return ((string)(this["MyShopConnectionString1"]));
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string SavedUserName {
get {
return ((string)(this["SavedUserName"]));
}
set {
this["SavedUserName"] = value;
}
}
}
}

View File

@@ -0,0 +1,25 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="MyShop.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="MyShopConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.OleDb&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb</Value>
</Setting>
<Setting Name="MyShopConnectionString1" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.OleDb&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb</Value>
</Setting>
<Setting Name="SavedUserName" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>

6
MyShop/bin/Debug/Log.txt Normal file
View File

@@ -0,0 +1,6 @@
ورود مدیر: 2026/06/09 13:07:08
ورود مدیر: 2026/06/09 13:19:09
ورود مدیر: 2026/06/09 13:20:54
ورود مدیر: 2026/06/09 13:28:28
ورود ناموفق: 2026/06/09 13:31:40 - نام کاربری وارد شده: admin
ورود مدیر: 2026/06/09 13:31:50

BIN
MyShop/bin/Debug/MyShop.exe Normal file

Binary file not shown.

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="MyShop.Properties.Settings.MyShopConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
<add name="MyShop.Properties.Settings.MyShopConnectionString1"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

BIN
MyShop/bin/Debug/MyShop.ldb Normal file

Binary file not shown.

BIN
MyShop/bin/Debug/MyShop.mdb Normal file

Binary file not shown.

BIN
MyShop/bin/Debug/MyShop.pdb Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="MyShop.Properties.Settings.MyShopConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
<add name="MyShop.Properties.Settings.MyShopConnectionString1"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@@ -0,0 +1,2 @@
ورود ناموفق: 2026/06/09 13:47:15 - نام کاربری وارد شده: admin
ورود مدیر: 2026/06/09 13:47:56

Binary file not shown.

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="MyShop.Properties.Settings.MyShopConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
<add name="MyShop.Properties.Settings.MyShopConnectionString1"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="MyShop.Properties.Settings.MyShopConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
<add name="MyShop.Properties.Settings.MyShopConnectionString1"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

BIN
MyShop/db/MyShop.accdb Normal file

Binary file not shown.

BIN
MyShop/db/MyShop.mdb Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,15 @@
c:\users\arshia e\documents\visual studio 2013\Projects\MyShop\MyShop\bin\Debug\MyShop.exe.config
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\bin\Debug\MyShop.exe
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Debug\MyShop.csprojResolveAssemblyReference.cache
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Debug\MyShop.Properties.Resources.resources
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Debug\MyShop.csproj.GenerateResource.Cache
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Debug\MyShop.exe
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Debug\MyShop.pdb
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Verify\MyShop.exe.config
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Verify\MyShop.exe
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Verify\MyShop.pdb
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\bin\Debug\MyShop.pdb
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\obj\Debug\MyShop.MainForm.resources
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\bin\Debug\MyShop.mdb
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\obj\Debug\MyShop.LoginForm.resources
C:\Users\Arshia E\Documents\Visual Studio 2013\Projects\MyShop\MyShop\obj\Verify\MyShop.mdb

Binary file not shown.

BIN
MyShop/obj/Debug/MyShop.exe Normal file

Binary file not shown.

BIN
MyShop/obj/Debug/MyShop.pdb Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,10 @@
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\bin\Release\MyShop.exe.config
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\bin\Release\MyShop.mdb
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\bin\Release\MyShop.exe
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\bin\Release\MyShop.pdb
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\obj\Release\MyShop.LoginForm.resources
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\obj\Release\MyShop.MainForm.resources
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\obj\Release\MyShop.Properties.Resources.resources
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\obj\Release\MyShop.csproj.GenerateResource.Cache
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\obj\Release\MyShop.exe
C:\Users\Arshia E\documents\visual studio 2013\Projects\MyShop\MyShop\obj\Release\MyShop.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="MyShop.Properties.Settings.MyShopConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
<add name="MyShop.Properties.Settings.MyShopConnectionString1"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\MyShop.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

Binary file not shown.

Binary file not shown.