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,12 @@
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface IDockPanelVerticalViewModel : IBaseViewModel
{
/// <summary>
/// Gets the Tab View.
/// </summary>
IDockPanelVerticalView View { get; }
}
}

View File

@@ -0,0 +1,66 @@
using DTS.Common.Base;
using DTS.Common.Enums.Sensors;
using DTS.Common.Interface.Pagination;
using System.Collections.Generic;
namespace DTS.Common.Interface.Sensors.SensorsList
{
public interface ISensorsListViewModel : IBaseViewModel, IFilterableListView
{
ISensorsListView View { get; set; }
IAnalogSensor [] AnalogSensors { get; set; }
ISquib [] Squibs { get; set; }
IDigitalInputSetting [] DigitalInputSettings { get; set; }
IDigitalOutputSetting [] DigitalOutputSettings { get; set; }
IUartIOSetting [] UartIOSettings { get; set; }
IStreamOutputSetting [] StreamOutputSettings { get; set; }
CalibrationBehaviors CalibrationBehavior { get; set; }
void GetSensors(int sensorCalWarningPeriodDays, bool included);
/// <summary>
/// retrieves and populates view model with all sensors matching sensors allowed
/// </summary>
/// <param name="sensorCalWarningPeriodDays">cal warning period in days, used for colorization</param>
/// <param name="sensorsAllowed">array of which sensors to display</param>
/// <param name="sensors">dictionary look up of databaseid to ISensorData for sensors in a test</param>
void GetSensors(int sensorCalWarningPeriodDays, int[] sensorsAllowed, IReadOnlyDictionary<int, ISensorData> sensors);
void SetSelectedSerial(string serialNumber);
void Sort(object sortBy, bool bColumnClick);
void SortOverdue(object sortBy, bool bColumnClick);
void Unset();
void Filter(string currentFilter);
void FilterSquib(object columnTag, string searchTerm);
void FilterDigitalIn(object columnTag, string searchTerm);
void FilterDigitalOut(object columnTag, string searchTerm);
void FilterUartIO(object columnTag, string searchTerm);
void FilterStreamIn(object columnTag, string searchTerm);
void FilterStreamOut(object columnTag, string searchTerm);
void SetCachedSensors(ISensorData[] cachedSensors);
void SetCachedCalibrations(ISensorCalibration[] sensorCalibrations);
string CapacityFormat { get; set; }
/// <summary>
/// determines whether included columns are used in models/views
/// </summary>
/// <param name="bUsesIncludedColumn"></param>
void UseIncludedColumn(bool bUsesIncludedColumn);
/// <summary>
/// sets the included property for all sensors
/// </summary>
/// <param name="bIncluded"></param>
void SetIncludedAll(bool bIncluded);
/// <summary>
/// returns all the included sensors
/// </summary>
/// <returns></returns>
IDragAndDropItem[] GetIncludedSensors();
/// <summary>
/// controls whether TDC incompatible sensors should be included or not
/// </summary>
bool ShowOnlyTDCSensors{ set; }
/// <summary>
/// controls whether Sliceware incompatible sensors should be included or not
/// </summary>
bool ShowOnlySlicewareSensors { set; }
}
}

View File

@@ -0,0 +1,8 @@
<xtoolkit:BusyIndicator x:Class="DTS.Common.BusyIndicatorManager.xBusyIndicator"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:xtoolkit="http://schemas.xceed.com/wpf/xaml/toolkit">
</xtoolkit:BusyIndicator>

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

View File

@@ -0,0 +1,25 @@
using System.Collections.Generic;
using System.Collections.Specialized;
using DTS.Common.Base;
// ReSharper disable CheckNamespace
namespace DTS.Common.Interface
{
public interface IGraphMainViewModel : IBaseViewModel
{
/// <summary>
/// Gets the Graph Main View.
/// </summary>
IGraphMainView View { get; set; }
IBaseViewModel Parent { get; set; }
List<ITestChannel> LockedChannelList { get; set; }
List<ITestChannel> SelectedChannelList { get; set; }
string LockedGroupName { get; set; }
void PublishSelectedChannels();
void AddSelectedChannel(ITestChannel channel);
void AddSelectedGroupChannels(string groupName, List<ITestChannel> channels);
void AddLockedChannel(ITestChannel channel, bool isLocked);
void AddLockedGroupChannels(string testName, string groupName, List<ITestChannel> channels, bool isLocked);
void GraphList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e);
}
}