public void Execute(Selection selection, string[] args, AbstractTableWriter writer)
        {
            var arguments = args.ToList();
            var l1        = arguments[0];

            arguments.RemoveAt(0);
            var l2 = arguments[0];

            arguments.RemoveAt(0);
            var any = bool.Parse(arguments[0]);

            arguments.RemoveAt(0);

            var vm = new FrequencyCrossViewModel
            {
                Selection        = selection,
                LayerDisplayname = l1,
                CorrespondingLayerValueFilter = new CorrespondingLayerValueFilterViewModel
                {
                    Layer1Displayname  = l1,
                    Layer2Displayname  = l2,
                    AnyMatch           = any,
                    Layer2ValueFilters = new HashSet <string>(arguments),
                    Selection          = selection
                }
            };

            vm.Execute();

            writer.WriteTable(selection.Displayname, vm.GetDataTable());
        }
示例#2
0
        public void Execute(Selection selection, string[] args, AbstractTableWriter writer)
        {
            var vm = new FrequencyCrossViewModel {
                Selection = selection
            };

            if (args != null && args.Length == 1)
            {
                vm.LayerDisplayname = args[0];
            }
            vm.Execute();

            writer.WriteTable(selection.Displayname, vm.GetDataTable());
        }