public void Execute(Selection selection, string[] args, AbstractTableWriter writer) { var arguments = args.ToList(); var l1 = arguments[0]; arguments.RemoveAt(0); var w1 = arguments[0]; arguments.RemoveAt(0); var l2 = arguments[0]; arguments.RemoveAt(0); var vm = new PositionFrequencyViewModel { Selection = selection, LayerDisplayname = l1, LayerQueries = new[] { w1 }, CorrespondingLayerValueFilter = new CorrespondingLayerValueFilterViewModel { Layer1Displayname = l1, Layer2Displayname = l2, AnyMatch = true, Layer2ValueFilters = new HashSet <string>(arguments), Selection = selection } }; vm.Execute(); writer.WriteTable(selection.Displayname, vm.GetDataTable()); }
public void Execute(Selection selection, string[] args, AbstractTableWriter writer) { if (args == null || args.Length < 2) { return; } var vm = new PositionFrequencyViewModel { Selection = selection, LayerDisplayname = args[0], LayerQueries = new[] { args[1] } }; vm.Execute(); writer.WriteTable(selection.Displayname, vm.GetDataTable()); }