示例#1
0
        private void Button_SaveChanges(object sender, EventArgs e)
        {
            this.Enabled = false;

            if (!transactionManager.ChangesDetected())
            {
                new DialogManager().ShowDialog(DialogManager.DialogLevel.Information, "No changes detected", null);
            }
            else
            {
                DialogConfirmation confirm = new DialogConfirmation(transactionForDelete: transactionManager.DeletedTransactionList,
                                                                    transactionForModified: transactionManager.ModifiedTransactionList,
                                                                    transactionForAdd: transactionManager.AddedTransactionList);
                confirm.FormClosing += Confirm_FormClosing;
                confirm.Show();
            }
        }