2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Globalization;
8using MockPlugin.Properties;
41 foreach (var someCell
in cells.Skip(1))
43 var validItems = someCell.Column.StandardItems;
47 if (currVal == allValues.Last())
49 currVal = allValues.First();
56 }
while (roundtrips < 2 && (validItems?.Count ?? 0) > 0 && !validItems.Contains(currVal.ToString()));
57 someCell.Value = currVal;
66 private void FillDown(IReadOnlyList<ICellAccessor> cells)
70 var topVal = cells[0].Value;
71 foreach (var someCell
in cells.Skip(1))
73 someCell.Value = topVal;
99 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture,
object value)
101 return base.ConvertFrom(context, culture, value);
Classes and interfaces that are meant for plugins. The classes and interfaces below this namespace ar...
Interfaces for custom sample list column type definitions. These interfaces allow you to define new c...
Example task implementations. Since there are lots of things that can be done from a task,...
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...
Just a general purpose column header menu.
Simple case: Enum based column. Possible values are given in the StandardItems, custom editor is not ...
string VisibleName
Column type name that will be presented to the user in the method editor in the "Cell Type" column....
void CycleThrough(IReadOnlyList< ICellAccessor > cells)
void FillDown(IReadOnlyList< ICellAccessor > cells)
Fill all given cells with the value of the top row.
Type ValueType
Used for getting information which UITypeEditor, TypeConverter etc to use for your column.
IEnumerable< object > ComboboxItems
List of possible values that can be presented to the user in a drop-down list.
string InternalName
Nametag that will be used internally for storing a column of this type in the method....
IEnumerable< IColumnMenu > ColumnHeaderMenu
If this is not null, it declares column header menu entries that can be used for "Autofill" like feat...
Just provide a TypeConverter, and Chronos is happy.
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
The actual conversion work string->object is done here.
CreamTypeConverter()
Luckily we can inherit everything necessary.
A task working on a complex parameter set.
CreamType
Enum properties result in nice drop-down lists.