public void newAsset()
        {
            CryptoModel Asset = new CryptoModel(Nom, Abrev, Details, "", Price, MaxSupply, CircuSupply);

            CryptoModelDAL.InsertIfNotExist(Asset);
            List <CryptoModel> listeControle = new List <CryptoModel>(CryptoModelDAL.GetAssets());
        }
        //Buy cryptocurrency
        public void newBuy()
        {
            if (PriceUsd != null)
            {
                var      test      = float.Parse(PriceUsd);
                var      test2     = float.Parse(SelectedCrypto.PriceUsd.Replace("$", ""), CultureInfo.InvariantCulture.NumberFormat);
                float    yourbuy   = test / test2;
                DateTime localDate = DateTime.Now;
                Date = localDate.ToString();

                BuySellModel BuyAsset = new BuySellModel(selectedCrypto.Name, PriceUsd, yourbuy.ToString(), SelectedCrypto.ImageUrl, Date);
                //Add data for push on sqlite
                CryptoModelDAL.InsertIfNotExistS(BuyAsset);
                //Push data on sqlite
            }
        }
        public void DeleteCrypto(CryptoModel asset)
        {
            Asset = asset;

            CryptoModelDAL.DeleteAsset(Asset);
        }
 //Delete asset item list when click and accept
 public void DoSomething()
 {
     Asset = SelectedMe;
     CryptoModelDAL.DeleteBuyAsset(Asset);
 }