示例#1
0
        // ========================================
        // method
        // ========================================
        public override void Execute()
        {
            var model = _modelFactory.CreateModel();

            _createdEditor = _target.AddChild(model);
            _createdEditor.Figure.Bounds = _bounds;
            _createdEditor.Enable();

            var select = new SelectRequest();

            select.DeselectOthers = true;
            select.Value          = SelectKind.True;
            _createdEditor.PerformRequest(select);
        }
示例#2
0
        // ========================================
        // method
        // ========================================
        public override void Execute()
        {
            /// modelの生成
            var model = _modelFactory.CreateModel();

            Contract.Requires(model != null);

            _createdEditor = _target.AddChild(model);
            SetUp(_createdEditor, model);

            var select = new SelectRequest();

            select.DeselectOthers = true;
            select.Value          = SelectKind.True;
            _createdEditor.PerformRequest(select);
        }
        // ========================================
        // method
        // ========================================
        public override void Execute()
        {
            var model = _modelFactory.CreateModel();

            _createdEditor = _target.AddChild(model);
            var freehand = _createdEditor.Figure as FreehandFigure;

            freehand.SetPoints(_points);
            freehand.BorderWidth = _width;
            freehand.Foreground  = _color;
            _createdEditor.Enable();

            //var select = new SelectRequest();
            //select.DeselectOthers = true;
            //select.Value = SelectKind.True;
            //_createdEditor.PerformRequest(select);
        }