Exemplo n.º 1
0
            public MoveButton(double x, double y, GuiWidget buttonView, PrinterCommunication.Axis axis, double movementFeedRate)
                : base(x, y, buttonView)
            {
                this.moveAxis         = axis;
                this.movementFeedRate = movementFeedRate;

                this.Click += new ButtonBase.ButtonEventHandler(moveAxis_Click);
            }
Exemplo n.º 2
0
            public MoveButton Generate(string label, PrinterCommunication.Axis axis, double movementFeedRate)
            {
                //Create button based on view container widget
                ButtonViewStates buttonViewWidget = getButtonView(label);
                MoveButton       textImageButton  = new MoveButton(0, 0, buttonViewWidget, axis, movementFeedRate);

                textImageButton.Margin  = new BorderDouble(0);
                textImageButton.Padding = new BorderDouble(0);
                return(textImageButton);
            }
Exemplo n.º 3
0
            public MoveButton(double x, double y, GuiWidget buttonView, PrinterCommunication.Axis axis, double movementFeedRate)
                : base(x, y, buttonView)
            {
                this.moveAxis = axis;
                this.movementFeedRate = movementFeedRate;

                this.Click += new ButtonBase.ButtonEventHandler(moveAxis_Click);
            }