private void btnEdit_Click(object sender, RoutedEventArgs e) { //Point relativePoint = btnNUs.TransformToAncestor(this) // .Transform(new Point(0, 0)); //Console.WriteLine(relativePoint); EditUser editUser = new EditUser(); //editUser.Top = 250; //editUser.Left = 600; editUser.ShowDialog(); }
private void GridTableUsuarios_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { DataRowView row = GridTableUsuarios.SelectedItem as DataRowView; WpfDisp.cnnClass.publicUserEdit = row.Row.ItemArray[0].ToString(); EditUser frmEditUser = new EditUser(); frmEditUser.ShowDialog(); } catch { } }