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,15 @@
namespace DTS.Common.RibbonControl
{
public class MenuItemData : SplitButtonData
{
public MenuItemData()
: this(false)
{
}
public MenuItemData(bool isApplicationMenu)
: base(isApplicationMenu)
{
}
}
}

View File

@@ -0,0 +1,27 @@
using Prism.Events;
namespace DTS.Common.Events.GroupTemplates.CustomChannels
{
/// <summary>
/// Event to inform of custom channel import status
/// </summary>
/// <remarks>
///
/// </remarks>
public class CustomChannelImportEvent : PubSubEvent<CustomChannelImportEventArgs> { }
public class CustomChannelImportEventArgs
{
public enum Status
{
Done
}
public Status ImportStatus { get; }
public CustomChannelImportEventArgs(Status status)
{
ImportStatus = status;
}
}
}

View File

@@ -0,0 +1,97 @@
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
namespace DTS.Common.RibbonControl
{
public class TabData : INotifyPropertyChanged
{
public TabData()
: this(null)
{
}
public TabData(string header)
{
Header = header;
}
public string Header
{
get => _header;
set
{
if (_header == value) return;
_header = value;
OnPropertyChanged(new PropertyChangedEventArgs("Header"));
}
}
private string _header;
public string ContextualTabGroupHeader
{
get => _contextualTabGroupHeader;
set
{
if (_contextualTabGroupHeader == value) return;
_contextualTabGroupHeader = value;
OnPropertyChanged(new PropertyChangedEventArgs("ContextualTabGroupHeader"));
}
}
private string _contextualTabGroupHeader;
public bool IsSelected
{
get => _isSelected;
set
{
if (_isSelected == value) return;
_isSelected = value;
OnPropertyChanged(new PropertyChangedEventArgs("IsSelected"));
}
}
private bool _isSelected;
public ObservableCollection<GroupData> GroupDataCollection
{
get
{
if (_groupDataCollection == null)
{
var smallImage = new Uri("/Common;component/RibbonControl/Images/Paste_16x16.png", UriKind.Relative);
var largeImage = new Uri("/Common;component/RibbonControl/Images/Paste_32x32.png", UriKind.Relative);
_groupDataCollection = new ObservableCollection<GroupData>();
for (var i = 0; i < ViewModelData.GroupCount; i++)
{
_groupDataCollection.Add(new GroupData("Group " + i)
{
LargeImage = largeImage,
SmallImage = smallImage
});
}
}
return _groupDataCollection;
}
}
private ObservableCollection<GroupData> _groupDataCollection;
#region INotifyPropertyChanged Members
public event PropertyChangedEventHandler PropertyChanged;
private void OnPropertyChanged(PropertyChangedEventArgs e)
{
if (PropertyChanged != null)
{
PropertyChanged(this, e);
}
}
#endregion
}
}

View File

@@ -0,0 +1,11 @@
using Prism.Events;
namespace DTS.Common.Events.TSRAIRGo
{
public class TriggerEvent : PubSubEvent<TriggerArg> { }
public class TriggerArg
{
}
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Base;
using DTS.Common.Interface;
using Prism.Events;
namespace DTS.Common.Events
{
public class PSDReportGRMSValuesUpdatedEvent : PubSubEvent<PSDReportGRMSValuesUpdatedEventArg> { }
public class PSDReportGRMSValuesUpdatedEventArg
{
public IChannelGRMSSummary[] Values { get; set; }
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.CustomChannels
{
public interface ICustomChannelsImportView : IBaseView { }
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Classes;
using Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The StatusAndProgressBarEvent event.
/// </summary>
///
/// <remarks>This event is used to update the Status and/or Progress bars.</remarks>
///
public class StatusAndProgressBarEvent : PubSubEvent<StatusAndProgressBarEventArgs> { }
}