init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using DTS.Common.Converters;
|
||||
|
||||
namespace DTS.Common.Enums
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum IncludeOverwriteName
|
||||
{
|
||||
IncludedCheckBox,
|
||||
OverwriteCheckBox,
|
||||
ImportingTestSetupName
|
||||
}
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum ExportChoices
|
||||
{
|
||||
ExportType,
|
||||
UnfilteredEUCheckBox,
|
||||
FilteredEUCheckBox,
|
||||
MVCheckBox,
|
||||
ADCCheckBox
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event to inform app that Automatic Mode status has changed
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
public class AutomaticModeStatusEvent : CompositePresentationEvent<AutomaticModeStatusEventArgs> { }
|
||||
|
||||
public class AutomaticModeStatusEventArgs
|
||||
{
|
||||
public bool TextSet { get; set; } = false;
|
||||
public string Text { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace DTS.Common.Converters
|
||||
{
|
||||
public class InverseEnumVisibilityConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
return null != value && value.Equals(parameter) ? Visibility.Hidden : Visibility.Visible;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
return null != value && value.Equals(Visibility.Hidden) ? parameter : Binding.DoNothing;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.ComponentModel;
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
public interface IBasePropertyChanged : INotifyPropertyChanged
|
||||
{
|
||||
//void OnPropertyChanged(string propertyName = null);
|
||||
//bool SetProperty<T>(ref T storage, T value, String propertyName = null);
|
||||
void OnPropertyChanged(string propertyName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user