private void Timer_Tick(object sender, EventArgs e) { time = string.Format("{0:T}", DateTime.Now); UIClass record = new UIClass { Photo = lbj, Name = "LeBron James", Time = time }; if (viewList.Count > viewCount) { viewList.Remove(viewList[viewCount]); } viewList.Insert(0, record); if (viewList1.Count > viewCount) { viewList1.Remove(viewList1[viewCount]); } viewList1.Insert(0, record); if (viewList2.Count > viewCount) { viewList2.Remove(viewList2[viewCount]); } viewList2.Insert(0, record); if (viewList3.Count > viewCount) { viewList3.Remove(viewList3[viewCount]); } viewList3.Insert(0, record); if (viewList4.Count > viewCount) { viewList4.Remove(viewList4[viewCount]); } viewList4.Insert(0, record); }
private void Plus_Click(object sender, RoutedEventArgs e) { var time = string.Format("{0:T}", DateTime.Now); UIClass record = new UIClass { Photo = lbj, Name = "LeBron James", Time = time }; viewList.Add(record); }
private void camManager_OnRemove(object sender, RoutedEventArgs e) { UIClass uic = e.OriginalSource as UIClass; ; }