init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class ClearSelectedExportsEvent : PubSubEvent<ClearSelectedExportsArg> { }
|
||||
public class ClearSelectedExportsArg : EventBase
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.TestSetups.Imports.TTS.DIChannels
|
||||
{
|
||||
public interface IDigitalInputChannelsViewModel : IBaseViewModel
|
||||
{
|
||||
IDigitalInputChannelsView View { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using DTS.Common.Base;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IChartOptionsViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Search View.
|
||||
/// </summary>
|
||||
IBaseView View { get; set; }
|
||||
IBaseViewModel Parent { get; set; }
|
||||
IChartOptionsModel Model { get; set; }
|
||||
void PublishChanges();
|
||||
void ResetZoomMethod();
|
||||
void ResetTMethod();
|
||||
void SaveToPDFMethod();
|
||||
void ShowCusor(bool value);
|
||||
void ShowMinMaxCursor(bool value);
|
||||
object ContextSearchRegion { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using DTS.Common.Base;
|
||||
using Microsoft.Practices.Prism.Regions;
|
||||
|
||||
namespace DTS.Common
|
||||
{
|
||||
public interface IDataProRegionManager : IRegionManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Adds View to the Main Region.
|
||||
/// </summary>
|
||||
/// <param name="viewDefinition">The View definition.</param>
|
||||
/// <param name="parameter">The parameter which uses to initialize the View.</param>
|
||||
void AddView(ViewDefinition viewDefinition, object parameter);
|
||||
|
||||
/// <summary>
|
||||
/// Adds View to the Main Region.
|
||||
/// </summary>
|
||||
/// <param name="viewDefinition">The View definition.</param>
|
||||
/// <param name="parameter">The parameter which uses to initialize the View.</param>
|
||||
/// <param name="allowMultipleInstances">A value indicating whether to allow to create the multiple views.</param>
|
||||
void AddView(ViewDefinition viewDefinition, object parameter, bool allowMultipleInstances);
|
||||
|
||||
/// <summary>
|
||||
/// Adds View to the Main Region asynchronously.
|
||||
/// </summary>
|
||||
/// <param name="viewDefinition">The View definition.</param>
|
||||
/// <param name="parameter">The parameter which uses to initialize the service.</param>
|
||||
Task AddViewAsync(ViewDefinition viewDefinition, object parameter);
|
||||
|
||||
/// <summary>
|
||||
/// Adds View to the Main Region asynchronously.
|
||||
/// </summary>
|
||||
/// <param name="viewDefinition">The View definition.</param>
|
||||
/// <param name="parameter">The parameter which uses to initialize the View.</param>
|
||||
/// <param name="allowMultipleInstances">A value indicating whether to allow to create the multiple views.</param>
|
||||
Task AddViewAsync(ViewDefinition viewDefinition, object parameter, bool allowMultipleInstances);
|
||||
|
||||
/// <summary>
|
||||
/// Removes View from the Main Region.
|
||||
/// </summary>
|
||||
/// <param name="viewModel">The View-model.</param>
|
||||
void RemoveView(IBaseViewModel viewModel);
|
||||
|
||||
/// <summary>
|
||||
/// Removes View from the specified region by name
|
||||
/// </summary>
|
||||
/// <param name="regionName"></param>
|
||||
void RemoveViewByRegionName(string regionName);
|
||||
|
||||
/// <summary>
|
||||
/// Reloads data for the specified View.
|
||||
/// </summary>
|
||||
/// <param name="interfaceForView">Type of the View's interface.</param>
|
||||
/// <param name="parameter">The parameter which uses to initialize the View.</param>
|
||||
void RefreshView(Type interfaceForView, object parameter);
|
||||
|
||||
/// <summary>
|
||||
/// Reloads data for the specified View asynchronously.
|
||||
/// </summary>
|
||||
/// <param name="interfaceForView">Type of the View's interface.</param>
|
||||
/// <param name="parameter">The parameter which uses to initialize the View.</param>
|
||||
Task RefreshViewAsync(Type interfaceForView, object parameter);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using DTS.Common.Base;
|
||||
using Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The number of loaded Events changed event.
|
||||
/// </summary>
|
||||
public class GraphSelectedEventCountNotification : PubSubEvent<GraphSelectedEventCountNotificationArg> { }
|
||||
|
||||
public class GraphSelectedEventCountNotificationArg
|
||||
{
|
||||
public int SelectedEventCount { get; set; }
|
||||
/// <summary>
|
||||
/// 24417 start pulling apart viewer to allow reuse for PSD reports
|
||||
/// </summary>
|
||||
public IBaseViewModel ParentVM { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.RibbonControl
|
||||
{
|
||||
public class TextBoxData : ControlData
|
||||
{
|
||||
public string Text
|
||||
{
|
||||
get => _text;
|
||||
|
||||
set
|
||||
{
|
||||
if (_text == value) return;
|
||||
_text = value;
|
||||
OnPropertyChanged(new PropertyChangedEventArgs("Text"));
|
||||
}
|
||||
}
|
||||
private string _text;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using DTS.Common.Interactivity;
|
||||
using System.Windows;
|
||||
|
||||
|
||||
namespace DTS.Common.Dialogs
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an interaction request used for confirmations.
|
||||
/// </summary>
|
||||
public class ConfirmationEx : Confirmation
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the type of buttons displayed in the confirmation window.
|
||||
/// </summary>
|
||||
public MessageBoxButton Buttons { get; set; } = MessageBoxButton.OKCancel;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of image displayed in the confirmation window.
|
||||
/// </summary>
|
||||
public MessageBoxImage Image { get; set; } = MessageBoxImage.Question;
|
||||
|
||||
/// <summary>
|
||||
/// Returns result of the confirmation window.
|
||||
/// </summary>
|
||||
public MessageBoxResult Result { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using DTS.Common.Base.Classes;
|
||||
using DTS.Common.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.Enums.Sensors
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum FilterClassType
|
||||
{
|
||||
[DescriptionResource("FilterClassType_None")]
|
||||
None = 0, //Code = P unless UseZeroForUnfiltered is True, then Code = 0
|
||||
AdHoc = -1,
|
||||
[DescriptionResource("FilterClassType_Unfiltered")]
|
||||
Unfiltered = -2, // Code = 0
|
||||
CFC10 = 17, // 17 Hz
|
||||
[DescriptionResource("FilterClassType_CFC60")]
|
||||
CFC60 = 100, // 100 Hz; Code = D
|
||||
[DescriptionResource("FilterClassType_CFC180")]
|
||||
CFC180 = 300, // 300 Hz; Code = C
|
||||
[DescriptionResource("FilterClassType_CFC600")]
|
||||
CFC600 = 1000, // 1000 Hz; Code = B
|
||||
[DescriptionResource("FilterClassType_CFC1000")]
|
||||
CFC1000 = 1650 // 1650 Hz; Code = A
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 725 B |
Reference in New Issue
Block a user