zoukankan      html  css  js  c++  java
  • messagebox 这样的操作

    (
      -- setup dotnet classes / objects
      local mb = dotNetClass "System.Windows.Forms.MessageBox"
      local buttons = dotNetClass "System.Windows.Forms.MessageBoxButtons"
      local icons = dotNetClass "System.Windows.Forms.MessageBoxIcon"
      local defaultButton = dotNetClass "System.Windows.Forms.MessageBoxDefaultButton"
      local dialogResult = dotNetClass "System.Windows.Forms.DialogResult"
      
      local result = mb.show "Do you want to save before quitting ?" "Quit" buttons.YesNoCancel icons.Information defaultButton.Button3
      
      -- evaluate result of messageBox (which button has been pressed by the user)
      if ( result == dialogResult.Yes ) then
      (
       format "YES\n"
      )
      else if ( result == dialogResult.No ) then
      (
       format "NO\n"
      )
      else if ( result == dialogResult.Cancel ) then
      (
       format "CANCEL\n"
      )
      
     )

  • 相关阅读:
    C语言学习第八章
    C语言学习第七章
    C语言学习第六章
    C语言学习第五章
    ssh的bug
    Oracel 用户管理
    初识Kettle
    IDEA使用MAVEN时自动创建骨架卡的设置
    2017/6/12 JSON
    DDL,DML,DQL
  • 原文地址:https://www.cnblogs.com/gaitian00/p/2202430.html
Copyright © 2011-2022 走看看