Example #1
0
        public bool Insert(VideoItem BDVideoItems)
        {
            if (_FileExists) {
                _connection.Open ();

                // This is the first time the app has run and/or that we need the DB.
                // Copy a "template" DB from your assets, or programmatically create one like this:
                var command = "INSERT INTO VideoBuy (_VideoId, _VideoName, _VideoLink, _VideoPrice, _VideoTiming) VALUES ('" + BDVideoItems._VideoId + "', '" + BDVideoItems._VideoName + "', '" + BDVideoItems._VideoLink + "', '" + BDVideoItems._VideoPrice.ToString () + "', '" + BDVideoItems._VideoTiming.ToString () + "')";
                using (var c = _connection.CreateCommand ()) {
                    c.CommandText = command;
                    c.ExecuteNonQuery ();
                }

                _connection.Close ();
            }
            return _FileExists;
        }
 public VideosListAdapter(Activity context, VideoItem[] videoItems)
 {
     _Context = context;
     _VideoItems = videoItems;
 }