12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
-
- using CefSharp;
- using efunbox_xyyf_windows.contract;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace efunbox_xyyf_windows
- {
- public class JSInterfaces
- {
- MainContract.IView mView;
- public JSInterfaces(MainContract.IView view)
- {
- mView = view;
- }
- /*
- * 弹出提示
- * **/
- public void showMessage(string message)
- {
- MessageBox.Show(message);
- }
- /*
- * 退出应用
- * **/
- public void exitApp()
- {
- Cef.Shutdown();
- if (mView.getWebView() != null)
- {
- mView.getWebView().Dispose();
- }
- Process.GetCurrentProcess().Kill();
- }
- }
- }
|