-module ParasitemiaUI.DPICalculator
+module ParasitemiaUI.PPICalculator
open System
open System.Windows
sprintf "%g mm × %g mm%s" this.w this.h (if this.txt = "" then "" else " (" + this.txt + ")")
let showWindow (parent: Window) : int option =
- let win = Views.DPICalculatorWindow()
+ let win = Views.PPICalculatorWindow()
win.Root.Owner <- parent
win.Root.Left <- parent.Left + parent.ActualWidth / 2. - win.Root.Width / 2.
win.Root.Top <- parent.Top + parent.ActualHeight / 2. - win.Root.Height / 2.