public void SwitchPose(int PoseID) { this.PoseID = -1; var db = DataService.Instance.GetConnection(); QueryLeft = db.Table <TimePoint>() .Where(v => v.PoseID.Equals(PoseID)) .Where(v => v.Type.Equals(TimePoint.TYPE_HAND_LEFT)); QueryRight = db.Table <TimePoint>() .Where(v => v.PoseID.Equals(PoseID)) .Where(v => v.Type.Equals(TimePoint.TYPE_HAND_RIGHT)); QueryHead = db.Table <TimePoint>() .Where(v => v.PoseID.Equals(PoseID)) .Where(v => v.Type.Equals(TimePoint.TYPE_HEAD)); EQ_Left = QueryLeft.GetEnumerator(); EQ_Right = QueryRight.GetEnumerator(); EQ_Head = QueryHead.GetEnumerator(); EQ_Head.MoveNext(); InitialHeadPos = HeadV3; InitialHeadQ = HeadQ; EQ_Head.Reset(); this.PoseID = PoseID; }
public void SwitchPose(int PoseID) { var db = DataService.Instance.GetConnection(); QueryLeft = db.Table <TimePoint>() .Where(v => v.PoseID.Equals(PoseID)) .Where(v => v.Type.Equals(TimePoint.TYPE_HAND_LEFT)); QueryRight = db.Table <TimePoint>() .Where(v => v.PoseID.Equals(PoseID)) .Where(v => v.Type.Equals(TimePoint.TYPE_HAND_RIGHT)); // QueryHead = db.Table<TimePoint>() //.Where(v => v.PoseID.Equals(PoseID)) //.Where(v => v.Type.Equals(TimePoint.TYPE_HEAD)); //foreach (TimePoint tp in Query) //{ // Debug.Log(tp.X); //} EQ_Left = QueryLeft.GetEnumerator(); EQ_Right = QueryRight.GetEnumerator(); //EQ_Head = QueryHead.GetEnumerator(); }
public Table[] GetTable() { try { TableQuery <Table> Weather = BDDConnection.Table <Table>().Where(t => t.Date != null); IEnumerator <Table> enumerateur = Weather.GetEnumerator(); Table[] ArrayWeather = new Table[Weather.Count()]; int i = 0; while (enumerateur.MoveNext()) { if (DateTime.Compare(enumerateur.Current.Date, DateTime.Now) >= 0) { ArrayWeather[i] = enumerateur.Current; i++; } else { } } return(ArrayWeather); } catch { Log.Info("GET weather", "Error when trying to get values from the table"); throw new Exception(); } }
public ListViewPage(string value) { InitializeComponent(); TableQuery <HogeMessage> tableItems = _db.GetItems(10); using (IEnumerator <HogeMessage> e = tableItems.GetEnumerator()){ checked { while (e.MoveNext()) { _items.Add(e.Current.Text); } } } listView.ItemsSource = _items; }
public IEnumerator <T> GetEnumerator() { return(tableQuery.GetEnumerator()); }
/// <summary> /// Returns an enumerator that iterates through the collection. /// </summary> /// <returns> /// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> that can be used to iterate through the collection. /// </returns> public override IEnumerator <TData> GetEnumerator() { return(Collection.GetEnumerator()); }