sc 1 year ago
parent
commit
559e2c659c
  1. 1
      View/ProgramstepsView .xaml.cs
  2. 2
      Windows/ViewStep.xaml.cs

1
View/ProgramstepsView .xaml.cs

@ -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
Windows/ViewStep.xaml.cs

@ -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)//输入事件

Loading…
Cancel
Save