private ICommandExecution CreateWhenTargetIsPreLoadDiscardedColumnsNode(ICommand cmd, PreLoadDiscardedColumnsNode targetPreLoadDiscardedColumnsNode) { var sourceColumnInfoCommand = cmd as ColumnInfoCommand; if (sourceColumnInfoCommand != null) { return(new ExecuteCommandCreateNewPreLoadDiscardedColumn(_activator, targetPreLoadDiscardedColumnsNode.TableInfo, sourceColumnInfoCommand)); } return(null); }
private ICommandExecution CreateWhenTargetIsPreLoadDiscardedColumnsNode(ICombineToMakeCommand cmd, PreLoadDiscardedColumnsNode targetPreLoadDiscardedColumnsNode) { if (cmd is ColumnInfoCombineable sourceColumnInfoCombineable) { return(new ExecuteCommandCreateNewPreLoadDiscardedColumn(_activator, targetPreLoadDiscardedColumnsNode.TableInfo, sourceColumnInfoCombineable)); } return(null); }
public PreLoadDiscardedColumnsNodeMenu(RDMPContextMenuStripArgs args, PreLoadDiscardedColumnsNode discardNode) : base(args, discardNode) { Add(new ExecuteCommandCreateNewPreLoadDiscardedColumn(_activator, discardNode.TableInfo)); }