2026-04-01 20:29:45 +08:00
|
|
|
|
using MembranePoreTester.ViewModels;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MembranePoreTester
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// TestView.xaml 的交互逻辑
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class TestView : Window
|
|
|
|
|
|
{
|
|
|
|
|
|
public TestView()
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
// 如果需要在打开时自动开始模拟,可以在此设置 DataContext
|
|
|
|
|
|
DataContext = new TestViewModel();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void Window_KeyDown(object sender, KeyEventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (Keyboard.Modifiers == ModifierKeys.Control && e.Key == Key.P)
|
|
|
|
|
|
{
|
2026-04-01 20:33:23 +08:00
|
|
|
|
var win = new ParameterWindow();
|
2026-04-01 20:29:45 +08:00
|
|
|
|
win.Owner = this;
|
|
|
|
|
|
win.ShowDialog();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|