Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
CoffeeTypeColumn.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
5
10{
15 // ReSharper disable once UnusedType.Global
17 {
18 public string InternalName { get; } = "MockPlugin_CoffeeType";
19 public string VisibleName { get; } = "Coffee Type";
20
24 [Editable(true)]
25 public IEnumerable<object> ComboboxItems
26 {
27 get
28 {
29 yield return "Americano";
30 yield return "Espresso";
31 yield return "Cortado";
32 yield return $"Hyped coffee of the second ({DateTime.Now:yyyy-MM-dd HH:mm:ss})";
33 }
34 }
35
36 public Type ValueType { get; } = typeof(string);
37 public IEnumerable<IColumnMenu> ColumnHeaderMenu { get; } = null;
38 }
39}
Interfaces for custom sample list column type definitions. These interfaces allow you to define new c...
Definition ColumnMenu.cs:4
The classes in this namespace demonstrate how to define your own sample list column types.
Implement this interface on a class that defines a custom column that can be used just like a builtin...
Definition ColumnType.cs:18
Just an example for freshly updated combobox entries.
string InternalName
Nametag that will be used internally for storing a column of this type in the method....
IEnumerable< object > ComboboxItems
Last entry is based on current time to show when it was created.
Type ValueType
Used for getting information which UITypeEditor, TypeConverter etc to use for your column.
string VisibleName
Column type name that will be presented to the user in the method editor in the "Cell Type" column....
Just a general purpose column header menu.