Prechádzať zdrojové kódy

Merge pull request #3805 from syohex/fix-fsharp-example

fix the build issue of F# example
Tig 8 mesiacov pred
rodič
commit
4ccb3fbc4b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      FSharpExample/Program.fs

+ 1 - 1
FSharpExample/Program.fs

@@ -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)
 
         // 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
                 MessageBox.Query("Logging In", "Login Successful", "Ok") |> ignore
                 ExampleWindow.UserName <- userNameText.Text.ToString()