/// <summary> /// Can read or recreate a streams file, monitor changes, /// and add all the sections and items to a context menu. /// </summary> /// <param name="file">Streams file to read from.</param> public StreamsMenuLoader(StreamsFile file) { this.file = file; reader = new StreamsFileReader(); lastUpdated = null; }
/// <summary> /// Can read or recreate a streams file, monitor changes, /// and add all the sections and items to a context menu. /// </summary> /// <param name="filepath">Path to the streams file to read from.</param> /// <param name="resourcepath">Path to the resource used to recreate it.</param> public StreamsFileLoader(String filepath, String resourcepath) { this.filepath = filepath; this.resourcepath = resourcepath; reader = new StreamsFileReader(); lastUpdated = DateTime.MinValue; }