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; }
    }
}
.Statistics.Converters { public class StringToFirstLetterConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value != null && value.ToString().Length > 1) { if(value.ToString().Contains("Light")) { var tetst = value.ToString().Substring(5); return "L" + value.ToString().Substring(5).First().ToString().ToUpper(); } return value.ToString().First().ToString(); } else { return value; } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }