private void changeUser_btn_Click(object sender, RoutedEventArgs e) { Window ChildWindow = new redactWnd("Изменить", usersGrid.SelectedIndex); ChildWindow.Owner = this; ChildWindow.ShowDialog(); }
private void addUser_btn_Click(object sender, RoutedEventArgs e) { Window ChildWindow = new redactWnd("Добавить"); ChildWindow.Owner = this; ChildWindow.ShowDialog(); }