// ======================================== // constructor // ======================================== public PasteCommand(IEditor target, Point location, string description, string format, EditorPaster creator) { _target = target; _location = location; _description = description; _format = format; _creator = creator; }
// === PasteRole ========== public virtual void RegisterPaster(string format, EditorPaster paster) { _FormatAndPasters.Add(Tuple.Create(format, paster)); }