示例#1
0
        public void removeAccount(int index)
        {
            DataTable table = accView.getAccountTable();

            if (model.deleteAccount(table.Rows[index]["ACC_CODE"] + ""))
            {
                //delete in grid
                table.Rows.RemoveAt(index);
            }
            else
            {
                accView.showMessageBox(Resources.MB_FAILURE, System.Windows.Forms.MessageBoxIcon.Information);
            }
        }