fix the build issue of F# example

This commit is contained in:
Shohei YOSHIDA
2024-10-30 16:15:03 +09:00
parent 2f7d80a000
commit 43994047ab

View File

@@ -19,7 +19,7 @@ type ExampleWindow() as this =
let btnLogin = new Button(Text = "Login", Y = Pos.Bottom(passwordLabel) + Pos.op_Implicit(1), X = Pos.Center(), IsDefault = true) let btnLogin = new Button(Text = "Login", Y = Pos.Bottom(passwordLabel) + Pos.op_Implicit(1), X = Pos.Center(), IsDefault = true)
// When login button is clicked display a message popup // When login button is clicked display a message popup
btnLogin.Accept.Add(fun _ -> btnLogin.Accepting.Add(fun _ ->
if userNameText.Text = "admin" && passwordText.Text = "password" then if userNameText.Text = "admin" && passwordText.Text = "password" then
MessageBox.Query("Logging In", "Login Successful", "Ok") |> ignore MessageBox.Query("Logging In", "Login Successful", "Ok") |> ignore
ExampleWindow.UserName <- userNameText.Text.ToString() ExampleWindow.UserName <- userNameText.Text.ToString()