async Task Submit(ButtonRow button)
        {
            try
            {
                var type    = _type.Selection;
                var itemId  = int.Parse(_purchaseId.Edit.Text);
                var groupId = short.Parse(_groupId.Edit.Text);
                var desc    = _description.Edit.Text;
                var price   = decimal.Parse(_price.Edit.Text, System.Globalization.NumberStyles.AllowDecimalPoint);

                var p = Currency.ToHel(price);

                if (type == PurchaseTypes.Feature)
                {
                    _chainPage.AddPurchase(PurchaseInfo.NewFeature(groupId, itemId, desc, p));
                }
                else if (type == PurchaseTypes.Subscription)
                {
                    var hours = long.Parse(_duration.Edit.Text);
                    _chainPage.AddPurchase(PurchaseInfo.NewSubscription(groupId, itemId, desc, p, Time.Hours(hours)));
                }

                await Navigation.PopAsync();
            }
            catch { }
        }