This tool takes a table cell to initiate a structure search.
/// <summary>
/// This sample tool performs a structure search.
/// </summary>
internal sealed class StructureSearchTool : CustomTool<TablePlotCellContext>
{
internal StructureSearchTool() : base("Structure Search")
{
}
protected override void ExecuteCore(TablePlotCellContext context)
{
if (IsMolStructure(context))
{
// Perform structure search
}
}
private bool IsMolStructure(TablePlotCellContext context)
{
// Verify that context contains a mol structure
throw new NotImplementedException();
}
}