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

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

Executes the command. Sets all the Items IsVisible property to true.
public Run ( Canguro services ) : void
services Canguro CommandServices object to interact with the system
Результат void
        public override void Run(Canguro.Controller.CommandServices services)
        {
            foreach (Joint j in services.Model.JointList)
                if (j != null)
                    j.IsVisible = true;

            foreach (LineElement l in services.Model.LineList)
                if (l != null)
                    l.IsVisible = true;

            if (services.Model.HasResults)
                services.Model.Results.StressHelper.IsDirty = true;

            services.Model.ChangeModel();
        }
ShowAllCmd