init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="DTS.Common.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
||||
<section name="Common.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<applicationSettings>
|
||||
<DTS.Common.Properties.Settings>
|
||||
<setting name="TilesLocation" serializeAs="String">
|
||||
<value>Assets\Tiles\</value>
|
||||
</setting>
|
||||
</DTS.Common.Properties.Settings>
|
||||
</applicationSettings>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
|
||||
@@ -0,0 +1,16 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.RibbonControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for the <see cref="IRibbonViewModel"/> which holds the <see cref="IRibbonView"/>.
|
||||
/// </summary>
|
||||
public interface IRibbonViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the <see cref="IRibbonView"/>.
|
||||
/// </summary>
|
||||
IRibbonView View { get; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.RibbonControl
|
||||
{
|
||||
public class GalleryCategoryData : ControlData
|
||||
{
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
|
||||
public ObservableCollection<GalleryItemData> GalleryItemDataCollection
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_controlDataCollection == null)
|
||||
{
|
||||
_controlDataCollection = new ObservableCollection<GalleryItemData>();
|
||||
|
||||
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);
|
||||
|
||||
for (var i = 0; i < ViewModelData.GalleryItemCount; i++)
|
||||
{
|
||||
_controlDataCollection.Add(new GalleryItemData()
|
||||
{
|
||||
Label = "GalleryItem " + i,
|
||||
SmallImage = smallImage,
|
||||
LargeImage = largeImage,
|
||||
ToolTipTitle = "ToolTip Title",
|
||||
ToolTipDescription = "ToolTip Description",
|
||||
ToolTipImage = smallImage,
|
||||
Command = ViewModelData.DefaultCommand
|
||||
});
|
||||
}
|
||||
}
|
||||
return _controlDataCollection;
|
||||
}
|
||||
}
|
||||
private ObservableCollection<GalleryItemData> _controlDataCollection;
|
||||
}
|
||||
|
||||
public class GalleryCategoryData<T> : ControlData
|
||||
{
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
|
||||
public ObservableCollection<T> GalleryItemDataCollection => _controlDataCollection ?? (_controlDataCollection = new ObservableCollection<T>());
|
||||
|
||||
private ObservableCollection<T> _controlDataCollection;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
namespace DTS.Common.RibbonControl
|
||||
{
|
||||
public class SplitMenuItemData : MenuItemData
|
||||
{
|
||||
public SplitMenuItemData()
|
||||
: this(false)
|
||||
{
|
||||
}
|
||||
|
||||
public SplitMenuItemData(bool isApplicationMenu)
|
||||
: base(isApplicationMenu)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using DTS.Common.Classes.Sensors;
|
||||
using DTS.Common.Enums;
|
||||
using DTS.Common.Enums.Sensors;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
public interface ISensorCalibration : ISensorCalDbRecord
|
||||
{
|
||||
string EngineeringUnits { get; }
|
||||
long CalVersion { get; set; }
|
||||
string UUID { get; set; }
|
||||
double GetPolynomialEU(double inputmV, double excitation);
|
||||
string DocumentID { get; set; }
|
||||
NonLinearStyles IRTraccCalculationType { get; set; }
|
||||
string ToSerializedString();
|
||||
void FromSerializedString(string s);
|
||||
string ToDisplayString(ExcitationVoltageOptions.ExcitationVoltageOption excitation, string linearFormat,
|
||||
string nonlinearFormat, bool iepe);
|
||||
string ToLinearDisplayString(ExcitationVoltageOptions.ExcitationVoltageOption excitation, string linearFormat, bool iepe);
|
||||
string ToNonLinearDisplayString(string nonlinearFormat, bool iepe);
|
||||
|
||||
void ReadXML(System.Xml.XmlElement root);
|
||||
void WriteXML(ref System.Xml.XmlWriter writer);
|
||||
/// <summary>
|
||||
/// returns true if the calibration is compatible with IEPE
|
||||
/// IEPE sensors require linear calibrations and non proportional
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool IsCompatibleWithIEPE();
|
||||
|
||||
void CopyValues(ISensorCalibration copy);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using System.ComponentModel;
|
||||
using DTS.Common.Converters;
|
||||
|
||||
namespace DTS.Common.Enums
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user