예제 #1
0
파일: Account.cs 프로젝트: mezeus/IPCAXprs
        private void btnDelete_Click(object sender, EventArgs e)
        {
            bool isDelete = accMaster.DeleteAccountMasterById(groupId);

            if (isDelete)
            {
                LedgerPostingBL objBL = new LedgerPostingBL();
                if (objBL.LedgerPostingDelete(groupId))
                {
                    MessageBox.Show("Delete Successfully!");
                    ClearControls();
                    groupId = 0;
                    Administration.List.AccountList frmList = new Administration.List.AccountList();
                    frmList.StartPosition = FormStartPosition.CenterScreen;

                    frmList.ShowDialog();
                    FillAccountInfo();
                }
            }
        }