aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Messages/ChangeVersionMessage.cs
blob: a0fdec8ed892be558c07389c7a61e9d1cf2f8cdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.MachineStudio.Common.Authentication;
using Tango.MachineStudio.Common.Web;

namespace Tango.MachineStudio.UI.Messages
{
    public class ChangeVersionMessage
    {
        public LoginResponse LoginResponse { get; set; }
    }
}
"nn">System.Windows.Data; namespace Tango.MachineStudio.Developer.Converters { public class ObjectToPropertiesConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value != null) { var properties = value.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(x => (!x.PropertyType.IsClass && !typeof(IEnumerable).IsAssignableFrom(x.PropertyType)) || x.PropertyType == typeof(String)).ToList(); return properties.Select(x => new { x.Name, Value = x.GetValue(value) }); } else { return null; } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }