Canguro.Controller.CommandServices.getSelection C# (CSharp) Метод

getSelection() приватный Метод

Adds all the selected Items to the provided selection list.
private getSelection ( Canguro model, List selection ) : bool
model Canguro The current Model object
selection List The list to add all the selected Items.
Результат bool
        private bool getSelection(Canguro.Model.Model model, List<Canguro.Model.Item> selection)
        {
            foreach (Canguro.Model.Item item in model.JointList)
                if (item != null && item.IsSelected)
                    selection.Add(item);

            foreach (Canguro.Model.Item item in model.LineList)
                if (item != null && item.IsSelected)
                    selection.Add(item);

            foreach (Canguro.Model.Item item in model.AreaList)
                if (item != null && item.IsSelected)
                    selection.Add(item);

            return (selection.Count > 0);
        }