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

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

View File

@@ -0,0 +1,44 @@
using DTS.Common.Base;
using DTS.Common.Enums.Database;
namespace DTS.Common.Interface.Database
{
/// <summary>
/// this viewmodel provides a way for transferring a remote database to a local database
/// it clears the local database and populates it with the remote databse
/// it requires a local database that has the right tables and stored procedures already
/// </summary>
public interface IDatabaseCopyViewModel : IBaseViewModel
{
/// <summary>
/// the view associated with the model
/// </summary>
IDatabaseCopyView View { get; set; }
/// <summary>
/// frees up any memory associated with viewmodel
/// </summary>
void Unset();
/// <summary>
/// copies from remote database to local database
/// uses DTS.Common.Storage to determine local and remote
/// </summary>
void CopyDatabase();
/// <summary>
/// initializes viewmodel state
/// </summary>
void InitializeState(DbType dbType, string dbName);
string DbName { get; }
/// <summary>
/// the overall status/progress
/// </summary>
IStatusAndProgressBarView OverallProgressBarView { get; }
/// <summary>
/// current task status/progress
/// </summary>
IStatusAndProgressBarView CurrentTaskProgressBarView { get; }
DbType DatabaseType { get; }
bool CopyEnabled { get; }
bool IsCopyVisible { get; set; }
}
}

View File

@@ -0,0 +1,588 @@
using System;
using System.Windows;
using System.Windows.Media;
//FB 33034 Refactor to remove the second implementation of BrushesAndColors class
//from DataPro project
namespace DTS.Common
{
/// <summary>
/// helper class to simplify using brushes and colors
/// note this class is holding static caches of the brushes, so if we switch themes they might be out of date
/// and we could just return them directly each time in which case we wouldn't have that problem, however
/// we can also avoid the time for the lookup even though it's not likely to be significant by holding it here
/// Currently we aren't using themese after all ...
/// </summary>
public abstract class BrushesAndColors
{
private static ResourceDictionary _resourceDictionary = default(ResourceDictionary);
private static SolidColorBrush _brush_ApplicationTileExport = null;
public static SolidColorBrush Brush_ApplicationTileExport
{
get
{
if (null == _brush_ApplicationTileExport)
{
_brush_ApplicationTileExport =
(SolidColorBrush)Application.Current.FindResource("Brush_ApplicationTileExport");
_brush_ApplicationTileExport.Freeze();
}
return _brush_ApplicationTileExport;
}
}
private static SolidColorBrush _brush_ApplicationTileCollectData = null;
public static SolidColorBrush Brush__ApplicationTileCollectData
{
get
{
if (null == _brush_ApplicationTileCollectData)
{
_brush_ApplicationTileCollectData =
(SolidColorBrush)
Application.Current.FindResource("Brush_ApplicationTileCollectData");
_brush_ApplicationTileCollectData.Freeze();
}
return _brush_ApplicationTileCollectData;
}
}
private static SolidColorBrush _brush_ApplicationStatus_Failed = null;
public static SolidColorBrush Brush_ApplicationStatus_Failed
{
get
{
if (null == _brush_ApplicationStatus_Failed)
{
_brush_ApplicationStatus_Failed = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatus_Failed");
_brush_ApplicationStatus_Failed.Freeze();
}
return _brush_ApplicationStatus_Failed;
}
}
private static SolidColorBrush _brush_Dimmed_Text = null;
public static SolidColorBrush Brush_Dimmed_Text
{
get
{
if (null == _brush_Dimmed_Text)
{
_brush_Dimmed_Text = (SolidColorBrush)Application.Current.FindResource("Brush_Dimmed_TextForeground");
_brush_Dimmed_Text.Freeze();
}
return _brush_Dimmed_Text;
}
}
private static SolidColorBrush _brush_Application_Idle = null;
public static SolidColorBrush Brush_Application_Idle
{
get
{
if (null == _brush_Application_Idle)
{
_brush_Application_Idle = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatus_Idle");
_brush_Application_Idle.Freeze();
}
return _brush_Application_Idle;
}
}
private static SolidColorBrush _brush_ApplicationStatus_Complete = null;
public static SolidColorBrush Brush_ApplicationStatus_Complete
{
get
{
if (null == _brush_ApplicationStatus_Complete)
{
_brush_ApplicationStatus_Complete = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatus_Complete");
_brush_ApplicationStatus_Complete.Freeze();
}
return _brush_ApplicationStatus_Complete;
}
}
private static SolidColorBrush _brush_ApplicationStatus_Idle = null;
public static SolidColorBrush Brush_ApplicationStatus_Idle
{
get
{
if (null == _brush_ApplicationStatus_Idle)
{
_brush_ApplicationStatus_Idle = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatus_Idle");
_brush_ApplicationStatus_Idle.Freeze();
}
return _brush_ApplicationStatus_Idle;
}
}
private static SolidColorBrush _brush_ApplicationStatus_Busy = null;
public static SolidColorBrush Brush_ApplicationStatus_Busy
{
get
{
if (null == _brush_ApplicationStatus_Busy)
{
_brush_ApplicationStatus_Busy = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatus_Busy");
_brush_ApplicationStatus_Busy.Freeze();
}
return _brush_ApplicationStatus_Busy;
}
}
private static SolidColorBrush _brush_Run_SensorIdNotFound = null;
public static SolidColorBrush Brush_Run_SensorIdNotFound
{
get
{
if (null == _brush_Run_SensorIdNotFound)
{
_brush_Run_SensorIdNotFound =
(SolidColorBrush) Application.Current.FindResource("Brush_Run_SensorIdNotFound");
_brush_Run_SensorIdNotFound.Freeze();
}
return _brush_Run_SensorIdNotFound;
}
}
private static SolidColorBrush _brush_Run_SensorIdOutOfPlace;
public static SolidColorBrush Brush_Run_SensorIdOutOfPlace
{
get
{
if (null == _brush_Run_SensorIdOutOfPlace)
{
_brush_Run_SensorIdOutOfPlace =
(SolidColorBrush)Application.Current.FindResource("Brush_Run_SensorIdOutOfPlace");
_brush_Run_SensorIdOutOfPlace.Freeze();
}
return _brush_Run_SensorIdOutOfPlace;
}
}
private static SolidColorBrush _brush_Table_AlternatingRowBackground = null;
public static SolidColorBrush Brush_Table_AlternatingRowBackground
{
get
{
if (null == _brush_Table_AlternatingRowBackground)
{
_brush_Table_AlternatingRowBackground = (SolidColorBrush)Application.Current.FindResource("Brush_Table_AlternatingRowBackground");
_brush_Table_AlternatingRowBackground.Freeze();
}
return _brush_Table_AlternatingRowBackground;
}
}
private static SolidColorBrush _brush_Table_RowBackground = null;
public static SolidColorBrush Brush_Table_RowBackground
{
get
{
if (null == _brush_Table_RowBackground)
{
_brush_Table_RowBackground = (SolidColorBrush)Application.Current.FindResource("Brush_Table_RowBackground");
_brush_Table_RowBackground.Freeze();
}
return _brush_Table_RowBackground;
}
}
private static Brush _brush_FlatControlPressedBackground = null;
public static Brush Brush_FlatControlPressedBackground
{
get
{
if (null == _brush_FlatControlPressedBackground)
{
_brush_FlatControlPressedBackground = (Brush)Application.Current.FindResource("Brush_FlatControlPressedBackground");
_brush_FlatControlPressedBackground.Freeze();
}
return _brush_FlatControlPressedBackground;
}
}
private static Brush _brush_FlatControlPressedForeground = null;
public static Brush Brush_FlatControlPressedForeground
{
get
{
if (null == _brush_FlatControlPressedForeground)
{
_brush_FlatControlPressedForeground = (Brush)Application.Current.FindResource("Brush_FlatControlPressedForeground");
_brush_FlatControlPressedForeground.Freeze();
}
return _brush_FlatControlPressedForeground;
}
}
private static Brush _brushTransparent = null;
public static Brush Brush_Transparent
{
get
{
if (null == _brushTransparent)
{
_brushTransparent = new SolidColorBrush(Colors.Transparent);
_brushTransparent.Freeze();
}
return _brushTransparent;
}
}
private static Brush _brush_NoError = null;
public static Brush Brush_NoError
{
get
{
if (null == _brush_NoError)
{
if (_resourceDictionary == null) { _resourceDictionary = new ResourceDictionary { Source = new Uri("/DTS.Common;component/Themes/brushes.xaml", UriKind.RelativeOrAbsolute) }; }
_brush_NoError = (SolidColorBrush)_resourceDictionary["Brush_NoError"];
_brush_NoError.Freeze();
}
return _brush_NoError;
}
}
private static SolidColorBrush _brushError = null;
public static SolidColorBrush Brush_Error
{
get
{
if (null != _brushError) return _brushError;
if (_resourceDictionary == null)
{
_resourceDictionary = new ResourceDictionary { Source = new Uri("/DTS.Common;component/Themes/brushes.xaml", UriKind.RelativeOrAbsolute) };
}
_brushError = (SolidColorBrush)_resourceDictionary["Brush_Error"];
_brushError.Freeze();
return _brushError;
}
}
private static readonly SolidColorBrush _brushWarning = null;
public static SolidColorBrush Brush_Warning
{
get
{
if (null != _brushWarning) return _brushWarning;
if (_resourceDictionary == null)
{
_resourceDictionary = new ResourceDictionary { Source = new Uri("/DTS.Common;component/Themes/brushes.xaml", UriKind.RelativeOrAbsolute) };
}
_brushError = (SolidColorBrush)_resourceDictionary["Brush_Warning"];
_brushError.Freeze();
return _brushError;
}
}
private static SolidColorBrush _brushAttention = null;
public static SolidColorBrush Brush_Attention
{
get
{
if (null != _brushAttention) return _brushAttention;
if (_resourceDictionary == null)
{
_resourceDictionary = new ResourceDictionary { Source = new Uri("/DTS.Common;component/Themes/brushes.xaml", UriKind.RelativeOrAbsolute) };
}
_brushAttention = (SolidColorBrush)_resourceDictionary["Brush_Attention"];
_brushAttention.Freeze();
return _brushAttention;
}
}
private static Brush _brushFlatControlDisabledForeground = null;
public static Brush Brush_FlatControlDisabledForeground
{
get
{
if (null != _brushFlatControlDisabledForeground) return _brushFlatControlDisabledForeground;
_brushFlatControlDisabledForeground = (Brush)Application.Current.FindResource("Brush_FlatControlDisabledForeground");
if (_brushFlatControlDisabledForeground != null) { _brushFlatControlDisabledForeground.Freeze(); }
return _brushFlatControlDisabledForeground;
}
}
private static Brush _brush_ApplicationContentForeground = null;
public static Brush Brush_ApplicationContentForeground
{
get
{
if (null == _brush_ApplicationContentForeground)
{
_brush_ApplicationContentForeground = (Brush)Application.Current.FindResource("Brush_ApplicationContentForeground");
if (_brush_ApplicationContentForeground != null) _brush_ApplicationContentForeground.Freeze();
}
return _brush_ApplicationContentForeground;
}
}
private static Brush _brush_FlatControlDisbledBackground = null;
public static Brush Brush_FlatControlDisabledBackground
{
get
{
if (null == _brush_FlatControlDisbledBackground)
{
_brush_FlatControlDisbledBackground = (Brush)Application.Current.FindResource("Brush_FlatControlDisabledBackground");
if (_brush_FlatControlDisbledBackground != null) _brush_FlatControlDisbledBackground.Freeze();
}
return _brush_FlatControlDisbledBackground;
}
}
private static SolidColorBrush _brush_ApplicationStatus_Waiting = null;
public static SolidColorBrush Brush_ApplicationStatus_Waiting
{
get
{
if (null != _brush_ApplicationStatus_Waiting) return _brush_ApplicationStatus_Waiting;
_brush_ApplicationStatus_Waiting = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatus_Waiting");
if (_brush_ApplicationStatus_Waiting != null) _brush_ApplicationStatus_Waiting.Freeze();
return _brush_ApplicationStatus_Waiting;
}
}
private static SolidColorBrush _brush_ApplicationStatus_Failed_ActionBackground = null;
public static SolidColorBrush Brush_ApplicationStatus_Failed_ActionBackground
{
get
{
if (null != _brush_ApplicationStatus_Failed_ActionBackground) return _brush_ApplicationStatus_Failed_ActionBackground;
_brush_ApplicationStatus_Failed_ActionBackground = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatus_Failed_ActionBackground");
if (_brush_ApplicationStatus_Failed_ActionBackground != null)
_brush_ApplicationStatus_Failed_ActionBackground.Freeze();
return _brush_ApplicationStatus_Failed_ActionBackground;
}
}
private static SolidColorBrush _brush_ApplicationStatus_Complete_ActionBackground = null;
public static SolidColorBrush Brush_ApplicationStatus_Complete_ActionBackground
{
get
{
if (null != _brush_ApplicationStatus_Complete_ActionBackground) return _brush_ApplicationStatus_Complete_ActionBackground;
_brush_ApplicationStatus_Complete_ActionBackground = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatus_Complete_ActionBackground");
if (_brush_ApplicationStatus_Complete_ActionBackground != null) { _brush_ApplicationStatus_Complete_ActionBackground.Freeze(); }
return _brush_ApplicationStatus_Complete_ActionBackground;
}
}
private static SolidColorBrush _brush_ApplicationStatus_Failed_SystemProcess = null;
public static SolidColorBrush Brush_ApplicationStatus_Failed_SystemProcess
{
get
{
if (null != _brush_ApplicationStatus_Failed_SystemProcess) return _brush_ApplicationStatus_Failed_SystemProcess;
_brush_ApplicationStatus_Failed_SystemProcess = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStauts_Failed_SystemProcess");
if (_brush_ApplicationStatus_Failed_SystemProcess != null) { _brush_ApplicationStatus_Failed_SystemProcess.Freeze(); }
return _brush_ApplicationStatus_Failed_SystemProcess;
}
}
private static SolidColorBrush _brush_ApplicationFooterBackground = null;
public static SolidColorBrush Brush_ApplicationFooterBackground
{
get
{
if (null != _brush_ApplicationFooterBackground) return _brush_ApplicationFooterBackground;
_brush_ApplicationFooterBackground = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationFooterBackground");
if (_brush_ApplicationFooterBackground != null) { _brush_ApplicationFooterBackground.Freeze(); }
return _brush_ApplicationFooterBackground;
}
}
private static SolidColorBrush _brush_ApplicationLicensingFooterBackground = null;
public static SolidColorBrush Brush_ApplicationLicensingFooterBackground
{
get
{
if (null == _brush_ApplicationLicensingFooterBackground)
{
_brush_ApplicationLicensingFooterBackground = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationLicensingFooterBackground");
if (_brush_ApplicationLicensingFooterBackground != null) { _brush_ApplicationLicensingFooterBackground.Freeze(); }
}
return _brush_ApplicationLicensingFooterBackground;
}
}
private static Brush _Brush_Realtime_OSC_SELECTED = null;
public static Brush Brush_Realtime_OSC_SELECTED
{
get
{
if (null == _Brush_Realtime_OSC_SELECTED)
{
_Brush_Realtime_OSC_SELECTED = (Brush)Application.Current.FindResource("Brush_Realtime_OSC_SELECTED");
_Brush_Realtime_OSC_SELECTED.Freeze();
}
return _Brush_Realtime_OSC_SELECTED;
}
}
private static Brush _Brush_Realtime_OSC_UNSELECTED = null;
public static Brush Brush_Realtime_OSC_UNSELECTED
{
get
{
if (null == _Brush_Realtime_OSC_UNSELECTED)
{
_Brush_Realtime_OSC_UNSELECTED = (Brush)Application.Current.FindResource("Brush_Realtime_OSC_UNSELECTED");
_Brush_Realtime_OSC_UNSELECTED.Freeze();
}
return _Brush_Realtime_OSC_UNSELECTED;
}
}
private static Brush _Brush_Realtime_METER_SELECTED = null;
public static Brush Brush_Realtime_METER_SELECTED
{
get
{
if (null == _Brush_Realtime_METER_SELECTED)
{
_Brush_Realtime_METER_SELECTED = (Brush)Application.Current.FindResource("Brush_Realtime_METER_SELECTED");
_Brush_Realtime_METER_SELECTED.Freeze();
}
return _Brush_Realtime_METER_SELECTED;
}
}
private static Brush _Brush_Realtime_METER_UNSELECTED = null;
public static Brush Brush_Realtime_METER_UNSELECTED
{
get
{
if (null == _Brush_Realtime_METER_UNSELECTED)
{
_Brush_Realtime_METER_UNSELECTED = (Brush)Application.Current.FindResource("Brush_Realtime_METER_UNSELECTED");
_Brush_Realtime_METER_UNSELECTED.Freeze();
}
return _Brush_Realtime_METER_UNSELECTED;
}
}
private static SolidColorBrush _Brush_SensorIdFound = null;
public static SolidColorBrush Brush_SensorIdFound
{
get
{
if (null == _Brush_SensorIdFound)
{
_Brush_SensorIdFound = (SolidColorBrush)Application.Current.FindResource("Brush_SensorIdFound");
_Brush_SensorIdFound.Freeze();
}
return _Brush_SensorIdFound;
}
}
private static SolidColorBrush _Brush_ArmSystemForeground = null;
public static SolidColorBrush Brush_ArmSystemForeground
{
get
{
if (null == _Brush_ArmSystemForeground)
{
_Brush_ArmSystemForeground = (SolidColorBrush)Application.Current.FindResource("Brush_ArmSystemForeground");
_Brush_ArmSystemForeground.Freeze();
}
return _Brush_ArmSystemForeground;
}
}
private static SolidColorBrush _Brush_ApplicationTilePrepare;
public static SolidColorBrush Brush_ApplicationTilePrepare
{
get
{
if (null == _Brush_ApplicationTilePrepare)
{
_Brush_ApplicationTilePrepare = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationTilePrepare");
_Brush_ApplicationTilePrepare.Freeze();
}
return _Brush_ApplicationTilePrepare;
}
}
private static SolidColorBrush _Brush_ApplicationTileSetup;
public static SolidColorBrush Brush_ApplicationTileSetup
{
get
{
if (null == _Brush_ApplicationTileSetup)
{
_Brush_ApplicationTileSetup = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationTileSetup");
_Brush_ApplicationTileSetup.Freeze();
}
return _Brush_ApplicationTileSetup;
}
}
private static SolidColorBrush _brushApplicationStatusPowerRed;
public static SolidColorBrush BrushApplicationStatusPowerRed
{
get
{
if (null == _brushApplicationStatusPowerRed)
{
_brushApplicationStatusPowerRed = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatusPowerRed");
if (_brushApplicationStatusPowerRed != null) _brushApplicationStatusPowerRed.Freeze();
}
return _brushApplicationStatusPowerRed;
}
}
private static SolidColorBrush _brushApplicationStatusPowerYellow;
public static SolidColorBrush BrushApplicationStatusPowerYellow
{
get
{
if (null == _brushApplicationStatusPowerYellow)
{
_brushApplicationStatusPowerYellow = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatusPowerYellow");
if (_brushApplicationStatusPowerYellow != null) _brushApplicationStatusPowerYellow.Freeze();
}
return _brushApplicationStatusPowerYellow;
}
}
private static SolidColorBrush _brushApplicationStatusPowerGreen;
public static SolidColorBrush BrushApplicationStatusPowerGreen
{
get
{
if (null == _brushApplicationStatusPowerGreen)
{
_brushApplicationStatusPowerGreen = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatusPowerGreen");
if (_brushApplicationStatusPowerGreen != null) _brushApplicationStatusPowerGreen.Freeze();
}
return _brushApplicationStatusPowerGreen;
}
}
private static SolidColorBrush _brushFlatControlDarkForeground;
public static SolidColorBrush BrushFlatControlDarkForeground
{
get
{
if (null == _brushFlatControlDarkForeground)
{
_brushFlatControlDarkForeground = (SolidColorBrush)Application.Current.FindResource("Brush_FlatControlDarkForeground");
if (_brushFlatControlDarkForeground != null) _brushFlatControlDarkForeground.Freeze();
}
return _brushFlatControlDarkForeground;
}
}
private static SolidColorBrush _BrushApplicationStatusPowerClear;
public static SolidColorBrush BrushApplicationStatusPowerClear
{
get
{
if (null == _BrushApplicationStatusPowerClear)
{
_BrushApplicationStatusPowerClear = (SolidColorBrush)Application.Current.FindResource("Brush_ApplicationStatusPowerClear");
if (_BrushApplicationStatusPowerClear != null) _BrushApplicationStatusPowerClear.Freeze();
}
return _BrushApplicationStatusPowerClear;
}
}
public static Color Color_ActionBackground => (Color)Application.Current.FindResource("Color_ActionBackground");
public static Color Color_ApplicationTileCollectData => (Color)Application.Current.FindResource("Color_ApplicationTileCollectData");
public static Color Color_ItemBackground => (Color)Application.Current.FindResource("Color_ItemBackground");
public static Color Color_ActionForeground => (Color)Application.Current.FindResource("Color_ActionForeground");
public static Color Color_ItemForeground => (Color)Application.Current.FindResource("Color_ItemForeground");
public static Color Color_ApplicationTileSetup => (Color)Application.Current.FindResource("Color_ApplicationTileSetup");
public static Color Color_ApplicationTilePrepare => (Color)Application.Current.FindResource("Color_ApplicationTilePrepare");
public static Color Color_ApplicationTileCalibration => (Color)Application.Current.FindResource("Color_ApplicationTileCalibration");
public static Color Color_ApplicationTileExport => (Color)Application.Current.FindResource("Color_ApplicationTileExport");
public static Color Color_ApplicationTileAdmin => (Color)Application.Current.FindResource("Color_ApplicationTileAdmin");
}
}

View File

@@ -0,0 +1,73 @@
using DTS.Common.Enums;
namespace DTS.Common.Events
{
/// <summary>
/// Event args for the <see cref="Microsoft.Practices.Prism.Interactivity.InteractionRequest.Notification.Content"/> event.
/// </summary>
public class NotificationContentEventArgs
{
/// <summary>
/// Gets the message of the notification.
/// </summary>
public string Message { get; }
/// <summary>
/// Gets the notification details.
/// </summary>
public string MessageDetails { get; }
/// <summary>
/// Gets the image for the notification window.
/// </summary>
public PopupWindowImage Image { get; }
public string Title { get; }
/// <summary>
/// Constructs a new instance of <see cref="NotificationContentEventArgs"/>
/// </summary>
/// <param name="message">The message of the notification.</param>
/// <param name="messageDetails">Notification details</param>
/// <param name="image">The image for the notification window. The default is <see cref="PopupWindowImage.Error"/>.</param>
/// <param name="title">The title of the notification window.</param>
public NotificationContentEventArgs(string message, string messageDetails = "", PopupWindowImage image = PopupWindowImage.Error, string title = "")
{
Message = message;
MessageDetails = messageDetails;
Image = image;
Title = title;
}
}
public class NotificationContentEventArgsWithoutTitle
{
/// <summary>
/// Gets the message of the notification.
/// </summary>
public string Message { get; }
/// <summary>
/// Gets the notification details.
/// </summary>
public string MessageDetails { get; }
/// <summary>
/// Gets the image for the notification window.
/// </summary>
public PopupWindowImage Image { get; }
/// <summary>
/// Constructs a new instance of <see cref="NotificationContentEventArgs"/>
/// </summary>
/// <param name="message">The message of the notification.</param>
/// <param name="messageDetails">Notification details</param>
/// <param name="image">The image for the notification window. The default is <see cref="PopupWindowImage.Error"/>.</param>
public NotificationContentEventArgsWithoutTitle(string message, string messageDetails = "", PopupWindowImage image = PopupWindowImage.Error)
{
Message = message;
Image = image;
MessageDetails = messageDetails;
}
}
}

View File

@@ -0,0 +1,64 @@
using DTS.Common.Interface.Groups;
using DTS.Common.Interface.Groups.GroupList;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data;
namespace DTS.Common.Classes.Groups
{
/// <summary>
/// represents a record in the GroupHardware table in the db
/// <inheritdoc cref="IChannelDbRecord"/>
/// </summary>
public class GroupHardwareDbRecord : Base.BasePropertyChanged, IGroupHardwareDbRecord
{
protected int _id = -1;
/// <summary>
/// The database id of the Channel
/// </summary>
[Key]
public int Id
{
get => _id;
set => SetProperty(ref _id, value, "Id");
}
private int _groupId = -1;
public int GroupId
{
get => _groupId;
set => SetProperty(ref _groupId, value, "GroupId");
}
private int _dasId = -1;
public int DASId
{
get => _dasId;
set => SetProperty(ref _dasId, value, "DASId");
}
private string _serialNumber = string.Empty;
public string SerialNumber
{
get => _serialNumber;
set => SetProperty(ref _serialNumber, value, "SerialNumber");
}
public GroupHardwareDbRecord() { }
public GroupHardwareDbRecord(IGroupHardwareDbRecord copy)
{
Id = copy.Id;
GroupId = copy.GroupId;
DASId = copy.DASId;
SerialNumber = copy.SerialNumber;
}
public GroupHardwareDbRecord(IDataReader reader)
{
Id = Utility.GetInt(reader, "RecordId", -1);
GroupId = Utility.GetInt(reader, "GroupId", -1);
DASId = Utility.GetInt(reader, "DASId", -1);
SerialNumber = Utility.GetString(reader, "SerialNumber");
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB