Canguro.Commands.View.Selection.Start C# (CSharp) Метод

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

public Start ( Canguro services ) : void
services Canguro
Результат void
        public void Start(Canguro.Controller.CommandServices services)
        {
            if (services == null)
            {
                this.services = null;
                Reset();
                return;
            }

            Canguro.Model.Model m = Canguro.Model.Model.Instance;

            // If it's a new command asking for its first selection, throw current (past) selection away
            if (this.services != services)
                m.UnSelectAll();

            this.services = services;
            Reset();

            // Start selection command
            Canguro.Controller.Controller.Instance.Execute("select");

            // If starting a Get Point Selection, start Snap
            if (services.SelectionFilter == Canguro.Controller.WaitingFor.Point)
                Controller.Controller.Instance.TrackingController.SnapController.IsActive = true;
        }