public void StoreDo(string option, Ele e) { Ele olde = null; if (e.undoEle != null) { olde = e.undoEle.Copy(); } Ele newe = e.Copy(); BufferedElement buff = new BufferedElement(e, newe, olde, option); undoB.Add2Buff(buff); e.undoEle = e.Copy(); }