init
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 612 B |
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// The object definition which is adding to the Main Region.
|
||||
/// </summary>
|
||||
public class ViewDefinition
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the region name in which a view is displayed.
|
||||
/// </summary>
|
||||
public string RegionName { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type the View's interface.
|
||||
/// </summary>
|
||||
public Type ViewInterfaceType { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type the View.
|
||||
/// </summary>
|
||||
// public Type ViewType { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the viewmodel's interface.
|
||||
/// </summary>
|
||||
public Type ViewModelInterfaceType { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the viewmodel.
|
||||
/// </summary>
|
||||
/// <param name="regionName">Region name</param>
|
||||
/// <param name="viewInterfaceType">Type of the View's interface to be registered.</param>
|
||||
/// <param name="viewModelInterfaceType">Type of the View Model to be registered.</param>
|
||||
public ViewDefinition(string regionName, Type viewInterfaceType, Type viewModelInterfaceType)
|
||||
{
|
||||
RegionName = regionName;
|
||||
ViewInterfaceType = viewInterfaceType;
|
||||
ViewModelInterfaceType = viewModelInterfaceType;
|
||||
}
|
||||
///// <summary>
|
||||
///// Creates a new instance of the object.
|
||||
///// Creates a new instance of the object.
|
||||
///// </summary>
|
||||
///// <param name="viewInterfaceType">Type of the View's interface to be registered.</param>
|
||||
///// <param name="viewType">Type of the View to be registered.</param>
|
||||
///// <param name="viewModelInterfaceType">Type of the viewmodel's interface to be registered.</param>
|
||||
///// <param name="viewModelType">Type of the viewmodel to be registered.</param>
|
||||
////public ViewDefinition(Type viewInterfaceType, Type viewType, Type viewModelInterfaceType, Type viewModelType)
|
||||
//{
|
||||
// ViewInterfaceType = viewInterfaceType;
|
||||
// ViewType = viewType;
|
||||
// ViewModelInterfaceType = viewModelInterfaceType;
|
||||
// ViewModelType = viewModelType;
|
||||
//}
|
||||
|
||||
private ViewDefinition() { }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event to inform app that it should mark itself busy or available
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
public class ListViewStatusEvent : PubSubEvent<ListViewStatusArg> { }
|
||||
|
||||
public class ListViewStatusArg
|
||||
{
|
||||
public enum ListViewStatus
|
||||
{
|
||||
Unloaded,
|
||||
ScrollToBottom
|
||||
}
|
||||
public ListViewStatus Status { get; }
|
||||
|
||||
public string Id { get; }
|
||||
|
||||
public ListViewStatusArg(ListViewStatus status, string id)
|
||||
{
|
||||
Status = status;
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace DTS.Common.Interface.CustomChannels
|
||||
{
|
||||
public interface ICustomChannelModel
|
||||
{
|
||||
string Name { get; }
|
||||
bool Included { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user