コード例 #1
0
        private void buttonNovo_Click(object sender, RoutedEventArgs e)
        {
            var pedWin = new PedidoWindow("");

            pedWin.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            pedWin.Closed += PedWin_Closed;
            pedWin.ShowDialog();
        }
コード例 #2
0
        private void UpdatePedido()
        {
            var ID     = dataGridOracle.SelectedValue.ToString();
            var pedWin = new PedidoWindow(ID);

            pedWin.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            pedWin.Closed += PedWin_Closed;
            pedWin.ShowDialog();
        }