Exemplo n.º 1
0
        private void method_17(object sender, int index, DxfViewport item)
        {
            DxfModel model = this.Model;

            if (model == null)
            {
                return;
            }
            item.vmethod_3(this.Model);
            item.vmethod_2((IDxfHandledObject)this.OwnerBlock);
            if (item.ViewportEntityHeader == null || model.ViewportEntityHeaders.Contains(item.ViewportEntityHeader))
            {
                return;
            }
            model.ViewportEntityHeaders.Add(item.ViewportEntityHeader);
        }
Exemplo n.º 2
0
        private void method_18(object sender, int index, DxfViewport oldItem, DxfViewport newItem)
        {
            DxfModel model = this.Model;

            if (model == null)
            {
                return;
            }
            newItem.vmethod_3(this.Model);
            newItem.vmethod_2((IDxfHandledObject)this.OwnerBlock);
            if (newItem.ViewportEntityHeader != null && !model.ViewportEntityHeaders.Contains(newItem.ViewportEntityHeader))
            {
                model.ViewportEntityHeaders.Add(newItem.ViewportEntityHeader);
            }
            oldItem.vmethod_4(this.Model);
            oldItem.vmethod_2((IDxfHandledObject)null);
            if (oldItem.ViewportEntityHeader == null || !model.ViewportEntityHeaders.Contains(oldItem.ViewportEntityHeader))
            {
                return;
            }
            model.ViewportEntityHeaders.Remove(oldItem.ViewportEntityHeader);
        }