예제 #1
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;
 }
예제 #2
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);
            }