Canguro.Commands.Model.InvertSelectionCmd.Run C# (CSharp) Метод

Run() публичный Метод

Executes the command. Selects all unselected items and deselect the rest.
public Run ( Canguro services ) : void
services Canguro CommandServices object to interact with the system
Результат void
        public override void Run(Canguro.Controller.CommandServices services)
        {
            foreach (Item item in services.Model.JointList)
                if (item != null)
                    item.IsSelected = !item.IsSelected;

            foreach (Item item in services.Model.LineList)
                if (item != null)
                    item.IsSelected = !item.IsSelected;

            services.Model.ChangeSelection(null);
        }
InvertSelectionCmd