Compare commits

...
2 Commits
2 changed files with 3 additions and 0 deletions

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