コード例 #1
0
 public CommandObject(DrawPadCommand command, object reserve) : this(command)
 {
     _reserve = reserve;
 }
コード例 #2
0
 public CommandObject(DrawPadCommand command)
 {
     _command = command;
     _reserve = null;
 }
コード例 #3
0
ファイル: CommandObject.cs プロジェクト: panoti/DADHMT_LTW
 public CommandObject(DrawPadCommand command, object reserve)
     : this(command)
 {
     _reserve = reserve;
 }
コード例 #4
0
ファイル: CommandObject.cs プロジェクト: panoti/DADHMT_LTW
 public CommandObject(DrawPadCommand command)
 {
     _command = command;
     _reserve = null;
 }
コード例 #5
0
ファイル: DrawPad.cs プロジェクト: panoti/DADHMT_LTW
        public DrawPad()
        {
            InitializeComponent();

            Zoom = 1;

            _shapeDrawer = new ShapeDrawer();
            _filler = new Filler();
            _drawingControl = new DrawingControl();
            _drawingControl.SetShapDrawer(_shapeDrawer);
            _drawingControl.ShapeCreated += DrawingControl_ShapeCreated;

            _textControl = new TextControl(gdiArea);
            _textControl.TextCreated += TextControl_TextCreated;
            _textControl.TextChanged += TextControl_TextChanged;

            _currentCommand = DrawPadCommand.None;
            _currentShape = null;

            _outlineWidth = 2F;
            _outlineColor = Color.Black;
            _outlineDash = DashStyle.Solid;
            _fillColor = Color.Transparent;
            _textFont = new Font("Segoe UI", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);

            _shapeArea = 0;
        }
コード例 #6
0
 public CommandChangedEventArgs(DrawPadCommand command)
 {
     Command = command;
 }