Esempio n. 1
0
        private void removeFromSelection(Shapes.DiagramShape obj)
        {
            Shapes.DiagramShape obj1 = this.Primary;
            this.myObjTable.Remove(obj);
            base.Remove(obj);
            DiagramView view1 = this.View;

            if (view1 != null)
            {
                if (obj.IsInDocument)
                {
                    obj.OnLostSelection(this);
                }
                view1.RaiseShapeLostSelection(obj);
                if ((obj1 == obj) && obj1.IsInDocument)
                {
                    obj1 = this.Primary;
                    if (obj1 != null)
                    {
                        obj1.OnLostSelection(this);
                        view1.RaiseShapeLostSelection(obj1);
                        obj1.OnGotSelection(this);
                        view1.RaiseShapeSelected(obj1);
                    }
                }
            }
        }