using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows; using Microsoft.Web.WebView2.Core; using Muchinfo.MTPClient.Trade.Views.ERMCP; namespace Muchinfo.MTPClient.UI.ViewModels { [ClassInterface(ClassInterfaceType.AutoDual)] [ComVisible(true)] public class Bridge { public string Func(string param) { // 对冲保值 HedgingEntrustWindow hedgingEntrustWindow = new HedgingEntrustWindow(param) { WindowStartupLocation = WindowStartupLocation.CenterScreen }; _ = hedgingEntrustWindow.ShowDialog(); return "Example: " + param; } } }