aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Properties/AssemblyInfo.cs
blob: 46d358e4fef95e7d346c79e70c6d4c596035afd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;

[assembly: AssemblyTitle("Tango - Machine Studio DB Module")]
[assembly: AssemblyVersion("2.0.10.1737")]

[assembly: ComVisible(false)]

[assembly:ThemeInfo(
    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
                             //(used if a resource is not found in the page,
                             // or application resource dictionaries)
    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
                                      //(used if a resource is not found in the page,
                                      // app, or any theme specific resource dictionaries)
)]
"p">; using System.Text; using System.Threading.Tasks; using System.Windows.Data; using Tango.BL.Entities; namespace Tango.MachineStudio.Developer.Converters { public class BrushStopToOffsetLimitConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { try { BrushStop stop = values[0] as BrushStop; Segment segment = values[1] as Segment; String sign = parameter.ToString(); if (stop != null && segment != null) { if (stop.IsLast) { return 100d; } else if (stop.IsFirst) { return 0d; } else { return sign == "min" ? 0 : 100d; } } else { return 100d; } } catch { return 100d; } } public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }