示例#1
0
        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()));
 }
示例#3
0
        private void PaintItem(IDataSnapshot snap)
        {
            Point p = NormalizedPointFromFirebase(snap.Key);

            PaintPoint(p, GetBrushFromFirebaseColor(snap.Value()));
        }
示例#4
0
        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);
            }
        }