/// <summary> /// Read all bytes from a .PRG File to build an object. /// Now it supports Class messaging with its parent. /// Allows to show LOAD progress in a control of a parent FORM /// </summary> /// <param name="path">Path to .PRG File</param> /// <param name="parent">Parent object</param> /// <!--Modified by LRUIZ : 2018-06-05--> /// <returns>Prg Object</returns> public static Prg Load(string path, object parent) { Prg _prg = new Prg(); _prg = PrgReader.Read(path, parent); _prg.SetParentClass(parent); return(_prg); }
public static Prg Load(string path) => PrgReader.Read(path);