This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using System.Collections.Generic;
using System.Windows;
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface IMainViewModel : IBaseViewModel
{
/// <summary>
/// Gets the Main View.
/// </summary>
IBaseView View { get; }
object ContextNavigationRegion { get; set; }
object ContextGraphRegion { get; set; }
object ContextTestsRegion { get; set; }
object ContextGraphsRegion { get; set; }
object ContextLegendRegion { get; set; }
object ContextDiagRegion { get; set; }
object ContextStatsRegion { get; set; }
object ContextCursorRegion { get; set; }
object ContextPropertyRegion { get; set; }
List<FrameworkElement> GetRegions();
}
}

View File

@@ -0,0 +1,30 @@
using DTS.Common.Interface.Hardware;
using System;
using System.Windows;
using System.Windows.Data;
// ReSharper disable PossibleNullReferenceException
namespace DTS.Common.Converters
{
public class DiagStatusShuntColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is DiagStatuses status)
{
if (status == DiagStatuses.NoResults) { return BrushesAndColors.Brush_ApplicationStatus_Idle; }
if ((status & DiagStatuses.FailedShunt) == DiagStatuses.FailedShunt)
{
return BrushesAndColors.Brush_ApplicationStatus_Failed;
}
return BrushesAndColors.Brush_ApplicationStatus_Complete;
}
return BrushesAndColors.Brush_ApplicationStatus_Idle;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return value.Equals(true) ? parameter : Binding.DoNothing;
}
}
}

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTS.Common.Import.Enums
{
public enum ImportFormats
{
NOT_SPECIFIED = 1,
DTS_XML = 2,
ISF = 3,
TSF = 4,
DTS_CSV = 5,
TTS_XML = 6,
CrashDesigner_XML = 7,
E2X = 8,
TTS_CSV = 9,
}
//FB 40758 type of file by number of test setups in file
public enum ImportFileFormat
{
NoTestSetup,
SingleTestSetup,
MultipleTestSetup
}
}

View File

@@ -0,0 +1,19 @@
using DTS.Common.Events;
using Prism.Ioc;
using Prism.Events;
namespace DTS.Common
{
public partial class CommonStyles
{
public void ToolTipEventHandler(object sender, System.Windows.Controls.ToolTipEventArgs e)
{
e.Handled = true;
var eventAggregator = ContainerLocator.Container.Resolve<IEventAggregator>();
eventAggregator.GetEvent<HelpTextEvent>().Publish(new HelpTextEventArg()
{ Sender = sender, E = e });
}
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using DTS.Common.Enums.Sensors;
using DTS.Common.Interface;
// ReSharper disable CheckNamespace
namespace DTS.Common.Classes.Viewer.TestMetadata
{
public class TestSetupMetadata : ITestSetupMetadata
{
public string SetupName { get; set; }
public DateTime TimeStamp { get; set; }
public List<ITestGraphs> TestGraphs { get; set; }
public CalibrationBehaviors CalibrationBehavior { get; set; }
}
}