diff --git a/AppleJobs.Data/App.config b/AppleJobs.Data/App.config
new file mode 100644
index 0000000..c3680c2
--- /dev/null
+++ b/AppleJobs.Data/App.config
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AppleJobs.Data/AppleJobs.Data.csproj b/AppleJobs.Data/AppleJobs.Data.csproj
new file mode 100644
index 0000000..3a02a15
--- /dev/null
+++ b/AppleJobs.Data/AppleJobs.Data.csproj
@@ -0,0 +1,124 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {B4695C76-31FF-4BF1-9DC6-1BC62D374091}
+ Library
+ Properties
+ AppleJobs.Data
+ AppleJobs.Data
+ v4.5.2
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+ ..\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.dll
+ True
+
+
+ ..\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.SqlServer.dll
+ True
+
+
+ ..\packages\Microsoft.AspNet.Identity.Core.2.2.1\lib\net45\Microsoft.AspNet.Identity.Core.dll
+ True
+
+
+ ..\packages\Microsoft.AspNet.Identity.EntityFramework.2.2.1\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll
+ True
+
+
+ ..\packages\MySql.Data.6.9.9\lib\net45\MySql.Data.dll
+ True
+
+
+ ..\packages\MySql.Data.Entity.6.9.9\lib\net45\MySql.Data.Entity.EF6.dll
+ True
+
+
+
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AppleJobs.Data/AppleJobsContext.cs b/AppleJobs.Data/AppleJobsContext.cs
new file mode 100644
index 0000000..25a699d
--- /dev/null
+++ b/AppleJobs.Data/AppleJobsContext.cs
@@ -0,0 +1,51 @@
+using AppleJobs.Data.Models;
+using AppleJobs.Data.Models.ModelsJobs;
+using Microsoft.AspNet.Identity.EntityFramework;
+using MySql.Data.Entity;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Data.Entity;
+
+namespace AppleJobs.Data
+{
+ [DbConfigurationType(typeof(MySqlEFConfiguration))]
+ public class AppleJobsContext : IdentityDbContext
+ {
+ #region Common
+
+ public DbSet Customers { get; set; }
+
+ #endregion
+
+ #region Orders
+
+ public DbSet OrderCategories { get; set; }
+ public DbSet Orders { get; set; }
+ public DbSet OrdersView { get; set; }
+ public DbSet OrderStatuses { get; set; }
+
+ #endregion
+
+ #region Inventory
+
+ public DbSet Accessories { get; set; }
+ public DbSet Employees { get; set; }
+
+ #endregion
+
+ #region Prices
+
+ public DbSet Models { get; set; }
+ public DbSet ModelJobs { get; set; }
+ public DbSet ModelCategories { get; set; }
+ public DbSet ModelJobPriceTemplates { get; set; }
+
+ #endregion
+
+ public AppleJobsContext(string connection = "Default") : base(connection)
+ {
+ }
+ }
+ public class ApplicationUser : IdentityUser
+ {
+ }
+}
diff --git a/AppleJobs.Data/Models/Customer.cs b/AppleJobs.Data/Models/Customer.cs
new file mode 100644
index 0000000..690d2e7
--- /dev/null
+++ b/AppleJobs.Data/Models/Customer.cs
@@ -0,0 +1,14 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models.ModelsJobs
+{
+ public class Customer
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+ public string Name { get; set; }
+ public string Code { get; set; }
+ public string MainEmail { get; set; }
+ }
+}
diff --git a/AppleJobs.Data/Models/Inventory/Accessories.cs b/AppleJobs.Data/Models/Inventory/Accessories.cs
new file mode 100644
index 0000000..be9f2ed
--- /dev/null
+++ b/AppleJobs.Data/Models/Inventory/Accessories.cs
@@ -0,0 +1,12 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models
+{
+ public class Accessories
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+ public string Name { get; set; }
+ }
+}
diff --git a/AppleJobs.Data/Models/Inventory/Employee.cs b/AppleJobs.Data/Models/Inventory/Employee.cs
new file mode 100644
index 0000000..cddaf4d
--- /dev/null
+++ b/AppleJobs.Data/Models/Inventory/Employee.cs
@@ -0,0 +1,14 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models
+{
+ public class Employee
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+ public string Name { get; set; }
+ public string ContactInfo { get; set; }
+ public string Email { get; set; }
+ }
+}
diff --git a/AppleJobs.Data/Models/ModelsJobs/Model.cs b/AppleJobs.Data/Models/ModelsJobs/Model.cs
new file mode 100644
index 0000000..2146ff5
--- /dev/null
+++ b/AppleJobs.Data/Models/ModelsJobs/Model.cs
@@ -0,0 +1,21 @@
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models.ModelsJobs
+{
+ public class Model
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+ public string Name { get; set; }
+ public int ModelCategories_Id { get; set; }
+
+ [ForeignKey(nameof(ModelCategories_Id))]
+ public virtual ModelCategory ModelCategory { get; set; }
+ public virtual ICollection ModelJobs { get; set; }
+
+ public string FilterString { get { return string.Format("{0},{1}", Name, ModelCategory?.FilterString); } }
+
+ }
+}
diff --git a/AppleJobs.Data/Models/ModelsJobs/ModelCategory.cs b/AppleJobs.Data/Models/ModelsJobs/ModelCategory.cs
new file mode 100644
index 0000000..3d3ca20
--- /dev/null
+++ b/AppleJobs.Data/Models/ModelsJobs/ModelCategory.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models.ModelsJobs
+{
+ public class ModelCategory
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+ public string Name { get; set; }
+
+ public string FilterString { get { return string.Format("{0}", Name); } }
+
+ }
+}
diff --git a/AppleJobs.Data/Models/ModelsJobs/ModelJob.cs b/AppleJobs.Data/Models/ModelsJobs/ModelJob.cs
new file mode 100644
index 0000000..0ecd89f
--- /dev/null
+++ b/AppleJobs.Data/Models/ModelsJobs/ModelJob.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models.ModelsJobs
+{
+ public class ModelJob
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+ public string Name { get; set; }
+ public string Description { get; set; }
+ public int Models_Id { get; set; }
+
+ [ForeignKey(nameof(Models_Id))]
+ public virtual Model Model { get; set; }
+
+ public string FilterString { get { return string.Format("{0},{1},{2}", Name, Description, Model?.FilterString); } }
+ }
+}
diff --git a/AppleJobs.Data/Models/ModelsJobs/ModelJobPriceTemplate.cs b/AppleJobs.Data/Models/ModelsJobs/ModelJobPriceTemplate.cs
new file mode 100644
index 0000000..8430e9d
--- /dev/null
+++ b/AppleJobs.Data/Models/ModelsJobs/ModelJobPriceTemplate.cs
@@ -0,0 +1,22 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models.ModelsJobs
+{
+ public class ModelJobPriceTemplate
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+ public double? Price { get; set; }
+ public bool IsPriceFrom { get; set; }
+ public int ModelJobs_Id { get; set; }
+ public int Customers_Id { get; set; }
+
+ [ForeignKey(nameof(Customers_Id))]
+ public virtual Customer Customer { get; set; }
+ [ForeignKey(nameof(ModelJobs_Id))]
+ public virtual ModelJob ModelJob { get; set; }
+
+ public string FilterString { get { return string.Format("{0},{1}", Price, ModelJob?.FilterString); } }
+ }
+}
diff --git a/AppleJobs.Data/Models/Orders/Order.cs b/AppleJobs.Data/Models/Orders/Order.cs
new file mode 100644
index 0000000..ca6a356
--- /dev/null
+++ b/AppleJobs.Data/Models/Orders/Order.cs
@@ -0,0 +1,104 @@
+using AppleJobs.Data.Models.ModelsJobs;
+using System;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models
+{
+ [TsModel]
+ public class OrderView
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+
+ public string Contact { get; set; }
+ public string Comment { get; set; }
+ public DateTime DateCreated { get; set; }
+ public DateTime? DateClosed { get; set; }
+ public DateTime DateUpdated { get; set; }
+ public string UserCreated { get; set; }
+ public bool? IsFast { get; set; }
+ public bool? IsDrive { get; set; }
+ public int? Price { get; set; }
+
+ public int OrderStatuses_Id { get; set; }
+ public int Models_Id { get; set; }
+ public int? ModelJobs_Id { get; set; }
+ public int Customers_Id { get; set; }
+ public int? Accessories_Id { get; set; }
+ public int? Employees_Id { get; set; }
+ public int OrderCategories_Id { get; set; }
+
+ //Joined
+ public string Status { get; set; }
+ public string Model { get; set; }
+ public string ModelJob { get; set; }
+ public string Customer { get; set; }
+ public string Accessories { get; set; }
+ public string Employee { get; set; }
+ public string OrderCategory { get; set; }
+ public string FilterString { get; set; }
+ }
+
+ [TsModel]
+ public class Order
+ {
+ public Order()
+ {
+ DateCreated = DateUpdated = DateTime.Now;
+ }
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+
+ public string Contact { get; set; }
+ public string Comment { get; set; }
+ public DateTime DateCreated { get; set; }
+ public DateTime? DateClosed { get; set; }
+ public DateTime DateUpdated { get; set; }
+ public string UserCreated { get; set; }
+ public bool? IsFast { get; set; }
+ public bool? IsDrive { get; set; }
+ public int? Price { get; set; }
+
+ public int OrderStatuses_Id { get; set; }
+ public int Models_Id { get; set; }
+ public int? ModelJobs_Id { get; set; }
+ public int Customers_Id { get; set; }
+ public int? Accessories_Id { get; set; }
+ public int? Employees_Id { get; set; }
+
+
+ [ForeignKey(nameof(OrderStatuses_Id))]
+ public virtual OrderStatus OrderStatus { get; set; }
+
+ [ForeignKey(nameof(Models_Id))]
+ public virtual Model Model { get; set; }
+
+ [ForeignKey(nameof(ModelJobs_Id))]
+ public virtual ModelJob JobModel { get; set; }
+
+ [ForeignKey(nameof(Customers_Id))]
+ public virtual Customer Customer { get; set; }
+
+ [ForeignKey(nameof(Accessories_Id))]
+ public virtual Accessories Accessories { get; set; }
+
+ [ForeignKey(nameof(Employees_Id))]
+ public virtual Employee Employee { get; set; }
+
+ public string FilterString
+ {
+ get
+ {
+ return string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10}",
+ Contact, Comment, DateCreated, DateClosed, DateUpdated,
+ OrderStatus?.Name,
+ Model.FilterString,
+ JobModel.FilterString,
+ Customer?.Name,
+ Accessories?.Name,
+ Employee?.Name);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/AppleJobs.Data/Models/Orders/OrderCategory.cs b/AppleJobs.Data/Models/Orders/OrderCategory.cs
new file mode 100644
index 0000000..8910a62
--- /dev/null
+++ b/AppleJobs.Data/Models/Orders/OrderCategory.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models
+{
+ [TsModel]
+ public class OrderCategory
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+
+ public string Name { get; set; }
+ public string FullName { get; set; }
+ }
+}
diff --git a/AppleJobs.Data/Models/Orders/OrderStatus.cs b/AppleJobs.Data/Models/Orders/OrderStatus.cs
new file mode 100644
index 0000000..3f3004a
--- /dev/null
+++ b/AppleJobs.Data/Models/Orders/OrderStatus.cs
@@ -0,0 +1,14 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace AppleJobs.Data.Models
+{
+ [TsModel]
+ [Table("OrderStatuses")]
+ public class OrderStatus
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; set; }
+ public string Name { get; set; }
+ }
+}
diff --git a/AppleJobs.Data/Models/TsModelAttribute.cs b/AppleJobs.Data/Models/TsModelAttribute.cs
new file mode 100644
index 0000000..3a1e9c7
--- /dev/null
+++ b/AppleJobs.Data/Models/TsModelAttribute.cs
@@ -0,0 +1,8 @@
+using System;
+
+namespace AppleJobs.Data.Models
+{
+ public class TsModelAttribute : Attribute
+ {
+ }
+}
diff --git a/AppleJobs.Data/Properties/AssemblyInfo.cs b/AppleJobs.Data/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..b72a3de
--- /dev/null
+++ b/AppleJobs.Data/Properties/AssemblyInfo.cs
@@ -0,0 +1,46 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 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("AppleJobs.Data")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("AppleJobs.Data")]
+[assembly: AssemblyCopyright("Copyright © 2017")]
+[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)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+
+// 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")]
diff --git a/AppleJobs.Data/Properties/Resources.Designer.cs b/AppleJobs.Data/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..35faca7
--- /dev/null
+++ b/AppleJobs.Data/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace AppleJobs.Data.Properties
+{
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // 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()
+ {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AppleJobs.Data.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/AppleJobs.Data/Properties/Resources.resx b/AppleJobs.Data/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/AppleJobs.Data/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/AppleJobs.Data/Properties/Settings.Designer.cs b/AppleJobs.Data/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..32935f6
--- /dev/null
+++ b/AppleJobs.Data/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace AppleJobs.Data.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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;
+ }
+ }
+ }
+}
diff --git a/AppleJobs.Data/Properties/Settings.settings b/AppleJobs.Data/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/AppleJobs.Data/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AppleJobs.Data/packages.config b/AppleJobs.Data/packages.config
new file mode 100644
index 0000000..b8fa147
--- /dev/null
+++ b/AppleJobs.Data/packages.config
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BrightSharp.Ui.Tests/App.config b/BrightSharp.Ui.Tests/App.config
new file mode 100644
index 0000000..88fa402
--- /dev/null
+++ b/BrightSharp.Ui.Tests/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BrightSharp.Ui.Tests/App.xaml b/BrightSharp.Ui.Tests/App.xaml
new file mode 100644
index 0000000..7cdf935
--- /dev/null
+++ b/BrightSharp.Ui.Tests/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
diff --git a/BrightSharp.Ui.Tests/App.xaml.cs b/BrightSharp.Ui.Tests/App.xaml.cs
new file mode 100644
index 0000000..7c5978c
--- /dev/null
+++ b/BrightSharp.Ui.Tests/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace BrightSharp.Ui.Tests
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/BrightSharp.Ui.Tests/BrightSharp.Ui.Tests.csproj b/BrightSharp.Ui.Tests/BrightSharp.Ui.Tests.csproj
new file mode 100644
index 0000000..387178b
--- /dev/null
+++ b/BrightSharp.Ui.Tests/BrightSharp.Ui.Tests.csproj
@@ -0,0 +1,113 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {0D6E1828-8D07-4701-B98A-65DBF1604D3F}
+ WinExe
+ Properties
+ BrightSharp.Ui.Tests
+ BrightSharp.Ui.Tests
+ v4.5.2
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+
+ MainWindow.xaml
+ Code
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
+
+
+ {acc3c556-f8e4-4f2a-a23d-8e8749679a1b}
+ BrightSharp
+
+
+
+
+
\ No newline at end of file
diff --git a/BrightSharp.Ui.Tests/ListViewItemModel.cs b/BrightSharp.Ui.Tests/ListViewItemModel.cs
new file mode 100644
index 0000000..97bcd56
--- /dev/null
+++ b/BrightSharp.Ui.Tests/ListViewItemModel.cs
@@ -0,0 +1,121 @@
+using BrightSharp.Mvvm;
+using System;
+using System.ComponentModel;
+
+namespace BrightSharp.Ui.Tests
+{
+ public class CustomerViewModel : ObservableObject
+ {
+ static Random rnd = new Random();
+ private string _customerId;
+ private string _companyName;
+ private string _contactName;
+ private string _contactTitle;
+ private string _address;
+ private string _city;
+ private string _region;
+ private string _postalCode;
+ private string _country;
+ private string _phone;
+ private string _fax;
+ private string _color;
+
+ public CustomerViewModel()
+ {
+ byte[] colorBytes = new byte[3];
+ rnd.NextBytes(colorBytes);
+ Color = System.Windows.Media.Color.FromRgb(colorBytes[0], colorBytes[1], colorBytes[2]).ToString();
+ }
+
+ public string CustomerID
+ {
+ get { return _customerId; }
+ set { _customerId = value; RaisePropertyChanged(nameof(CustomerID)); }
+ }
+
+ public string CompanyName
+ {
+ get { return _companyName; }
+ set { _companyName = value; RaisePropertyChanged(nameof(CompanyName)); }
+ }
+
+ public string ContactName
+ {
+ get { return _contactName; }
+ set { _contactName = value; RaisePropertyChanged(nameof(ContactName)); }
+ }
+
+ public string ContactTitle
+ {
+ get { return _contactTitle; }
+ set { _contactTitle = value; RaisePropertyChanged(nameof(ContactTitle)); }
+ }
+ [Category("Location")]
+ public string Address
+ {
+ get { return _address; }
+ set { _address = value; RaisePropertyChanged(nameof(Address)); }
+ }
+ [Category("Location")]
+ public string City
+ {
+ get { return _city; }
+ set { _city = value; RaisePropertyChanged(nameof(City)); }
+ }
+ [Category("Location")]
+ public string Region
+ {
+ get { return _region; }
+ set { _region = value; RaisePropertyChanged(nameof(Region)); }
+ }
+ [Category("Contact Information")]
+ [Description("Postal code for Customer")]
+ public string PostalCode
+ {
+ get { return _postalCode; }
+ set { _postalCode = value; RaisePropertyChanged(nameof(PostalCode)); }
+ }
+ [Category("Location")]
+ [Description("Country for Customer")]
+ public string Country
+ {
+ get { return _country; }
+ set { _country = value; RaisePropertyChanged(nameof(Country)); }
+ }
+
+ [Category("Contact Information")]
+ [Description("Phone for Customer")]
+ public string Phone
+ {
+ get { return _phone; }
+ set { _phone = value; RaisePropertyChanged(nameof(Phone)); }
+ }
+
+ [Category("Contact Information")]
+ [Description("Fax for Customer")]
+ public string Fax
+ {
+ get { return _fax; }
+ set { _fax = value; RaisePropertyChanged(nameof(Fax)); }
+ }
+ [Category("Appearance")]
+ public string Color
+ {
+ get { return _color; }
+ set { _color = value; RaisePropertyChanged(nameof(Color)); }
+ }
+
+ public int NumberProperty { get; set; }
+ public double DoubleNumberProperty { get; set; }
+
+
+ [Category("PropertyGrid Explore Group")]
+ [Description("Indicates that Customer is has active state")]
+ [DisplayName("Is Active")]
+ public bool IsActive { get; set; }
+ [Category("PropertyGrid Explore Group")]
+ [Description("Indicates that Customer is has active state or it absent")]
+ [DisplayName("Is Active Or Not Exists")]
+ public bool? IsActiveOrEmpty { get; set; }
+ }
+}
diff --git a/BrightSharp.Ui.Tests/MainWindow.xaml b/BrightSharp.Ui.Tests/MainWindow.xaml
new file mode 100644
index 0000000..ce37615
--- /dev/null
+++ b/BrightSharp.Ui.Tests/MainWindow.xaml
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CheckBox
+ CheckBox Right Allign
+ CheckBox Top Allign
+ RadioButton
+ RadioButton
+
+
+
+
+
+
+
+
+
+
+ Trailing
+
+
+ Leading
+
+
+
+ Item 1
+ Item 2
+ Item 3
+
+ Item 4
+ Item 5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BrightSharp.Ui.Tests/MainWindow.xaml.cs b/BrightSharp.Ui.Tests/MainWindow.xaml.cs
new file mode 100644
index 0000000..4c1ea23
--- /dev/null
+++ b/BrightSharp.Ui.Tests/MainWindow.xaml.cs
@@ -0,0 +1,48 @@
+using BrightSharp.Diagrams;
+using BrightSharp.Extensions;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace BrightSharp.Ui.Tests
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ SelectionBehavior.Attach(innerCanvas);
+ tb.Text = ThemeManager.Theme.ToString();
+ }
+
+
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+ if (Enum.IsDefined(typeof(ColorThemes), ThemeManager.Theme + 1))
+ {
+ ThemeManager.Theme = ThemeManager.Theme + 1;
+ }
+ else
+ {
+ ThemeManager.Theme = ColorThemes.Classic;
+ }
+ tb.Text = ThemeManager.Theme.ToString();
+ }
+ }
+}
diff --git a/BrightSharp.Ui.Tests/Properties/AssemblyInfo.cs b/BrightSharp.Ui.Tests/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..5cd1a1c
--- /dev/null
+++ b/BrightSharp.Ui.Tests/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 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("BrightSharp.Ui.Tests")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("BrightSharp.Ui.Tests")]
+[assembly: AssemblyCopyright("Copyright © 2017")]
+[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)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// 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")]
diff --git a/BrightSharp.Ui.Tests/Properties/Resources.Designer.cs b/BrightSharp.Ui.Tests/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..d35a73b
--- /dev/null
+++ b/BrightSharp.Ui.Tests/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace BrightSharp.Ui.Tests.Properties
+{
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // 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()
+ {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BrightSharp.Ui.Tests.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/BrightSharp.Ui.Tests/Properties/Resources.resx b/BrightSharp.Ui.Tests/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/BrightSharp.Ui.Tests/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/BrightSharp.Ui.Tests/Properties/Settings.Designer.cs b/BrightSharp.Ui.Tests/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..d26b429
--- /dev/null
+++ b/BrightSharp.Ui.Tests/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace BrightSharp.Ui.Tests.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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;
+ }
+ }
+ }
+}
diff --git a/BrightSharp.Ui.Tests/Properties/Settings.settings b/BrightSharp.Ui.Tests/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/BrightSharp.Ui.Tests/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BrightSharp.sln b/BrightSharp.sln
index 1a9bcf9..92398a7 100644
--- a/BrightSharp.sln
+++ b/BrightSharp.sln
@@ -5,6 +5,12 @@ VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrightSharp", "BrightSharp\BrightSharp.csproj", "{ACC3C556-F8E4-4F2A-A23D-8E8749679A1B}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrightSharp.Ui.Tests", "BrightSharp.Ui.Tests\BrightSharp.Ui.Tests.csproj", "{0D6E1828-8D07-4701-B98A-65DBF1604D3F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JetFrames.AppleJobs.Editor", "JetFrames.AppleJobs.Editor\JetFrames.AppleJobs.Editor.csproj", "{FD3E36B5-444A-4115-B288-6C924BEA0BD3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppleJobs.Data", "AppleJobs.Data\AppleJobs.Data.csproj", "{B4695C76-31FF-4BF1-9DC6-1BC62D374091}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +21,18 @@ Global
{ACC3C556-F8E4-4F2A-A23D-8E8749679A1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ACC3C556-F8E4-4F2A-A23D-8E8749679A1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ACC3C556-F8E4-4F2A-A23D-8E8749679A1B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0D6E1828-8D07-4701-B98A-65DBF1604D3F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0D6E1828-8D07-4701-B98A-65DBF1604D3F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0D6E1828-8D07-4701-B98A-65DBF1604D3F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0D6E1828-8D07-4701-B98A-65DBF1604D3F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FD3E36B5-444A-4115-B288-6C924BEA0BD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FD3E36B5-444A-4115-B288-6C924BEA0BD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FD3E36B5-444A-4115-B288-6C924BEA0BD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FD3E36B5-444A-4115-B288-6C924BEA0BD3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B4695C76-31FF-4BF1-9DC6-1BC62D374091}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B4695C76-31FF-4BF1-9DC6-1BC62D374091}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B4695C76-31FF-4BF1-9DC6-1BC62D374091}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B4695C76-31FF-4BF1-9DC6-1BC62D374091}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/BrightSharp/Behaviors/FiterGridTextBoxBehavior.cs b/BrightSharp/Behaviors/FiterGridTextBoxBehavior.cs
new file mode 100644
index 0000000..350765e
--- /dev/null
+++ b/BrightSharp/Behaviors/FiterGridTextBoxBehavior.cs
@@ -0,0 +1,115 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Interactivity;
+using System.Windows.Threading;
+
+namespace BrightSharp.Behaviors
+{
+ public class FilterDefaultViewTextBoxBehavior : Behavior
+ {
+ DispatcherTimer timer = new DispatcherTimer();
+ public FilterDefaultViewTextBoxBehavior()
+ {
+ timer.Tick += Timer_Tick;
+ FilterDelay = TimeSpan.FromSeconds(1);
+ IgnoreCase = null;
+ }
+
+
+ private void Timer_Tick(object sender, EventArgs e)
+ {
+ timer.Stop();
+ if (ItemsSource != null)
+ {
+ var view = CollectionViewSource.GetDefaultView(ItemsSource);
+ if (view is ListCollectionView)
+ {
+ var listCollectionView = (ListCollectionView)view;
+ if (listCollectionView.IsAddingNew || listCollectionView.IsEditingItem) return;
+ }
+ view.Filter = CustomFilter ?? GetDefaultFilter(ItemsSource.GetType().GetGenericArguments()[0]);
+ }
+ }
+
+
+
+ public bool HasFilterText
+ {
+ get { return (bool)GetValue(HasFilterTextProperty); }
+ set { SetValue(HasFilterTextProperty, value); }
+ }
+
+ public static readonly DependencyProperty HasFilterTextProperty =
+ DependencyProperty.Register("HasFilterText", typeof(bool), typeof(FilterDefaultViewTextBoxBehavior), new PropertyMetadata(false));
+
+
+
+ public IEnumerable ItemsSource
+ {
+ get { return (IEnumerable)GetValue(ItemsSourceProperty); }
+ set { SetValue(ItemsSourceProperty, value); }
+ }
+
+ // Using a DependencyProperty as the backing store for ItemsSource. This enables animation, styling, binding, etc...
+ public static readonly DependencyProperty ItemsSourceProperty =
+ DependencyProperty.Register("ItemsSource", typeof(IEnumerable), typeof(FilterDefaultViewTextBoxBehavior), new PropertyMetadata(null));
+
+
+ public bool? IgnoreCase { get; set; }
+ private Predicate