コード例 #1
0
        public Layer(LayerTableRecord layer)
        {
            _id = layer.Id;
            _name = layer.Name;
            _color = layer.Color;
            _visibility = !layer.IsOff;

            _points = new ObservableCollection<Point>();
            _lines = new ObservableCollection<Line>();
            _circles = new ObservableCollection<Circle>();

            _selectedPoint = new Point();
            _selectedLine = new Line();
            _selectedCirle = new Circle();
        }
コード例 #2
0
        public Layer()
        {
            _id = new ObjectId();
            _name = "layer";
            _color = AcadC.Color.FromRgb(255, 255, 255);
            _visibility = true;

            _points = new ObservableCollection<Point>();
            _lines = new ObservableCollection<Line>();
            _circles = new ObservableCollection<Circle>();

            _selectedPoint = new Point();
            _selectedLine = new Line();
            _selectedCirle = new Circle();
        }