* Modify a bit the parasite nucleus detection sensibility.
[master-thesis.git] / Parasitemia / ParasitemiaUI / GUI.fs
index d749479..3746461 100644 (file)
@@ -24,7 +24,7 @@ let run (defaultConfig: Config) (fileToOpen: string option) =
     let mainWindow = Views.MainWindow()
     let ctrl (name: string): 'a = mainWindow.Root.FindName(name) :?> 'a
 
-    let state = State.State()
+    let state = State.State(defaultConfig)
     let mutable currentScale = 1.
     let mutable displayHealthy = false
     let warningBelowNumberOfRBC = 1000
@@ -165,7 +165,7 @@ let run (defaultConfig: Config) (fileToOpen: string option) =
         then
             txtGlobalParasitemia.Inlines.Add(
                 Documents.Run(
-                    sprintf " Warning: the number of erytrocytes should be above %d" warningBelowNumberOfRBC,
+                    sprintf " Warning: the number of erythrocytes should be above %d" warningBelowNumberOfRBC,
                     FontWeight = FontWeights.Bold,
                     Foreground = Brushes.Red))