Improved client handling and episode models
This commit is contained in:
@@ -1,16 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace EstusShots.Gtk.Controls
|
||||
{
|
||||
public class DataColumn
|
||||
{
|
||||
public string PropertyName { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public DataColumn() { }
|
||||
public DataColumn()
|
||||
{
|
||||
}
|
||||
|
||||
public DataColumn(string propertyName)
|
||||
{
|
||||
PropertyName = propertyName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The name of the property in the data source, that should be show nin the view
|
||||
/// </summary>
|
||||
public string PropertyName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The column header.
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Applies the given transformation on each item in the column.
|
||||
/// This changes only the display of the value.
|
||||
/// </summary>
|
||||
public Func<object, string> Format { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user