Improved client handling and episode models

This commit is contained in:
2020-02-27 23:11:36 +01:00
parent 82722e77d6
commit 2d2f8b6b76
22 changed files with 540 additions and 257 deletions

View File

@@ -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; }
}
}