open Types
-type State () =
+type State (defaultConfig: ParasitemiaCore.Config.Config) =
let sourceImages = List<SourceImage>()
let mutable alteredSinceLastSave = false
let mutable patientID = ""
/// </summary>
/// <exception cref="System.IOException">If the file cannot be loaded</exception>
member this.Load () =
- let data = PiaZ.load this.FilePath
+ let data = PiaZ.load this.FilePath defaultConfig
this.PatientID <- data.patientID
sourceImages.Clear()
sourceImages.InsertRange(0, data.images)