示例#1
0
        public bool Void()
        {
            if ((State = DonationTransactionState.Void) == DonationTransactionState.Void)
            {
                if (!AutoDonate.CMOptions.ShowHistory)
                {
                    Hidden = true;
                }

                DonationEvents.InvokeTransVoided(this);
                return(true);
            }

            return(false);
        }
示例#2
0
        public bool Void()
        {
            if (State == TransactionState.Voided)
            {
                return(true);
            }

            if ((State = TransactionState.Voided) == TransactionState.Voided)
            {
                ++Version;

                DonationEvents.InvokeTransVoided(this);

                LogToFile();

                return(true);
            }

            return(false);
        }