Remove useless 'yield'
[master-thesis.git] / Parasitemia / ParasitemiaUI / CommandLineArguments.fs
1 module ParasitemiaUI.CommandLineArguments
2
3 open System
4 open System.Windows
5 open System.Windows.Controls
6 open System.Diagnostics
7
8 let showWindow (parent : Window) =
9 let win = Views.CommandLineArgumentsWindow ()
10 win.Owner <- parent
11
12 win.Left <- (if parent.WindowState = WindowState.Maximized then 0. else parent.Left) + parent.ActualWidth / 2. - win.Width / 2.
13 win.Top <- (if parent.WindowState = WindowState.Maximized then 0. else parent.Top) + parent.ActualHeight / 2. - win.Height / 2.
14
15 win.txtCommandLineArguments.Text <- Utils.argsHelp
16
17 win.butClose.Click.AddHandler (fun obj args -> win.Close ())
18
19 win.ShowDialog () |> ignore
20