private void buttonNovo_Click(object sender, RoutedEventArgs e) { var pedWin = new PedidoWindow(""); pedWin.WindowStartupLocation = WindowStartupLocation.CenterScreen; pedWin.Closed += PedWin_Closed; pedWin.ShowDialog(); }
private void UpdatePedido() { var ID = dataGridOracle.SelectedValue.ToString(); var pedWin = new PedidoWindow(ID); pedWin.WindowStartupLocation = WindowStartupLocation.CenterScreen; pedWin.Closed += PedWin_Closed; pedWin.ShowDialog(); }