Beispiel #1
0
        public bool Add()
        {
            bool ReturnValue;

            if (Title != "" && Description != "")
            {
                DATA.AddNewPurchase(this);
                OnPurchaseCreated();
                ReturnValue = true;
            }
            else
            {
                ReturnValue = false;
            }

            return(ReturnValue);
        }