/// <summary> /// Constructor /// </summary> /// public DeviceImage(string fPath) { FileInfo f = new FileInfo(fPath); this.FileSize = f.Length; this.FileName = f.Name; this.FilePath = fPath; this.FileDirectory = fPath.Replace(f.Name, ""); TryOpenRom(fPath); if (this.CalId == null) { UndefinedWindow uw = new UndefinedWindow(fPath); uw.ShowDialog(); TryOpenRom(fPath); } }
/// <summary> /// Constructor /// </summary> /// public ECU(SharpTuner st, string fPath) { sharpTuner = st; FileInfo f = new FileInfo(fPath); this.FileSize = f.Length; this.FileName = f.Name; this.FilePath = fPath; this.FileDirectory = fPath.Replace(f.Name, ""); TryOpenRom(fPath); if (this.CalId == null) { UndefinedWindow uw = new UndefinedWindow(sharpTuner, fPath); uw.ShowDialog(); TryOpenRom(fPath); } }