This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// DEMO CODE !!! TESTING PURPOSE ONLY | |
/// Generates on the fly the datatemplate to bind VMs to Views | |
/// </summary> | |
private void GenerateDataTemplatesForViewModels() | |
{ | |
// http://www.codeproject.com/Articles/444371/Creating-WPF-Data-Templates-in-Code-The-Right-Way | |
var assemblyTypes = Assembly.GetExecutingAssembly().GetTypes().ToList(); | |
foreach (var type in assemblyTypes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DataIntegrationService.WebApi.Controllers | |
{ | |
using System.Collections.Generic; | |
using System.Web.Http; | |
/// <summary> | |
/// Sample Api controller. | |
/// </summary> | |
public class ValuesController : ApiController | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DataIntegrationService.WebApi | |
{ | |
using System; | |
using System.Web.Http; | |
/// <summary> | |
/// Global configuration of the Web Application. | |
/// </summary> | |
public class Global : System.Web.HttpApplication | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DataIntegrationService | |
{ | |
using System.Web.Http; | |
/// <summary> | |
/// Contains the configuration of Web Api. | |
/// </summary> | |
public class WebApiConfig | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProductionOrderDTO | |
{ | |
public int Number { get; set; } | |
public string Reference { get; set; } | |
public long TargetQuantity { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProductionOrder | |
{ | |
public long ID { get; set; } | |
public int Number { get; set; } | |
public string Reference { get; set; } | |
public long TargetQuantity { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection; | |
using System.Runtime.InteropServices; | |
// General Information about an assembly is controlled | |
// through the following set of attributes. | |
// Change these attribute values to modify the information | |
// associated with an assembly. | |
[assembly: AssemblyTitle("DemoApp")] | |
[assembly: AssemblyCulture("")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NoFormApplication | |
{ | |
using System; | |
using System.Windows.Forms; | |
static class Program | |
{ | |
/// <summary> | |
/// The main entry point for the application. | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NoFormApplication | |
{ | |
using System; | |
using System.Windows.Forms; | |
using NoFormApplication.Properties; | |
/// <summary> | |
/// Application specific context used to create application's main standard loop without form. | |
/// </summary> | |
/// <see cref="http://msdn.microsoft.com/en-us/library/ms157901.aspx" /> |