public UndoRedo(Friska_dama mDialog) { this.mainDialog = mDialog; this.undoButton = mDialog.UndoButton; this.redoButton = mDialog.RedoButton; this.history = mDialog.History; }