private void Removed(IDataSnapshot snap, string previous_child, object context) { Debug.Print(snap.Key); IFireObject fireObjectInstance = (IFireObject)JsonConvert.DeserializeObject(snap.Value(), this.ObjectType); fireObjectInstance.Key = snap.Key; this.remove(fireObjectInstance); }
private void PaintItem(IDataSnapshot snap) { Point p = NormalizedPointFromFirebase(snap.Key); PaintPoint(p, GetBrushFromFirebaseColor(snap.Value())); }
private void SetDataList(IDataSnapshot snap) { List <DataSample> _firebaseItems = JsonConvert.DeserializeObject <List <DataSample> >(snap.Value()); AnimateRows(GetDifferentFromFirebase(_firebaseItems)); if (DataList.Items.Count == 0) //When you start app, your DataList is empty { InitializeDataListView(_firebaseItems); } }