private static EditorGraph GetOrAddHistory(Form editor, object @object) { var history = _mapHistory.SingleOrDefault(mh => mh.Object == @object); if (EditorGraph.IsNull(history)) { history = new EditorGraph(editor, new ObjectGraph <ControlPropertyAttribute>(@object)); _mapHistory.Add(history); } return(history); }
public static bool IsNull(EditorGraph editorGraph) { return(editorGraph.Object == default && editorGraph.Editor == default && editorGraph.BindedFields == default); }