init
This commit is contained in:
@@ -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,37 @@
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Interface.Tags;
|
||||
using System.Data;
|
||||
|
||||
namespace DTS.Common.Classes.Tags
|
||||
{
|
||||
public class TagAssignment: BasePropertyChanged, ITagAssignment
|
||||
{
|
||||
private int _objectId;
|
||||
public int ObjectID
|
||||
{
|
||||
get => _objectId;
|
||||
set => SetProperty(ref _objectId, value, "ObjectID");
|
||||
}
|
||||
|
||||
private int _tagId;
|
||||
public int TagID
|
||||
{
|
||||
get => _tagId;
|
||||
set => SetProperty(ref _tagId, value, "TagID");
|
||||
}
|
||||
|
||||
private TagTypes _tagType;
|
||||
public TagTypes ObjectType
|
||||
{
|
||||
get => _tagType;
|
||||
set => SetProperty(ref _tagType, value, "TagType");
|
||||
}
|
||||
public TagAssignment() { }
|
||||
public TagAssignment(IDataReader reader)
|
||||
{
|
||||
TagID = Utility.GetInt(reader, "TagID");
|
||||
ObjectID = Utility.GetInt(reader, "ObjectID");
|
||||
ObjectType = (TagTypes)Utility.GetShort(reader, "ObjectType");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using DTS.Common.Base;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class SaveReportToPDFRequestedEvent : CompositePresentationEvent<SaveReportToPDFRequestedEventArgs> { }
|
||||
|
||||
public class SaveReportToPDFRequestedEventArgs
|
||||
{
|
||||
public string Directory { get; set; }
|
||||
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,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