aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/HomeController.cs
blob: 1e67c6845423c310cb5c9d08801f14d16dab28a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Tango.MachineService.Controllers
{
    public class HomeController : Controller
    {
        public String Index()
        {
            return "Machine Service Started!";
        }
    }
}
(Model.Name) { @foreach (var prop in Model.Properties) { <div> private @(prop.Type) _@(prop.Name.ToLower()); /// <summary> /// Gets or sets the @(prop.Name). /// </summary> public @(prop.Type) @(prop.Name) { get { return _@(prop.Name.ToLower()); } set { _@(prop.Name.ToLower()) = value; RaisePropertyChanged(nameof(@(prop.Name))); } } private ICollectionView _@(prop.Name.ToLower())ViewSource; /// <summary> /// Gets or sets the @(prop.Name) View Source. ///</summary> public ICollectionView @(prop.Name)ViewSource { get { return _@(prop.Name.ToLower())ViewSource; } set { _@(prop.Name.ToLower())ViewSource = value; RaisePropertyChanged(nameof(@(prop.Name)ViewSource)); } } </div> } /// <summary> /// Initialize collection sources. /// </summary> public void InitCollectionSources() { @foreach (var prop in Model.Properties) { <div> @(prop.Name)ViewSource = CreateCollectionView(@(prop.Name)); </div> } } } }