├── WPFCrudControl-1.0.1 ├── Northwind.DAL │ ├── App.config │ ├── FodyWeavers.xml │ ├── packages.config │ └── Models │ │ ├── Territory.cs │ │ ├── Shipper.cs │ │ ├── Region.cs │ │ ├── Category.cs │ │ └── Order_Detail.cs ├── GenericCodes.Core │ ├── App.config │ ├── IDisposable.cs │ ├── packages.config │ ├── UnitOfWork │ │ └── IUnitOfWork.cs │ ├── Helper │ │ └── QueryableExtensions.cs │ ├── Services │ │ └── IService.cs │ └── Repositories │ │ └── IRepository.cs ├── .nuget │ ├── NuGet.exe │ └── NuGet.Config ├── Northwind.Demo │ ├── FodyWeavers.xml │ ├── Resources │ │ ├── Images │ │ │ └── DemoIcon.png │ │ ├── ProductTemplates.xaml │ │ └── SuppliersTemplates.xaml │ ├── Properties │ │ ├── Settings.settings │ │ └── Settings.Designer.cs │ ├── ViewModel │ │ ├── Suppliers │ │ │ ├── SuppliersAddEditViewModel.cs │ │ │ └── SuppliersViewModel.cs │ │ └── MainViewModel.cs │ ├── MainWindow.xaml.cs │ ├── packages.config │ ├── App.xaml.cs │ └── Views │ │ ├── Products │ │ ├── ProductAddEdit.xaml.cs │ │ ├── ProductsSearch.xaml.cs │ │ └── ProductsList.xaml.cs │ │ └── Suppliers │ │ ├── SuppliersSearch.xaml.cs │ │ ├── SuppliersAddEdit.xaml.cs │ │ └── SuppliersUC.xaml.cs ├── ArmWater.DAL │ ├── packages.config │ ├── ArmWaterDB.cs │ ├── fn_GetTableNamesForSequences_Result.cs │ ├── fn_Split_Result.cs │ ├── fn_GetTableNamesWithLASTMODIFIEDColumn_Result.cs │ ├── fn_GetTableNamesForDataCopyingDuringSetup_Result.cs │ ├── BS_LANG.cs │ ├── fn_SplitIn2Columns_Result.cs │ ├── fn_GetAllTableNames_Result.cs │ ├── fn_GetTableNamesForAdditionalDataCopyingForRestoring_Result.cs │ ├── fn_GetTableNamesForManageableDataCopyingForRestoring_Result.cs │ ├── fn_GetTableNamesWithClientTypeByCustomerForSequences_Result.cs │ ├── fn_GetAllCustomerTableNames_Result.cs │ ├── BS_PRIVILEGE_CLASS_TYPE.cs │ ├── BS_PROC_NAMES.cs │ ├── TJODBGROUP.cs │ ├── fn_GetTableNamesWithDATEColumn_Result.cs │ ├── ArmWaterDB.Designer.cs │ ├── BS_STRING.cs │ ├── TJODBGLOBALPROPERTY.cs │ ├── BS_GROUP.cs │ ├── fn_GetTableNamesForModifiedDataBackupingForArchiving_Result.cs │ ├── TJODBCLASSPRIVELEGE.cs │ ├── BS_SERVICE.cs │ ├── TAWDBSNINDICATIONMAP.cs │ ├── BS_OTHER_SYSTEMS.cs │ ├── TJODBCSTSPRIVELEGE.cs │ ├── TJODBDETAILPRIVELEGE.cs │ ├── TJODBMETHODPRIVELEGE.cs │ ├── BS_PRIVILEGE_DETAILS.cs │ ├── BS_PRIVILEGE_TASK.cs │ ├── BS_PRIVILEGE_METHOD.cs │ ├── fn_GetAllTableNamesAndColumnsForChangingCalculatedField_Result.cs │ ├── TAWDBCALCINTERVAL.cs │ ├── BS_QUERY.cs │ ├── TJODBPROPPRIVELEGE.cs │ ├── BS_DETAIL_INFO.cs │ ├── TAWDBBANK.cs │ ├── fn_GetAllTableNamesAndColumnsForReCalculationOfChangedCalculatedField_Result.cs │ ├── BS_PRIVILEGE_PROP.cs │ ├── TJODBQUERY.cs │ ├── TJODBLIBVALUE.cs │ ├── TAWDBCONTRACTGROUP.cs │ ├── BS_STANDARD_REPORTS.cs │ ├── TAWDBBILLINGCYCLEVISIT.cs │ ├── TAWDBDRAINAGEPOINT.cs │ ├── TAWDBOLDDUTYFSM.cs │ ├── BS_STANDARD_REPORTS_PROP.cs │ ├── BS_TABLE_SEQUENCES.cs │ ├── fn_GetAllTableNamesForChangingCalculatedField_Result.cs │ ├── TAWDBCUSTOMSERVICE.cs │ ├── TAWDBBRANCHACCOUNT.cs │ ├── TJODBLIBVALUE257.cs │ ├── TJODBLIBVALUE258.cs │ ├── TJODBLIBVALUE259.cs │ ├── TJODBLIBVALUE261.cs │ ├── TJODBLIBVALUE262.cs │ ├── TJODBLIBVALUE264.cs │ ├── TJODBLIBVALUE265.cs │ ├── TJODBLIBVALUE266.cs │ ├── TJODBLIBVALUE267.cs │ ├── TJODBLIBVALUE5.cs │ ├── TAWDBFINANCETYPE.cs │ ├── TAWDBSUBSPHERE.cs │ ├── fn_GetAllTableNamesForReCalculationOfChangedCalculatedField_Result.cs │ ├── TAWDBBILLINGCYCLE.cs │ ├── TJODBHISTORY.cs │ ├── BS_PROCESS.cs │ ├── TAWDBBILLINGCYCLEPLAN.cs │ ├── TJODBUSER.cs │ ├── BS_STANDARD_REPORTS_BUILDER.cs │ └── TAWDBSTATEMENT.cs ├── GenericCodes.CRUDWPFNuGet.Packager │ ├── NuGet.exe │ ├── lib │ │ ├── GenericCodes.Core.dll │ │ ├── GenericCodes.CRUD.WPF.dll │ │ └── GenericCodes.Resources.dll │ ├── WPFCRUDControl.1.0.0.nupkg.bak │ ├── WPFCRUDControl.1.0.1.nupkg.bak │ ├── tools │ │ ├── uninstall.ps1 │ │ ├── init.ps1 │ │ └── install.ps1 │ ├── NuGet.config │ └── content │ │ └── App.xaml.uninstall.xdt ├── GenericCodes.CRUD.WPF │ ├── packages.config │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── Core │ │ ├── PopupTypeEnum.cs │ │ └── ColumnTypeEnum.cs │ ├── Converters │ │ └── BaseConverter.cs │ ├── Views │ │ └── CRUD │ │ │ └── AddEditPopupWindow.xaml.cs │ ├── Helpers │ │ └── EnumToItemsSource.cs │ ├── UIServices │ │ └── IDialogService.cs │ └── ViewModel │ │ └── CRUDBases │ │ └── PopupViewModelBase.cs ├── Northwind.Service │ ├── packages.config │ ├── Interfaces │ │ ├── IProductService.cs │ │ ├── ISuppliersService.cs │ │ └── ICategoryService.cs │ ├── ProductService.cs │ ├── Helper │ │ └── ServiceLocatorHelper.cs │ └── CategoryService.cs ├── .gitattributes └── LICENSE ├── Testing WPF and WCF ├── TestingForAzure │ ├── Global.asax │ ├── Global.asax.cs │ ├── App_Start │ │ └── WebApiConfig.cs │ └── Controllers │ │ └── DefaultController.cs ├── MultiPageWPF │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── MainWindow.xaml.cs │ ├── App.xaml │ ├── App.xaml.cs │ └── MainWindow.xaml └── LestingLusExample │ ├── App.config │ ├── Properties │ └── Settings.settings │ ├── App.xaml │ ├── App.xaml.cs │ └── MainWindow.xaml.cs ├── TestingWeb_API_EF ├── CRM_Database_Project.rar ├── Consoleconnection │ ├── packages.config │ ├── crmModelDb.cs │ ├── crmModelDb.Designer.cs │ ├── crmModelDb.edmx.diagram │ └── crmModelDb.Context.cs ├── DataBaseManagerClassLibrary │ ├── packages.config │ ├── DatabaseModel.cs │ ├── DatabaseModel.Designer.cs │ ├── DatabaseModel.edmx.diagram │ └── DatabaseModel.Context.cs ├── testClient │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml │ ├── App.xaml.cs │ ├── MainWindow.xaml │ └── MainWindow.xaml.cs └── CRM_Database_Project │ └── dbo │ └── Tables │ ├── EmailLists.sql │ ├── Partners.sql │ └── EmailListPartners.sql ├── WPF to WEB API to WCF ├── WebApiClinetForWCF │ ├── Global.asax │ ├── Global.asax.cs │ ├── App_Start │ │ └── WebApiConfig.cs │ └── Service References │ │ └── ServiceReference1 │ │ ├── WebApiClinetForWCF.ServiceReference1.Person.datasource │ │ └── WCF.xsd ├── WpfBaseClientForWebApi │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml.cs │ ├── App.xaml │ └── packages.config ├── WCF │ └── packages.config └── README.md ├── Betrayer ├── Client1 │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ └── Settings.Designer.cs │ ├── MainWindow.xaml.cs │ ├── App.xaml │ ├── App.xaml.cs │ └── MainWindow.xaml └── Client2 │ ├── Properties │ ├── Settings.settings │ ├── DataSources │ │ └── WCFService.CompositeType.datasource │ └── Settings.Designer.cs │ ├── App.xaml │ ├── App.xaml.cs │ ├── Service References │ └── ServiceReference1 │ │ └── WCFService.xsd │ ├── App.config │ ├── ClientService.cs │ └── MainWindow.xaml ├── Data Binding ├── DataTamplate │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── MainWindow.xaml.cs │ ├── App.xaml │ ├── App.xaml.cs │ └── Person.cs ├── Multiple Binding │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── MainWindow.xaml.cs │ ├── App.xaml │ └── App.xaml.cs ├── ElementToElementBinding │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml.cs │ ├── App.xaml │ └── MainWindow.xaml.cs ├── UsingCollectionsInBinding │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml.cs │ ├── App.xaml │ ├── MainWindow.xaml.cs │ └── MainWindow.xaml ├── SoccerDataApp │ ├── Player.cs │ ├── App.xaml │ ├── App.xaml.cs │ └── App.config ├── Relative Source DataContext Binding To class │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml.cs │ ├── MainWindow.xaml.cs │ └── App.xaml └── binding To SQL │ ├── App.xaml │ ├── App.xaml.cs │ ├── Book.cs │ ├── App.config │ └── Properties │ └── Settings.settings ├── Lesson1homeworks ├── Task1 │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ └── Settings.Designer.cs │ ├── App.xaml │ ├── App.xaml.cs │ └── MainWindow.xaml.cs └── Lesson1homeworks.sln ├── MahAppsTest ├── MahhAppsTest1 │ ├── App.config │ ├── packages.config │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml.cs │ ├── MainWindow.xaml.cs │ └── MainWindow.xaml └── MahAppsTest.sln ├── NET.Tcp_Test ├── WpfClient │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ └── Settings.Designer.cs │ ├── App.xaml │ └── App.xaml.cs ├── WpfServerNetTCP │ ├── App.config │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml │ └── App.xaml.cs ├── Net.TcpServer │ ├── Service1.cs │ ├── app.config │ └── IService1.cs └── ServiceClassLibrary │ └── RCRServer1.cs ├── NetTcpCallBackTesting ├── NetTcpCallBackTesting │ └── App.config └── NetTcpCallBackTesting.sln ├── Lesson2WCF ├── WpfApplication1 │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml │ ├── App.xaml.cs │ ├── Service References │ │ ├── ServiceReference1 │ │ │ ├── Arrays.xsd │ │ │ ├── WpfApplication1.ServiceReference1.Person.datasource │ │ │ └── WCFSampleApp.xsd │ │ └── ServiceReference2 │ │ │ ├── Wcf2.xsd │ │ │ └── WpfApplication1.ServiceReference2.Game.datasource │ ├── MainWindow.xaml │ └── App.config ├── WCFSampleApp │ ├── Person.cs │ ├── IBetService.cs │ └── BetService.cs └── Wcf2 │ └── Service1.cs ├── WCF_WPF_Chat_Test_Project ├── WpfClient │ ├── Properties │ │ └── Settings.settings │ ├── App.xaml │ └── App.xaml.cs └── WpfServer │ ├── Properties │ └── Settings.settings │ ├── App.xaml │ ├── App.xaml.cs │ └── App.config └── win ├── win └── Service1.cs └── win.sln /WPFCrudControl-1.0.1/Northwind.DAL/App.config: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.Core/App.config: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.DAL/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/.nuget/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/WPFCrudControl-1.0.1/.nuget/NuGet.exe -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Testing WPF and WCF/TestingForAzure/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="TestingForAzure.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/CRM_Database_Project.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/TestingWeb_API_EF/CRM_Database_Project.rar -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WebApiClinetForWCF/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="WebApiClinetForWCF.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/Consoleconnection/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/NuGet.exe -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Resources/Images/DemoIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/WPFCrudControl-1.0.1/Northwind.Demo/Resources/Images/DemoIcon.png -------------------------------------------------------------------------------- /TestingWeb_API_EF/DataBaseManagerClassLibrary/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUD.WPF/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.Core/IDisposable.cs: -------------------------------------------------------------------------------- 1 | namespace GenericCodes.Core 2 | { 3 | public interface IDisposable : System.IDisposable 4 | { 5 | bool IsDisposed { get; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/.nuget/NuGet.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Betrayer/Client1/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Data Binding/DataTamplate/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Lesson1homeworks/Task1/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /MahAppsTest/MahhAppsTest1/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /NET.Tcp_Test/WpfClient/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/lib/GenericCodes.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/lib/GenericCodes.Core.dll -------------------------------------------------------------------------------- /Data Binding/Multiple Binding/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /NET.Tcp_Test/WpfServerNetTCP/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/testClient/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/lib/GenericCodes.CRUD.WPF.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/lib/GenericCodes.CRUD.WPF.dll -------------------------------------------------------------------------------- /Data Binding/ElementToElementBinding/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Testing WPF and WCF/MultiPageWPF/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/WPFCRUDControl.1.0.0.nupkg.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/WPFCRUDControl.1.0.0.nupkg.bak -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/WPFCRUDControl.1.0.1.nupkg.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/WPFCRUDControl.1.0.1.nupkg.bak -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/lib/GenericCodes.Resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigranv/WPF_XAML_WCF_Useful-Examples/HEAD/WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/lib/GenericCodes.Resources.dll -------------------------------------------------------------------------------- /Data Binding/UsingCollectionsInBinding/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Testing WPF and WCF/LestingLusExample/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /NetTcpCallBackTesting/NetTcpCallBackTesting/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WpfBaseClientForWebApi/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUD.WPF/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Betrayer/Client1/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Betrayer/Client2/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Data Binding/SoccerDataApp/Player.cs: -------------------------------------------------------------------------------- 1 | namespace SoccerDataApp 2 | { 3 | public class Player 4 | { 5 | public int ID { get; set; } 6 | public string Name { get; set; } 7 | public string About { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Lesson1homeworks/Task1/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /MahAppsTest/MahhAppsTest1/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /NET.Tcp_Test/WpfClient/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Data Binding/DataTamplate/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Data Binding/Relative Source DataContext Binding To class/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /MahAppsTest/MahhAppsTest1/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /NET.Tcp_Test/WpfServerNetTCP/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/testClient/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Data Binding/Multiple Binding/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Testing WPF and WCF/MultiPageWPF/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Service/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Data Binding/ElementToElementBinding/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Data Binding/UsingCollectionsInBinding/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Testing WPF and WCF/LestingLusExample/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WCF_WPF_Chat_Test_Project/WpfClient/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WCF_WPF_Chat_Test_Project/WpfServer/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUD.WPF/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.Core/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WpfBaseClientForWebApi/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Data Binding/DataTamplate/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace DataTamplate 4 | { 5 | public partial class MainWindow : Window 6 | { 7 | public MainWindow() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Data Binding/Relative Source DataContext Binding To class/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Testing WPF and WCF/MultiPageWPF/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace MultiPageWPF 4 | { 5 | public partial class MainWindow : Window 6 | { 7 | public MainWindow() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/CRM_Database_Project/dbo/Tables/EmailLists.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE [dbo].[EmailLists] ( 2 | [EmailListID] INT IDENTITY (1, 1) NOT NULL, 3 | [EmailListName] VARCHAR (200) NOT NULL, 4 | CONSTRAINT [PK_EmailLists] PRIMARY KEY CLUSTERED ([EmailListID] ASC) 5 | ); 6 | 7 | -------------------------------------------------------------------------------- /Data Binding/Multiple Binding/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace Multiple_Binding 4 | { 5 | public partial class MainWindow : Window 6 | { 7 | public MainWindow() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUD.WPF/Core/PopupTypeEnum.cs: -------------------------------------------------------------------------------- 1 | namespace GenericCodes.CRUD.WPF.Core 2 | { 3 | /// 4 | /// Enum that represent the Crud PopupwindowType 5 | /// 6 | public enum PopupTypeEnum 7 | { 8 | Add, 9 | Edit 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Lesson2WCF/WCFSampleApp/Person.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.Serialization; 2 | 3 | namespace WCFSampleApp 4 | { 5 | [DataContract] 6 | public class Person 7 | { 8 | [DataMember] 9 | public string Name { get; set; } 10 | 11 | [DataMember] 12 | public int Age{ get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUD.WPF/Core/ColumnTypeEnum.cs: -------------------------------------------------------------------------------- 1 | namespace GenericCodes.CRUD.WPF.Core 2 | { 3 | /// 4 | /// Enum that represent the Crud Grid Columns type 5 | /// 6 | public enum ColumnTypeEnum 7 | { 8 | TextColumn, 9 | TemplateColumn 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Betrayer/Client1/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace Client1 4 | { 5 | /// 6 | /// Interaction logic for MainWindow.xaml 7 | /// 8 | public partial class MainWindow : Window 9 | { 10 | public MainWindow() 11 | { 12 | InitializeComponent(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.DAL/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUD.WPF/Converters/BaseConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Markup; 3 | 4 | namespace GenericCodes.CRUD.WPF.Converters 5 | { 6 | public abstract class BaseConverter : MarkupExtension 7 | { 8 | public override object ProvideValue(IServiceProvider serviceProvider) 9 | { 10 | return this; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Betrayer/Client1/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Betrayer/Client2/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Lesson1homeworks/Task1/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/CRM_Database_Project/dbo/Tables/Partners.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE [dbo].[Partners] ( 2 | [PartnerID] INT IDENTITY (1, 1) NOT NULL, 3 | [FullName] VARCHAR (100) NOT NULL, 4 | [CompanyName] VARCHAR (200) NULL, 5 | [Position] VARCHAR (50) NULL, 6 | [Email] VARCHAR (150) NOT NULL, 7 | CONSTRAINT [PK_Partners] PRIMARY KEY CLUSTERED ([PartnerID] ASC) 8 | ); 9 | 10 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Service/Interfaces/IProductService.cs: -------------------------------------------------------------------------------- 1 | using GenericCodes.Core.Services; 2 | using Northwind.DAL.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace Northwind.Service.Interfaces 10 | { 11 | public interface IProductService : IService 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Service/Interfaces/ISuppliersService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using GenericCodes.Core.Services; 3 | using Northwind.DAL.Models; 4 | 5 | namespace Northwind.Service.Interfaces 6 | { 7 | public interface ISuppliersService : IService 8 | { 9 | void UpdateCanSelect(List entities); 10 | List GetALL(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Betrayer/Client1/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace Client1 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Betrayer/Client2/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace Client2 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Lesson1homeworks/Task1/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace Task1 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /NET.Tcp_Test/WpfClient/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /NET.Tcp_Test/WpfClient/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace WpfClient 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Data Binding/DataTamplate/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Data Binding/DataTamplate/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace DataTamplate 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/testClient/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Data Binding/SoccerDataApp/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Data Binding/SoccerDataApp/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace SoccerDataApp 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Data Binding/binding To SQL/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Data Binding/binding To SQL/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace binding_To_SQL 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace WpfApplication1 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /MahAppsTest/MahhAppsTest1/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace MahhAppsTest1 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Testing WPF and WCF/MultiPageWPF/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/testClient/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace testClient 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /WCF_WPF_Chat_Test_Project/WpfClient/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WCF_WPF_Chat_Test_Project/WpfServer/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Data Binding/Multiple Binding/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Data Binding/Multiple Binding/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace Multiple_Binding 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /NET.Tcp_Test/WpfServerNetTCP/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /NET.Tcp_Test/WpfServerNetTCP/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace WpfServerNetTCP 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Testing WPF and WCF/MultiPageWPF/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace MultiPageWPF 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /WCF_WPF_Chat_Test_Project/WpfClient/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace WpfClient 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /WCF_WPF_Chat_Test_Project/WpfServer/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace WpfServer 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Testing WPF and WCF/LestingLusExample/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Testing WPF and WCF/LestingLusExample/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace LestingLusExample 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUD.WPF/Views/CRUD/AddEditPopupWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace GenericCodes.CRUD.WPF.Views.CRUD 4 | { 5 | /// 6 | /// Interaction logic for AddEditWindow.xaml 7 | /// 8 | public partial class AddEditPopupWindow : Window 9 | { 10 | public AddEditPopupWindow() 11 | { 12 | InitializeComponent(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Data Binding/ElementToElementBinding/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace ElementToElementBinding 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Service/Interfaces/ICategoryService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using GenericCodes.Core.Services; 7 | using Northwind.DAL.Models; 8 | 9 | namespace Northwind.Service.Interfaces 10 | { 11 | public interface ICategoryService : IService 12 | { 13 | List GetALL(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Data Binding/UsingCollectionsInBinding/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace UsingCollectionsInBinding 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WCF/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WpfBaseClientForWebApi/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace WpfBaseClientForWebApi 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Data Binding/ElementToElementBinding/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /NET.Tcp_Test/Net.TcpServer/Service1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.Serialization; 5 | using System.ServiceModel; 6 | using System.Text; 7 | 8 | namespace Net.TcpServer 9 | { 10 | public class Service1 : IService1 11 | { 12 | public string GetData(int value) 13 | { 14 | return string.Format("You entered: {0}", value); 15 | } 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Data Binding/UsingCollectionsInBinding/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WpfBaseClientForWebApi/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Lesson2WCF/WCFSampleApp/IBetService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ServiceModel; 3 | 4 | namespace WCFSampleApp 5 | { 6 | [ServiceContract] 7 | public interface IBetService 8 | { 9 | [OperationContract] 10 | string GetValue(int i); 11 | 12 | [OperationContract] 13 | List CalculateSin(double[] x); 14 | 15 | [OperationContract] 16 | List GetPerson(); 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/tools/uninstall.ps1: -------------------------------------------------------------------------------- 1 | # Runs every time a package is uninstalled 2 | 3 | param($installPath, $toolsPath, $package, $project) 4 | 5 | # $installPath is the path to the folder where the package is installed. 6 | # $toolsPath is the path to the tools directory in the folder where the package is installed. 7 | # $package is a reference to the package object. 8 | # $project is a reference to the project the package was installed to. 9 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WpfBaseClientForWebApi/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/tools/init.ps1: -------------------------------------------------------------------------------- 1 | # Runs the first time a package is installed in a solution, and every time the solution is opened. 2 | 3 | param($installPath, $toolsPath, $package, $project) 4 | 5 | # $installPath is the path to the folder where the package is installed. 6 | # $toolsPath is the path to the tools directory in the folder where the package is installed. 7 | # $package is a reference to the package object. 8 | # $project is null in init.ps1 9 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/tools/install.ps1: -------------------------------------------------------------------------------- 1 | # Runs every time a package is installed in a project 2 | 3 | param($installPath, $toolsPath, $package, $project) 4 | 5 | # $installPath is the path to the folder where the package is installed. 6 | # $toolsPath is the path to the tools directory in the folder where the package is installed. 7 | # $package is a reference to the package object. 8 | # $project is a reference to the project the package was installed to. 9 | -------------------------------------------------------------------------------- /Testing WPF and WCF/TestingForAzure/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Http; 6 | using System.Web.Routing; 7 | 8 | namespace TestingForAzure 9 | { 10 | public class WebApiApplication : System.Web.HttpApplication 11 | { 12 | protected void Application_Start() 13 | { 14 | GlobalConfiguration.Configure(WebApiConfig.Register); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Data Binding/Relative Source DataContext Binding To class/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace Relative_Source_DataContext_Binding_To_class 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Data Binding/Relative Source DataContext Binding To class/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace Relative_Source_DataContext_Binding_To_class 4 | { 5 | public partial class MainWindow : Window 6 | { 7 | public MainWindow() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | 13 | public class Person 14 | { 15 | public string FirstName { get; set; } 16 | public string LastName { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WebApiClinetForWCF/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Http; 6 | using System.Web.Routing; 7 | 8 | namespace WebApiClinetForWCF 9 | { 10 | public class WebApiApplication : System.Web.HttpApplication 11 | { 12 | protected void Application_Start() 13 | { 14 | GlobalConfiguration.Configure(WebApiConfig.Register); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/ArmWaterDB.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/Consoleconnection/crmModelDb.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /Data Binding/binding To SQL/Book.cs: -------------------------------------------------------------------------------- 1 | namespace binding_To_SQL 2 | { 3 | public class Book 4 | { 5 | public string Title { get; set; } 6 | public string Description { get; set; } 7 | public string Author { get; set; } 8 | 9 | public Book() { } 10 | public Book(string title, string description, string author) 11 | { 12 | Title = title; 13 | Description = description; 14 | Author = author; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/DataBaseManagerClassLibrary/DatabaseModel.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /Data Binding/Relative Source DataContext Binding To class/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.DAL/Models/Territory.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace Northwind.DAL.Models 4 | { 5 | public partial class Territory 6 | { 7 | [StringLength(20)] 8 | public string TerritoryID { get; set; } 9 | 10 | [Required] 11 | [StringLength(50)] 12 | public string TerritoryDescription { get; set; } 13 | 14 | public int RegionID { get; set; } 15 | 16 | public virtual Region Region { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /NET.Tcp_Test/Net.TcpServer/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /NET.Tcp_Test/Net.TcpServer/IService1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.Serialization; 5 | using System.ServiceModel; 6 | using System.Text; 7 | 8 | namespace Net.TcpServer 9 | { 10 | // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together. 11 | [ServiceContract] 12 | public interface IService1 13 | { 14 | [OperationContract] 15 | string GetData(int value); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/testClient/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Testing WPF and WCF/MultiPageWPF/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/NuGet.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.Core/UnitOfWork/IUnitOfWork.cs: -------------------------------------------------------------------------------- 1 | using System.Data; 2 | using GenericCodes.Core.Entities; 3 | using GenericCodes.Core.Repositories; 4 | 5 | namespace GenericCodes.Core.UnitOfWork 6 | { 7 | public interface IUnitOfWork : IDisposable 8 | { 9 | int SaveChanges(); 10 | void Dispose(bool disposing); 11 | IRepository Repository() where TEntity : Entity; 12 | void BeginTransaction(IsolationLevel isolationLevel = IsolationLevel.Unspecified); 13 | bool Commit(); 14 | void Rollback(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/ViewModel/Suppliers/SuppliersAddEditViewModel.cs: -------------------------------------------------------------------------------- 1 | using GenericCodes.CRUD.WPF.ViewModel.CRUDBases; 2 | using Northwind.DAL.Models; 3 | using Northwind.Service.Interfaces; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Northwind.Demo.ViewModel.Suppliers 11 | { 12 | public class SuppliersAddEditViewModel : AddEditEntityBase 13 | { 14 | public SuppliersAddEditViewModel() 15 | : base() 16 | { 17 | 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Data Binding/binding To SQL/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/Service References/ServiceReference1/Arrays.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Lesson1homeworks/Task1/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace Task1 4 | { 5 | public partial class MainWindow : Window 6 | { 7 | public MainWindow() 8 | { 9 | InitializeComponent(); 10 | } 11 | 12 | private void Show(object sender, RoutedEventArgs e) 13 | { 14 | if (string.IsNullOrEmpty(passwor.Text) || string.IsNullOrEmpty(login.Text)) 15 | { 16 | MessageBox.Show("Error"); 17 | } 18 | else 19 | { 20 | MessageBox.Show("ura"); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/Service References/ServiceReference2/Wcf2.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | using FirstFloor.ModernUI.Windows.Controls; 3 | using Northwind.Demo.ViewModel; 4 | 5 | namespace Northwind.Demo 6 | { 7 | /// 8 | /// Interaction logic for MainWindow.xaml 9 | /// 10 | public partial class MainWindow : ModernWindow 11 | { 12 | /// 13 | /// Initializes a new instance of the MainWindow class. 14 | /// 15 | public MainWindow() 16 | { 17 | InitializeComponent(); 18 | Closing += (s, e) => ViewModelLocator.Cleanup(); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /TestingWeb_API_EF/CRM_Database_Project/dbo/Tables/EmailListPartners.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE [dbo].[EmailListPartners] ( 2 | [EmailLists_EmailListID] INT NOT NULL, 3 | [Partners_PartnerID] INT NOT NULL, 4 | CONSTRAINT [FK_EmailListPartners_EmailLists] FOREIGN KEY ([EmailLists_EmailListID]) REFERENCES [dbo].[EmailLists] ([EmailListID]) ON DELETE CASCADE, 5 | CONSTRAINT [FK_EmailListPartners_Partners] FOREIGN KEY ([Partners_PartnerID]) REFERENCES [dbo].[Partners] ([PartnerID]) ON DELETE CASCADE 6 | ); 7 | 8 | 9 | GO 10 | CREATE NONCLUSTERED INDEX [IX_FK_EmailListPartners_Partners] 11 | ON [dbo].[EmailListPartners]([Partners_PartnerID] ASC); 12 | 13 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.DAL/Models/Shipper.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace Northwind.DAL.Models 5 | { 6 | public partial class Shipper 7 | { 8 | public Shipper() 9 | { 10 | Orders = new HashSet(); 11 | } 12 | 13 | public int ShipperID { get; set; } 14 | 15 | [Required] 16 | [StringLength(40)] 17 | public string CompanyName { get; set; } 18 | 19 | [StringLength(24)] 20 | public string Phone { get; set; } 21 | 22 | public virtual ICollection Orders { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Data Binding/SoccerDataApp/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Betrayer/Client2/Properties/DataSources/WCFService.CompositeType.datasource: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | WCFService.CompositeType, WCFService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /Betrayer/Client2/Service References/ServiceReference1/WCFService.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUDWPFNuGet.Packager/content/App.xaml.uninstall.xdt: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.CRUD.WPF/Helpers/EnumToItemsSource.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Windows.Markup; 4 | 5 | namespace GenericCodes.CRUD.WPF.Helpers 6 | { 7 | public class EnumToItemsSource : MarkupExtension 8 | { 9 | private readonly Type _type; 10 | 11 | public EnumToItemsSource(Type type) 12 | { 13 | _type = type; 14 | } 15 | 16 | public override object ProvideValue(IServiceProvider serviceProvider) 17 | { 18 | return Enum.GetValues(_type) 19 | .Cast() 20 | .Select(e => new { Value = e, DisplayName = e.ToString() }); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetTableNamesForSequences_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetTableNamesForSequences_Result 15 | { 16 | public string Name { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_Split_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_Split_Result 15 | { 16 | public int PN { get; set; } 17 | public string Value { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Service/ProductService.cs: -------------------------------------------------------------------------------- 1 | using GenericCodes.Core.Repositories; 2 | using GenericCodes.Core.Services; 3 | using Northwind.DAL.Models; 4 | using Northwind.Service.Interfaces; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using GenericCodes.Core.Helper; 11 | using GenericCodes.Core.UnitOfWork; 12 | using Microsoft.Practices.ServiceLocation; 13 | 14 | namespace Northwind.Service 15 | { 16 | public class ProductService : Service, IProductService 17 | { 18 | public ProductService(IRepository repository) 19 | : base(repository) 20 | { 21 | 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Testing WPF and WCF/TestingForAzure/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web.Http; 5 | 6 | namespace TestingForAzure 7 | { 8 | public static class WebApiConfig 9 | { 10 | public static void Register(HttpConfiguration config) 11 | { 12 | // Web API configuration and services 13 | 14 | // Web API routes 15 | config.MapHttpAttributeRoutes(); 16 | 17 | config.Routes.MapHttpRoute( 18 | name: "DefaultApi", 19 | routeTemplate: "api/{controller}/{id}", 20 | defaults: new { id = RouteParameter.Optional } 21 | ); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetTableNamesWithLASTMODIFIEDColumn_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetTableNamesWithLASTMODIFIEDColumn_Result 15 | { 16 | public string Name { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetTableNamesForDataCopyingDuringSetup_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetTableNamesForDataCopyingDuringSetup_Result 15 | { 16 | public string Name { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.DAL/Models/Region.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.ComponentModel.DataAnnotations.Schema; 4 | 5 | namespace Northwind.DAL.Models 6 | { 7 | [Table("Region")] 8 | public partial class Region 9 | { 10 | public Region() 11 | { 12 | Territories = new HashSet(); 13 | } 14 | 15 | [DatabaseGenerated(DatabaseGeneratedOption.None)] 16 | public int RegionID { get; set; } 17 | 18 | [Required] 19 | [StringLength(50)] 20 | public string RegionDescription { get; set; } 21 | 22 | public virtual ICollection Territories { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WebApiClinetForWCF/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web.Http; 5 | 6 | namespace WebApiClinetForWCF 7 | { 8 | public static class WebApiConfig 9 | { 10 | public static void Register(HttpConfiguration config) 11 | { 12 | // Web API configuration and services 13 | 14 | // Web API routes 15 | config.MapHttpAttributeRoutes(); 16 | 17 | config.Routes.MapHttpRoute( 18 | name: "DefaultApi", 19 | routeTemplate: "api/{controller}/{id}", 20 | defaults: new { id = RouteParameter.Optional } 21 | ); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/BS_LANG.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class BS_LANG 16 | { 17 | public int ID { get; set; } 18 | public string NAME { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_SplitIn2Columns_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_SplitIn2Columns_Result 15 | { 16 | public string Value1 { get; set; } 17 | public string Value2 { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Service/Helper/ServiceLocatorHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Microsoft.Practices.ServiceLocation; 7 | using GenericCodes.Core.Repositories; 8 | using GenericCodes.Core.UnitOfWork; 9 | 10 | 11 | namespace Northwind.Service.Helper 12 | { 13 | internal static class ServiceLocatorHelper 14 | { 15 | #region UnitOfWork 16 | public static IUnitOfWork NorthwindUnitOfWork 17 | { 18 | get 19 | { 20 | return ServiceLocator.Current.GetInstance(); 21 | } 22 | } 23 | 24 | #endregion 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/Service References/ServiceReference2/WpfApplication1.ServiceReference2.Game.datasource: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | WpfApplication1.ServiceReference2.Game, Service References.ServiceReference2.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetAllTableNames_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetAllTableNames_Result 15 | { 16 | public Nullable Object_Id { get; set; } 17 | public string Name { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Resources/ProductTemplates.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/Service References/ServiceReference1/WpfApplication1.ServiceReference1.Person.datasource: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | WpfApplication1.ServiceReference1.Person, Service References.ServiceReference1.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Resources/SuppliersTemplates.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetTableNamesForAdditionalDataCopyingForRestoring_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetTableNamesForAdditionalDataCopyingForRestoring_Result 15 | { 16 | public string Name { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetTableNamesForManageableDataCopyingForRestoring_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetTableNamesForManageableDataCopyingForRestoring_Result 15 | { 16 | public string Name { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetTableNamesWithClientTypeByCustomerForSequences_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetTableNamesWithClientTypeByCustomerForSequences_Result 15 | { 16 | public string Name { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Data Binding/ElementToElementBinding/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace ElementToElementBinding 4 | { 5 | public partial class MainWindow : Window 6 | { 7 | public MainWindow() 8 | { 9 | InitializeComponent(); 10 | } 11 | 12 | private void Button_Click_SetSmall(object sender, RoutedEventArgs e) 13 | { 14 | sampleText.FontSize = 5; 15 | } 16 | 17 | private void Button_Click_SetNormal(object sender, RoutedEventArgs e) 18 | { 19 | sampleText.FontSize = FontSize; 20 | } 21 | 22 | private void Button_Click_SetLarge(object sender, RoutedEventArgs e) 23 | { 24 | sampleText.FontSize = 35; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetAllCustomerTableNames_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetAllCustomerTableNames_Result 15 | { 16 | public Nullable Object_Id { get; set; } 17 | public string Name { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/WebApiClinetForWCF/Service References/ServiceReference1/WebApiClinetForWCF.ServiceReference1.Person.datasource: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | WebApiClinetForWCF.ServiceReference1.Person, Service References.ServiceReference1.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/testClient/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace testClient 17 | { 18 | /// 19 | /// Interaction logic for MainWindow.xaml 20 | /// 21 | public partial class MainWindow : Window 22 | { 23 | public MainWindow() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/BS_PRIVILEGE_CLASS_TYPE.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class BS_PRIVILEGE_CLASS_TYPE 16 | { 17 | public int ID { get; set; } 18 | public Nullable TEXT_ID { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Windows; 4 | using GalaSoft.MvvmLight.Threading; 5 | 6 | namespace Northwind.Demo 7 | { 8 | /// 9 | /// Interaction logic for App.xaml 10 | /// 11 | public partial class App : Application 12 | { 13 | static App() 14 | { 15 | DispatcherHelper.Initialize(); 16 | 17 | var appData = Directory.GetParent( 18 | Directory.GetParent( 19 | Directory.GetParent(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "")).FullName).FullName) 20 | .FullName + "\\App_Data"; 21 | 22 | AppDomain.CurrentDomain.SetData("DataDirectory", appData); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Betrayer/Client2/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/ViewModel/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | using GalaSoft.MvvmLight; 2 | 3 | namespace Northwind.Demo.ViewModel 4 | { 5 | /// 6 | /// This class contains properties that the main View can data bind to. 7 | /// 8 | /// See http://www.mvvmlight.net 9 | /// 10 | /// 11 | public class MainViewModel : ViewModelBase 12 | { 13 | 14 | /// 15 | /// Initializes a new instance of the MainViewModel class. 16 | /// 17 | public MainViewModel() 18 | { 19 | 20 | } 21 | 22 | ////public override void Cleanup() 23 | ////{ 24 | //// // Clean up if needed 25 | 26 | //// base.Cleanup(); 27 | ////} 28 | } 29 | } -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.Core/Helper/QueryableExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data.Entity; 4 | using System.Linq; 5 | using System.Linq.Expressions; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace GenericCodes.Core.Helper 10 | { 11 | public static class QueryableExtensions 12 | { 13 | public static IQueryable IncludeMultiple(this IQueryable query, params Expression>[] includes) where T : class 14 | { 15 | if (includes != null) 16 | { 17 | query = includes.Aggregate(query, 18 | (current, include) => current.Include(include)); 19 | } 20 | 21 | return query; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/BS_PROC_NAMES.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class BS_PROC_NAMES 16 | { 17 | public int ID { get; set; } 18 | public string SP_NAME { get; set; } 19 | public int SP_INDEX { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/TJODBGROUP.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TJODBGROUP 16 | { 17 | public int ID { get; set; } 18 | public Nullable LASTMODIFIED { get; set; } 19 | public string NAME { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Lesson2WCF/Wcf2/Service1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Wcf2 4 | { 5 | // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together. 6 | public class Service2 : IService2 7 | { 8 | public string GetData(int value) 9 | { 10 | return string.Format("You entered: {0}", value); 11 | } 12 | 13 | public Game GetDataUsingDataContract(Game composite) 14 | { 15 | if (composite == null) 16 | { 17 | throw new ArgumentNullException("composite"); 18 | } 19 | if (composite.BoolValue) 20 | { 21 | composite.StringValue += "Suffix"; 22 | } 23 | return composite; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MahAppsTest/MahhAppsTest1/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | using MahApps.Metro.Controls; 16 | 17 | namespace MahhAppsTest1 18 | { 19 | /// 20 | /// Interaction logic for MainWindow.xaml 21 | /// 22 | public partial class MainWindow : MetroWindow 23 | { 24 | public MainWindow() 25 | { 26 | InitializeComponent(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.Core/Services/IService.cs: -------------------------------------------------------------------------------- 1 | using GenericCodes.Core.Entities; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace GenericCodes.Core.Services 9 | { 10 | public interface IService where TEntity : Entity 11 | { 12 | TEntity Find(params object[] keyValues); 13 | void Insert(TEntity entity); 14 | void InsertRange(IEnumerable entities); 15 | void Update(TEntity entity); 16 | void Delete(object id); 17 | void Delete(TEntity entity); 18 | IQueryable Queryable(); 19 | IEnumerable List(); 20 | IEnumerable List(System.Linq.Expressions.Expression> predicate); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/fn_GetTableNamesWithDATEColumn_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | 14 | public partial class fn_GetTableNamesWithDATEColumn_Result 15 | { 16 | public string Name { get; set; } 17 | public Nullable table_type { get; set; } 18 | public string column_Name { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Views/Products/ProductAddEdit.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Northwind.Demo.Views.Products 17 | { 18 | /// 19 | /// Interaction logic for ProductAddEdit.xaml 20 | /// 21 | public partial class ProductAddEdit : UserControl 22 | { 23 | public ProductAddEdit() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Views/Products/ProductsSearch.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Northwind.Demo.Views.Products 17 | { 18 | /// 19 | /// Interaction logic for ProductsSearch.xaml 20 | /// 21 | public partial class ProductsSearch : UserControl 22 | { 23 | public ProductsSearch() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Views/Products/ProductsList.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Northwind.Demo.Views.Products 17 | { 18 | /// 19 | /// Interaction logic for ProductsUC.xaml 20 | /// 21 | public partial class ProductsList : UserControl 22 | { 23 | public ProductsList() 24 | { 25 | 26 | InitializeComponent(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Views/Suppliers/SuppliersSearch.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Northwind.Demo.Views.Suppliers 17 | { 18 | /// 19 | /// Interaction logic for SuppliersSearch.xaml 20 | /// 21 | public partial class SuppliersSearch : UserControl 22 | { 23 | public SuppliersSearch() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/ArmWaterDB.Designer.cs: -------------------------------------------------------------------------------- 1 | // T4 code generation is enabled for model 'C:\Users\Tigran PC\Desktop\Projects\WPFCrudControl-1.0.1\ArmWater.DAL\ArmWaterDB.edmx'. 2 | // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer 3 | // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model 4 | // is open in the designer. 5 | 6 | // If no context and entity classes have been generated, it may be because you created an empty model but 7 | // have not yet chosen which version of Entity Framework to use. To generate a context class and entity 8 | // classes for your model, open the model in the designer, right-click on the designer surface, and 9 | // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation 10 | // Item...'. -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/GenericCodes.Core/Repositories/IRepository.cs: -------------------------------------------------------------------------------- 1 | using GenericCodes.Core.Entities; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace GenericCodes.Core.Repositories 9 | { 10 | public interface IRepository where TEntity : Entity 11 | { 12 | TEntity Find(params object[] keyValues); 13 | void Insert(TEntity entity); 14 | void InsertRange(IEnumerable entities); 15 | void Update(TEntity entity); 16 | void Delete(object id); 17 | void Delete(TEntity entity); 18 | IEnumerable List(); 19 | IEnumerable List(System.Linq.Expressions.Expression> predicate); 20 | IQueryable Queryable(); 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.Demo/Views/Suppliers/SuppliersAddEdit.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Northwind.Demo.Views.Suppliers 17 | { 18 | /// 19 | /// Interaction logic for SuppliersAddEdit.xaml 20 | /// 21 | public partial class SuppliersAddEdit : UserControl 22 | { 23 | public SuppliersAddEdit() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/BS_STRING.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class BS_STRING 16 | { 17 | public int ID { get; set; } 18 | public Nullable LANG_ID { get; set; } 19 | public string TEXT { get; set; } 20 | public Nullable TEXT_ID { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Data Binding/UsingCollectionsInBinding/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.ObjectModel; 3 | using System.Windows; 4 | 5 | namespace UsingCollectionsInBinding 6 | { 7 | public partial class MainWindow : Window 8 | { 9 | ObservableCollection list = new ObservableCollection(); 10 | public MainWindow() 11 | { 12 | 13 | InitializeComponent(); 14 | 15 | string[] arr = { "item1", "item2", "item3", "item4" }; 16 | 17 | foreach (var item in arr) 18 | { 19 | list.Add(item); 20 | } 21 | 22 | listBox1.ItemsSource = list; 23 | } 24 | 25 | private void Button_Click(object sender, RoutedEventArgs e) 26 | { 27 | list.Add(DateTime.Now.ToLongTimeString()); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/Consoleconnection/crmModelDb.edmx.diagram: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.DAL/Models/Category.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.ComponentModel.DataAnnotations.Schema; 4 | using GenericCodes.Core; 5 | using GenericCodes.Core.Entities; 6 | 7 | namespace Northwind.DAL.Models 8 | { 9 | public partial class Category : GenericCodes.Core.Entities.Entity 10 | { 11 | public Category() 12 | { 13 | Products = new HashSet(); 14 | } 15 | 16 | public int CategoryID { get; set; } 17 | 18 | [Required] 19 | [StringLength(15)] 20 | public string CategoryName { get; set; } 21 | 22 | [Column(TypeName = "ntext")] 23 | public string Description { get; set; } 24 | 25 | [Column(TypeName = "image")] 26 | public byte[] Picture { get; set; } 27 | 28 | public virtual ICollection Products { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/Northwind.DAL/Models/Order_Detail.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | using System.ComponentModel.DataAnnotations.Schema; 3 | 4 | namespace Northwind.DAL.Models 5 | { 6 | [Table("Order Details")] 7 | public partial class Order_Detail 8 | { 9 | [Key] 10 | [Column(Order = 0)] 11 | [DatabaseGenerated(DatabaseGeneratedOption.None)] 12 | public int OrderID { get; set; } 13 | 14 | [Key] 15 | [Column(Order = 1)] 16 | [DatabaseGenerated(DatabaseGeneratedOption.None)] 17 | public int ProductID { get; set; } 18 | 19 | [Column(TypeName = "money")] 20 | public decimal UnitPrice { get; set; } 21 | 22 | public short Quantity { get; set; } 23 | 24 | public float Discount { get; set; } 25 | 26 | public virtual Order Order { get; set; } 27 | 28 | public virtual Product Product { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/TJODBCLASSPRIVELEGE.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TJODBCLASSPRIVELEGE 16 | { 17 | public int ID { get; set; } 18 | public Nullable ALLOWVIEW { get; set; } 19 | public string CLS { get; set; } 20 | public Nullable LASTMODIFIED { get; set; } 21 | public Nullable USERGROUP { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Lesson2WCF/WCFSampleApp/BetService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace WCFSampleApp 6 | { 7 | class BetService : IBetService 8 | { 9 | public List CalculateSin(double[] x) 10 | { 11 | return x.Select(p => Math.Sin(p)).ToList(); 12 | } 13 | 14 | public List GetPerson() 15 | { 16 | return new List 17 | { 18 | new Person 19 | { 20 | Name = "John Smith", 21 | Age = 45 22 | }, 23 | 24 | new Person 25 | { 26 | Name = "Bob Marley", 27 | Age = 24 28 | } 29 | }; 30 | } 31 | 32 | public string GetValue(int i) 33 | { 34 | return $"you have sent {i}"; 35 | } 36 | 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /TestingWeb_API_EF/DataBaseManagerClassLibrary/DatabaseModel.edmx.diagram: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WPF to WEB API to WCF/README.md: -------------------------------------------------------------------------------- 1 | # WPF--->WEB.API--->WCF and WCF---->WEB.API----> WPF 2 | 3 | All the classes you need to look in turn 4 | 5 | 1. [WPF main Window Xaml.cs file](https://github.com/tigranv/WPF_XAML_WCF_Useful-Examples/blob/master/WPF%20to%20WEB%20API%20to%20WCF/WpfBaseClientForWebApi/MainWindow.xaml.cs) 6 | 7 | 2. [WEB.API Controller with get and post functions](https://github.com/tigranv/WPF_XAML_WCF_Useful-Examples/blob/master/WPF%20to%20WEB%20API%20to%20WCF/WebApiClinetForWCF/Controllers/MainController.cs) 8 | 9 | 3. [Service contract](https://github.com/tigranv/WPF_XAML_WCF_Useful-Examples/blob/master/WPF%20to%20WEB%20API%20to%20WCF/WCF/IService1.cs) 10 | 11 | 4. [Service with function](https://github.com/tigranv/WPF_XAML_WCF_Useful-Examples/blob/master/WPF%20to%20WEB%20API%20to%20WCF/WCF/Service1.cs) 12 | 13 | ### How it Works 14 | ![examplefor gay](https://cloud.githubusercontent.com/assets/24522089/25574590/e45d6d06-2e60-11e7-90e7-c0adc37bcbb8.gif) 15 | -------------------------------------------------------------------------------- /Data Binding/DataTamplate/Person.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace DataTamplate 4 | { 5 | public class Person 6 | { 7 | public string FirstName { get; set; } 8 | public string LastName { get; set; } 9 | public int Age { get; set; } 10 | public string Position { get; set; } 11 | 12 | public Person(string firstName, string lastName, int age, string position) 13 | { 14 | FirstName = firstName; 15 | LastName = lastName; 16 | Age = age; 17 | Position = position; 18 | } 19 | } 20 | 21 | public class PersonList : List 22 | { 23 | public PersonList() 24 | { 25 | this.Add(new Person("Tigran", "Vardanyan", 28, "Developer")); 26 | this.Add(new Person("Artur", "Mkrtchyan", 40, "Lecturer")); 27 | this.Add(new Person("Areg", "Gevorgyan", 27, "Manager")); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Lesson2WCF/WpfApplication1/Service References/ServiceReference1/WCFSampleApp.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/BS_SERVICE.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class BS_SERVICE 16 | { 17 | public System.Guid ID { get; set; } 18 | public string SERVICE_HOST_NAME { get; set; } 19 | public string SERVICE_IP_ADDRESS { get; set; } 20 | public Nullable SERVICE_PORT_ADDRESS { get; set; } 21 | public Nullable START_TIME { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/TAWDBSNINDICATIONMAP.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TAWDBSNINDICATIONMAP 16 | { 17 | public int ID { get; set; } 18 | public Nullable BRANCH { get; set; } 19 | public Nullable EVENTDATE { get; set; } 20 | public Nullable LASTMODIFIED { get; set; } 21 | public string NUMBER { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MahAppsTest/MahhAppsTest1/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WPFCrudControl-1.0.1/ArmWater.DAL/BS_OTHER_SYSTEMS.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace ArmWater.DAL 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class BS_OTHER_SYSTEMS 16 | { 17 | public int ID { get; set; } 18 | public Nullable ENTITY_TYPE { get; set; } 19 | public string AUTH_URL { get; set; } 20 | public string AUTH_USER { get; set; } 21 | public string AUTH_PSW { get; set; } 22 | public string ACTION_URL { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /win/win/Service1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.Serialization; 5 | using System.ServiceModel; 6 | using System.Text; 7 | 8 | namespace win 9 | { 10 | // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together. 11 | public class Service1 : IService1 12 | { 13 | public string GetData(int value) 14 | { 15 | return string.Format("You entered: {0}", value); 16 | } 17 | 18 | public CompositeType GetDataUsingDataContract(CompositeType composite) 19 | { 20 | if (composite == null) 21 | { 22 | throw new ArgumentNullException("composite"); 23 | } 24 | if (composite.BoolValue) 25 | { 26 | composite.StringValue += "Suffix"; 27 | } 28 | return composite; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Betrayer/Client1/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 |