Beispiel #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (objGeneralDba == null)
            {
                objGeneralDba = new GeneralDba();
            }
            decimal transId = 0;

            if (Decimal.TryParse(transIdText.Text, out transId))
            {
                if (objGeneralDba.CompletePMSTask(transId))
                {
                    MessageBox.Show("Transaction completed successfully ");
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Error in completing transaction");
                }
            }
        }