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,11 @@
using Microsoft.Practices.Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The Data Folder changed event.
/// </summary>
public class ResetZoomChangedEvent : CompositePresentationEvent<bool> { }
}

View File

@@ -0,0 +1,16 @@
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The SetSaveButton event
/// </summary>
public class SetSaveButton : CompositePresentationEvent<SaveButtonUsability> { }
/// <summary>
/// The SaveButtonUsability is used by <see cref="ShowStatus">SetSaveButton</see> event to enable/disable the Save button.
/// </summary>
public class SaveButtonUsability
{
public bool IsUsable { get; set; }
}
}

View File

@@ -0,0 +1,50 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace DTS.Common.Converters
{
public class NumericStringFormatConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
if (null != values && values.Length == 2)
{
try
{
if (values[0] is int i)
{
return i.ToString(values[1] as string, CultureInfo.InvariantCulture);
}
if (values[0] is double d)
{
return (d is double.NaN) ? Strings.Strings.Table_NA : d.ToString(values[1] as string, CultureInfo.InvariantCulture);
}
if (values[0] is float f)
{
return (f is float.NaN) ? Strings.Strings.Table_NA : f.ToString(values[1] as string, CultureInfo.InvariantCulture);
}
if (values[0] is decimal deci)
{
return deci.ToString(values[1] as string, CultureInfo.InvariantCulture);
}
}
catch
{
}
}
return null;
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB