コード例 #1
0
ファイル: CashExpenses.cs プロジェクト: abskulkarni/Lakshya
        private void deleteTransactionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BusinessRules objDatabase = new BusinessRules();

            try
            {
                DataSet ds = objDatabase.DeleteCashExpenseTransaction(Auto_ID);
                if (ds.Tables[0].Rows[0][0].ToString() != "")
                {
                    MessageBox.Show("Record deleted successfully!");
                    InitializeForm(true);
                }
                else
                {
                    MessageBox.Show("Error in deleting Record, please contact System Administrator!");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error in deleting Record, please contact System Administrator!\n" + ex.Message.ToString());
            }
        }