This commit is contained in:
sc committed 2024-08-31 00:15:19 +08:00
commit 559e2c659c
2 files changed
+3

No files matched your search

+1
View File
@@ -98,6 +98,7 @@ namespace DyeingComputer.View
private void ProgramgroupView_edit_Click(object sender, RoutedEventArgs e)//编辑 private void ProgramgroupView_edit_Click(object sender, RoutedEventArgs e)//编辑
{ {
ViewStep viewstop = new ViewStep(); ViewStep viewstop = new ViewStep();
viewstop.data = ID;
viewstop.ShowDialog(); viewstop.ShowDialog();
} }
+2
View File
@@ -20,10 +20,12 @@ namespace DyeingComputer.Windows
/// </summary> /// </summary>
public partial class ViewStep : Window public partial class ViewStep : Window
{ {
public string data { get; set; }
public ViewStep() public ViewStep()
{ {
InitializeComponent(); InitializeComponent();
Form1_Load(); Form1_Load();
FocusManager.SetFocusedElement(boxNAME, boxNAME);
} }
private void Tb_KeyPress(object sender, TextCompositionEventArgs e)//输入事件 private void Tb_KeyPress(object sender, TextCompositionEventArgs e)//输入事件