using FLY.DownBlowing.UI.Client.UiModule; using FLY.DownBlowing.UI.Client.UnitTests; using System; using System.Diagnostics; using System.Windows; namespace WpfApp1 { /// <summary> /// MainWindow.xaml 的交互逻辑 /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Init(); } public void Init() { } private void btnTempClick(object sender, RoutedEventArgs e) { Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); //WdTempAreaSet w = new WdTempAreaSet(); //w.Init(this.downBlowingSystemService, tempArea); //w.Owner = FLY.ControlLibrary.COMMON.GetWindow(this); //w.Show(); DownBlowingSystemServiceUt downBlowingSystem = new DownBlowingSystemServiceUt(); Window w = new Window(); w.Height = 600; w.Width = 800; w.DataContext = downBlowingSystem; var p = new TempAreaPanel2(); w.Content = p; w.Show(); stopwatch.Stop(); long ms = stopwatch.ElapsedMilliseconds; Console.WriteLine($"btnTempClick ms = {ms}"); } } }