diff --git a/View/ProgramstepsView .xaml.cs b/View/ProgramstepsView .xaml.cs index f6f24f3..829ef03 100644 --- a/View/ProgramstepsView .xaml.cs +++ b/View/ProgramstepsView .xaml.cs @@ -98,6 +98,7 @@ namespace DyeingComputer.View private void ProgramgroupView_edit_Click(object sender, RoutedEventArgs e)//编辑 { ViewStep viewstop = new ViewStep(); + viewstop.data = ID; viewstop.ShowDialog(); } diff --git a/Windows/ViewStep.xaml.cs b/Windows/ViewStep.xaml.cs index 670f95c..67265c8 100644 --- a/Windows/ViewStep.xaml.cs +++ b/Windows/ViewStep.xaml.cs @@ -20,10 +20,12 @@ namespace DyeingComputer.Windows /// public partial class ViewStep : Window { + public string data { get; set; } public ViewStep() { InitializeComponent(); Form1_Load(); + FocusManager.SetFocusedElement(boxNAME, boxNAME); } private void Tb_KeyPress(object sender, TextCompositionEventArgs e)//输入事件