aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/NavigationObjects/JobSummeryNavigationObject.cs
blob: 912b426836f91ff7722aaff3c6feac991cde03ba (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.Text;
using System.Threading.Tasks;
using Tango.BL;
using Tango.BL.Entities;

namespace Tango.PPC.Jobs.NavigationObjects
{
    public class JobSummeryNavigationObject
    {
        public ObservablesContext Context { get; set; }
        public Job Job { get; set; }
    }
}
">public class JobProgressToPositionConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { try { if (values.Length == 3 && values[1] != DependencyProperty.UnsetValue) { double length = System.Convert.ToDouble(values[0]); double progress = System.Convert.ToDouble(values[1]); double parentElementWidth = System.Convert.ToDouble(values[2]); return (progress / length) * parentElementWidth; } else { return 0d; } } catch { return 0d; } } public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }