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,25 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportReadFileStatusEvent event.
/// </summary>
///
/// <remarks>
/// This event is used to determine the success/failure of reading a file.
/// If Status is True, the read was successful and TTSSetup contains the Test Setup that was read.
/// If Status is False, the read was not successful, and ErrorMessage contains the reason.
/// </remarks>
///
public class TTSImportReadFileStatusEvent : CompositePresentationEvent<ReadFileStatusArg> { }
public class ReadFileStatusArg
{
public bool Status { get; set; }
public ITTSSetup TTSSetup { get; set; }
public string ErrorMessage { get; set; }
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

View File

@@ -0,0 +1,34 @@
using System;
using System.ComponentModel;
using DTS.Common.Converters;
using DTS.Common.Utils;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
// ReSharper disable CheckNamespace
namespace DTS.Common.Enums.Viewer
{
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum ChartUnitTypeEnum
{
[Description("EU")]
EU = 0,
[Description("mV")]
mV = 1,
[Description("ADC")]
ADC = 2,
//6402 Implement ability to switch to FFT live in the Review
[Description("FFT")]
FFT = 3,
// 25554 implement Power Spectral Density type
[Description("PSD")]
PSD = 4
}
public class ChartUnitTypeItemSource : IItemsSource
{
public ItemCollection GetValues()
{
return EnumUtil.GetValuesList<ChartUnitTypeEnum>();
}
}
}

View File

@@ -0,0 +1,19 @@
using DTS.Common.Interface.Channels;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events.Groups.GroupChannelList
{
public class GroupChannelDeleteRequestEvent : CompositePresentationEvent<GroupChannelDeleteRequestEventArgs> { }
public class GroupChannelDeleteRequestEventArgs
{
public object Page { get; }
public IGroupChannel Channel { get; }
public GroupChannelDeleteRequestEventArgs(object page, IGroupChannel channel)
{
Page = page;
Channel = channel;
}
}
}

View File

@@ -0,0 +1,55 @@
using System;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
namespace DTS.Common.RibbonControl
{
public static class ViewModelData
{
internal const int TabCount = 4;
internal const int ContextualTabGroupCount = 2;
internal const int GroupCount = 3;
internal const int ControlCount = 5;
internal const int ButtonCount = 1;
internal const int ToggleButtonCount = 1;
internal const int RadioButtonCount = 1;
internal const int CheckBoxCount = 1;
internal const int TextBoxCount = 1;
internal const int MenuButtonCount = 1;
internal const int MenuItemCount = 2;
internal const int SplitButtonCount = 1;
internal const int SplitMenuItemCount = 2;
internal const int GalleryCount = 1;
internal const int GalleryCategoryCount = 3;
internal const int GalleryItemCount = 10;
internal const int MenuItemNestingCount = 2;
internal const int ComboBoxCount = 1;
public static RibbonData RibbonData
{
get
{
if (_data == null)
{
_data = new RibbonData();
}
return _data;
}
}
public static ICommand DefaultCommand => _defaultCommand ?? (_defaultCommand = new DelegateCommand(DefaultExecuted, DefaultCanExecute));
private static void DefaultExecuted()
{
}
private static bool DefaultCanExecute()
{
return true;
}
[ThreadStatic]
private static RibbonData _data;
private static ICommand _defaultCommand;
}
}