init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.ISO.ExtraProperties
|
||||
{
|
||||
public interface IExtraPropertiesListView : IBaseView { }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.ISO.ExtraProperties
|
||||
{
|
||||
public interface IExtraPropertiesListViewModel : IBaseViewModel
|
||||
{
|
||||
void SetPage(IDataPROPage page);
|
||||
void SetParent(object parent);
|
||||
IExtraPropertiesListView View { get; set; }
|
||||
|
||||
void CopySelected();
|
||||
void DeleteSelected();
|
||||
ObservableCollection<IExtraProperty> ExtraProperties { get; set; }
|
||||
void SetExtraProperties(IList<IExtraProperty> properties);
|
||||
void Filter(object tag, string term);
|
||||
|
||||
void Sort(object o, bool columnClick);
|
||||
bool Validate(ref List<string> errors);
|
||||
|
||||
bool IsReadOnly { get; set; }
|
||||
IExtraProperty[] SelectedProperties { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
using DTS.Common.Enums;
|
||||
|
||||
namespace DTS.Common.Interface.ISO.ExtraProperties
|
||||
{
|
||||
public interface IExtraProperty : INotifyPropertyChanged
|
||||
{
|
||||
/// <summary>
|
||||
/// key/name of the property
|
||||
/// </summary>
|
||||
string Key { get; set; }
|
||||
/// <summary>
|
||||
/// value associated with property
|
||||
/// </summary>
|
||||
string Value { get; set; }
|
||||
/// <summary>
|
||||
/// handler for paste command
|
||||
/// this is used for when data is pasted into either a key or value
|
||||
/// it's needed because you can paste many rows, a CSV for example, into one field
|
||||
/// </summary>
|
||||
ICommand PasteCommand { get; set; }
|
||||
/// <summary>
|
||||
/// the status of the item in the UI
|
||||
/// (failed/success/etc)
|
||||
/// </summary>
|
||||
UIItemStatus ItemStatus { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user