DocumentDependencies

References
public sealed class DocumentDependencies
A class for maintaining and harvesting data from document dependencies. For example when this document imports data from another document.

Properties

Document

#
Gets the document this instance is associated with.
public Document Document { get; }

HasDependencies

#
Gets whether the document has dependencies on other documents.
public bool HasDependencies { get; }

Methods

CreateGraph

#
Create a graph of the entire dependency hierarchy starting from this document. This will load but not solve any of the files.
public DependencyGraph CreateGraph()

DataFileSources

#
Parse a potential file dependency and return an array of strings representing the available data.
public static string[] DataFileSources(
file
File to parse.
)
Array of available data names.

PickDataFile

#
Ask the user to pick either a *.ghz or a *.ghdata file.
public static string PickDataFile(
title = null,
Window
parent = null,
initialFolder = null
)
Source file or null.

PickSourceFilter

#
Given a file, ask the user to pick a source filter. Depending on the file format, this may or may not show modal UI on the screen.
public static string PickSourceFilter(
file
)

ResolveDependency

#
Resolve a specific dependency. If the implicated file hasn't been cached yet, it will be loaded, solved and cached. Hence, this method may take a long time.
public DependencyData ResolveDependency(
origin,
Object which is the origin of this request.
solution,
file,
File dependency.
name
Name of data within file to harvest.
)
The found resolution.