AA2Install.formMain.tryCancel C# (CSharp) Method

tryCancel() public method

Cancels if cancelPending is set to true.
public tryCancel ( ) : bool
return bool
        public bool tryCancel()
        {
            if (cancelPending)
            {
                setEnabled(true);
                updateStatus("User cancelled operation.", LogIcon.Error, false);
                refreshModList(false, txtSearch.Text);
                return true;
            }
            return false;
        }