public UICommand(object id, object caption, ICommand command, bool isDefault, bool isCancel, object tag = null, bool allowCloseWindow = true, Dock placement = Dock.Right, DialogButtonAlignment alignment = DialogButtonAlignment.Right) { this.id = id; this.caption = caption; this.command = command; this.isDefault = isDefault; this.isCancel = isCancel; this.tag = tag; this.allowCloseWindow = allowCloseWindow; this.placement = placement; this.alignment = alignment; }
public UICommand(object id, object caption, ICommand <CancelEventArgs> command, bool isDefault, bool isCancel, object tag = null, bool allowCloseWindow = true, Dock placement = Dock.Right, DialogButtonAlignment alignment = DialogButtonAlignment.Right) : this(id : id, caption : caption, command : (ICommand)command, isDefault : isDefault, isCancel : isCancel, tag : tag, allowCloseWindow : allowCloseWindow, placement : placement, alignment : alignment) { }