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; }
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); }