aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/MaterialDesignInXamlToolkit-master/MaterialDesignThemes.Wpf/Transitions/TransitionerSlideState.cs
blob: db6fd9928096f053b1c16f6b6a18bf9dd332e1e7 (plain)
1
2
3
4
5
6
7
8
9
namespace MaterialDesignThemes.Wpf.Transitions
{
    public enum TransitionerSlideState
    {        
        None,
        Current,
        Previous,
    }
}
.il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using Tango.Logging;
using Tango.PMR.Common;

namespace Tango.MachineStudio.Logging.Converters
{
    public class LogItemToMessageConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            LogItemBase log = value as LogItemBase;

            if (log != null)
            {
                String str = log.Message;

                if (log.LogObject != null)
                {
                    str += Environment.NewLine + Environment.NewLine + log.LogObject.ToJsonString("Data");
                }

                return str;
            }

            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}