コード例 #1
0
        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);
        }
コード例 #2
0
 public static bool IsNull(EditorGraph editorGraph)
 {
     return(editorGraph.Object == default && editorGraph.Editor == default && editorGraph.BindedFields == default);
 }