diff --git a/CS/LinqServerModeSource/Form1.Designer.cs b/CS/LinqServerModeSource/Form1.Designer.cs
index 43ce4f2..2488444 100644
--- a/CS/LinqServerModeSource/Form1.Designer.cs
+++ b/CS/LinqServerModeSource/Form1.Designer.cs
@@ -9,6 +9,8 @@
// You can find sample updates and versions for different programming languages here:
// http://www.devexpress.com/example=E4498
+using DevExpress.XtraEditors;
+
namespace LinqServerModeSource
{
partial class Form1
@@ -42,9 +44,9 @@ private void InitializeComponent()
this.gridControl = new DevExpress.XtraGrid.GridControl();
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.linqServerModeSource1 = new DevExpress.Data.Linq.LinqServerModeSource();
- this.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
+ this.button1 = new DevExpress.XtraEditors.SimpleButton();
+ this.button2 = new DevExpress.XtraEditors.SimpleButton();
+ this.button3 = new DevExpress.XtraEditors.SimpleButton();
((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.linqServerModeSource1)).BeginInit();
@@ -52,11 +54,11 @@ private void InitializeComponent()
//
// gridControl
//
- this.gridControl.Dock = System.Windows.Forms.DockStyle.Top;
+ this.gridControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridControl.Location = new System.Drawing.Point(0, 0);
this.gridControl.MainView = this.gridView1;
this.gridControl.Name = "gridControl";
- this.gridControl.Size = new System.Drawing.Size(778, 519);
+ this.gridControl.Size = new System.Drawing.Size(778, 504);
this.gridControl.TabIndex = 0;
this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView1});
@@ -69,32 +71,32 @@ private void InitializeComponent()
//
// button1
//
- this.button1.Location = new System.Drawing.Point(196, 538);
+ this.button1.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.button1.Location = new System.Drawing.Point(0, 550);
this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(75, 23);
+ this.button1.Size = new System.Drawing.Size(778, 23);
this.button1.TabIndex = 1;
this.button1.Text = "Add";
- this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
- this.button2.Location = new System.Drawing.Point(324, 538);
+ this.button2.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.button2.Location = new System.Drawing.Point(0, 527);
this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(75, 23);
+ this.button2.Size = new System.Drawing.Size(778, 23);
this.button2.TabIndex = 2;
this.button2.Text = "Edit";
- this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
- this.button3.Location = new System.Drawing.Point(452, 538);
+ this.button3.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.button3.Location = new System.Drawing.Point(0, 504);
this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(75, 23);
+ this.button3.Size = new System.Drawing.Size(778, 23);
this.button3.TabIndex = 3;
this.button3.Text = "Delete";
- this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// Form1
@@ -102,12 +104,10 @@ private void InitializeComponent()
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(778, 573);
+ this.Controls.Add(this.gridControl);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
- this.Controls.Add(this.gridControl);
- this.LookAndFeel.SkinName = "Foggy";
- this.LookAndFeel.UseDefaultLookAndFeel = false;
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit();
@@ -122,9 +122,9 @@ private void InitializeComponent()
private DevExpress.XtraGrid.GridControl gridControl;
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
private DevExpress.Data.Linq.LinqServerModeSource linqServerModeSource1;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Button button3;
+ private SimpleButton button1;
+ private SimpleButton button2;
+ private SimpleButton button3;
}
}
diff --git a/CS/LinqServerModeSource/LinqServerModeSource.csproj b/CS/LinqServerModeSource/LinqServerModeSource.csproj
index 12bbd20..d87dbbc 100644
--- a/CS/LinqServerModeSource/LinqServerModeSource.csproj
+++ b/CS/LinqServerModeSource/LinqServerModeSource.csproj
@@ -1,5 +1,5 @@
-
-
+
+
Debug
AnyCPU
@@ -10,8 +10,9 @@
Properties
LinqServerModeSource
LinqServerModeSource
- v4.0
-
+ v4.5.2
+
+
2.0
publish\
@@ -29,6 +30,7 @@
false
false
true
+
true
@@ -38,6 +40,7 @@
DEBUG;TRACE
prompt
4
+ false
pdbonly
@@ -46,16 +49,22 @@
TRACE
prompt
4
+ false
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -95,6 +104,7 @@
Northwind.dbml
+
ResXFileCodeGenerator
Resources.Designer.cs
@@ -153,4 +163,4 @@
-->
-
+
\ No newline at end of file
diff --git a/CS/LinqServerModeSource/LinqServerModeSource.csproj.bak b/CS/LinqServerModeSource/LinqServerModeSource.csproj.bak
new file mode 100644
index 0000000..5d76164
--- /dev/null
+++ b/CS/LinqServerModeSource/LinqServerModeSource.csproj.bak
@@ -0,0 +1,160 @@
+
+
+
+ Debug
+ AnyCPU
+ 11.0.50727.1
+ 2.0
+ {743FD596-27DB-44C7-8837-E9EA005C4E6D}
+ WinExe
+ Properties
+ LinqServerModeSource
+ LinqServerModeSource
+ v4.5.2
+
+
+ 2.0
+
+ publish\
+ true
+ Disk
+ false
+ Foreground
+ 7
+ Days
+ false
+ false
+ true
+ 0
+ 1.0.0.%2a
+ false
+ false
+ true
+
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ false
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ EditForm.cs
+
+
+ Form
+
+
+ Form1.cs
+
+
+ True
+ True
+ Northwind.dbml
+
+
+
+
+
+ EditForm.cs
+
+
+ Form1.cs
+
+
+
+ Northwind.dbml
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+ True
+
+
+ MSLinqToSQLGenerator
+ Northwind.designer.cs
+ Designer
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ False
+ Microsoft .NET Framework 4 %28x86 and x64%29
+ true
+
+
+ False
+ .NET Framework 3.5 SP1 Client Profile
+ false
+
+
+ False
+ .NET Framework 3.5 SP1
+ false
+
+
+ False
+ Windows Installer 3.1
+ true
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CS/LinqServerModeSource/Northwind.dbml b/CS/LinqServerModeSource/Northwind.dbml
index fbd5f08..fbca16d 100644
--- a/CS/LinqServerModeSource/Northwind.dbml
+++ b/CS/LinqServerModeSource/Northwind.dbml
@@ -1,5 +1,5 @@
-
+
diff --git a/CS/LinqServerModeSource/Northwind.dbml.layout b/CS/LinqServerModeSource/Northwind.dbml.layout
index eb95033..091c448 100644
--- a/CS/LinqServerModeSource/Northwind.dbml.layout
+++ b/CS/LinqServerModeSource/Northwind.dbml.layout
@@ -14,7 +14,7 @@
-
+
diff --git a/CS/LinqServerModeSource/Northwind.designer.cs b/CS/LinqServerModeSource/Northwind.designer.cs
index 094311d..818bf76 100644
--- a/CS/LinqServerModeSource/Northwind.designer.cs
+++ b/CS/LinqServerModeSource/Northwind.designer.cs
@@ -1,19 +1,8 @@
-// Developer Express Code Central Example:
-// How to implement CRUD operations using XtraGrid and LinqServeModeSource
-//
-// This example demonstrates how to implement create, update and delete operations
-// using XtraGrid and LinqServeModeSource.
-// This example works with the standard
-// SQL Northwind database.
-//
-// You can find sample updates and versions for different programming languages here:
-// http://www.devexpress.com/example=E4498
-
-#pragma warning disable 1591
+#pragma warning disable 1591
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.296
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -460,8 +449,6 @@ public partial class Order : INotifyPropertyChanging, INotifyPropertyChanged
private string _ShipCountry;
- private string _ShipAdress;
-
private EntityRef _Customer;
#region Extensibility Method Definitions
@@ -496,8 +483,6 @@ public partial class Order : INotifyPropertyChanging, INotifyPropertyChanged
partial void OnShipPostalCodeChanged();
partial void OnShipCountryChanging(string value);
partial void OnShipCountryChanged();
- partial void OnShipAdressChanging(string value);
- partial void OnShipAdressChanged();
#endregion
public Order()
@@ -790,26 +775,6 @@ public string ShipCountry
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShipAdress", DbType="NVarChar(100)")]
- public string ShipAdress
- {
- get
- {
- return this._ShipAdress;
- }
- set
- {
- if ((this._ShipAdress != value))
- {
- this.OnShipAdressChanging(value);
- this.SendPropertyChanging();
- this._ShipAdress = value;
- this.SendPropertyChanged("ShipAdress");
- this.OnShipAdressChanged();
- }
- }
- }
-
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Customer_Order", Storage="_Customer", ThisKey="CustomerID", OtherKey="CustomerID", IsForeignKey=true)]
public Customer Customer
{
diff --git a/CS/LinqServerModeSource/Program.cs b/CS/LinqServerModeSource/Program.cs
index d29f7c9..6cd7664 100644
--- a/CS/LinqServerModeSource/Program.cs
+++ b/CS/LinqServerModeSource/Program.cs
@@ -26,11 +26,6 @@ static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
-
- DevExpress.Skins.SkinManager.EnableFormSkins();
- DevExpress.UserSkins.BonusSkins.Register();
- UserLookAndFeel.Default.SetSkinStyle("Foggy");
-
Application.Run(new Form1());
}
}
diff --git a/CS/LinqServerModeSource/Properties/Resources.Designer.cs b/CS/LinqServerModeSource/Properties/Resources.Designer.cs
index 8a1a362..8bc00c3 100644
--- a/CS/LinqServerModeSource/Properties/Resources.Designer.cs
+++ b/CS/LinqServerModeSource/Properties/Resources.Designer.cs
@@ -1,18 +1,7 @@
-// Developer Express Code Central Example:
-// How to implement CRUD operations using XtraGrid and LinqServeModeSource
-//
-// This example demonstrates how to implement create, update and delete operations
-// using XtraGrid and LinqServeModeSource.
-// This example works with the standard
-// SQL Northwind database.
-//
-// You can find sample updates and versions for different programming languages here:
-// http://www.devexpress.com/example=E4498
-
-//------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.296
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -30,7 +19,7 @@ namespace LinqServerModeSource.Properties {
// 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
diff --git a/CS/LinqServerModeSource/Properties/Settings.Designer.cs b/CS/LinqServerModeSource/Properties/Settings.Designer.cs
index 8c00a52..27bfca5 100644
--- a/CS/LinqServerModeSource/Properties/Settings.Designer.cs
+++ b/CS/LinqServerModeSource/Properties/Settings.Designer.cs
@@ -1,18 +1,7 @@
-// Developer Express Code Central Example:
-// How to implement CRUD operations using XtraGrid and LinqServeModeSource
-//
-// This example demonstrates how to implement create, update and delete operations
-// using XtraGrid and LinqServeModeSource.
-// This example works with the standard
-// SQL Northwind database.
-//
-// You can find sample updates and versions for different programming languages here:
-// http://www.devexpress.com/example=E4498
-
-//------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.296
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -23,7 +12,7 @@ namespace LinqServerModeSource.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.6.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -37,7 +26,8 @@ public static Settings Default {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
- [global::System.Configuration.DefaultSettingValueAttribute("Data Source=KURCHENKO-SV;Initial Catalog=Northwind;Integrated Security=True")]
+ [global::System.Configuration.DefaultSettingValueAttribute("Data Source=(LocalDb)\\mssqllocaldb;Initial Catalog=Northwind;Integrated Security=" +
+ "True")]
public string NorthwindConnectionString {
get {
return ((string)(this["NorthwindConnectionString"]));
diff --git a/CS/LinqServerModeSource/Properties/Settings.settings b/CS/LinqServerModeSource/Properties/Settings.settings
index 9103766..7e9c26e 100644
--- a/CS/LinqServerModeSource/Properties/Settings.settings
+++ b/CS/LinqServerModeSource/Properties/Settings.settings
@@ -5,10 +5,10 @@
<?xml version="1.0" encoding="utf-16"?>
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <ConnectionString>Data Source=KURCHENKO-SV;Initial Catalog=Northwind;Integrated Security=True</ConnectionString>
+ <ConnectionString>Data Source=(LocalDb)\mssqllocaldb;Initial Catalog=Northwind;Integrated Security=True</ConnectionString>
<ProviderName>System.Data.SqlClient</ProviderName>
</SerializableConnectionString>
- Data Source=KURCHENKO-SV;Initial Catalog=Northwind;Integrated Security=True
+ Data Source=(LocalDb)\mssqllocaldb;Initial Catalog=Northwind;Integrated Security=True
\ No newline at end of file
diff --git a/CS/LinqServerModeSource/Properties/licenses.licx b/CS/LinqServerModeSource/Properties/licenses.licx
new file mode 100644
index 0000000..e2896b1
--- /dev/null
+++ b/CS/LinqServerModeSource/Properties/licenses.licx
@@ -0,0 +1 @@
+DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v20.1, Version=20.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
diff --git a/CS/LinqServerModeSource/app.config b/CS/LinqServerModeSource/app.config
index 4db64d1..3e44f2a 100644
--- a/CS/LinqServerModeSource/app.config
+++ b/CS/LinqServerModeSource/app.config
@@ -1,10 +1,54 @@
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ True
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file