private void MoveTo(Location loc) { Dispatcher.adopt(delegate { notepadStack.Flush(); }); }
private void MoveTo(Location loc, bool _forceRefresh) { if (slideInConversation(loc)) { myMaxSlideIndex = calculateMaxIndex(myMaxSlideIndex, indexOf(loc.currentSlide.id)); currentSlideId = loc.currentSlide.id; checkMovementLimits(); } }
private bool slideInConversation(Location loc) { return loc.availableSlides.Exists(s => s.id == loc.currentSlide.id); //return Globals.conversationDetails.Slides.Select(t => t.id).Contains(slide); }
private void UpdateGroups(Location loc) { foreach (var u in loc.currentSlide.GroupSets.SelectMany(gs => gs.Groups).SelectMany(g => g.GroupMembers)) {/*Ensure that any person who has had a group is still listed*/ constructPersonFromUsername(u); } foreach (var p in people.Values) { p.Membership.Clear(); foreach (var gs in loc.currentSlide.GroupSets) { foreach (var g in gs.Groups) { p.Membership.Add(new AttributedGroup { Group = g, GroupSet = gs, Person = p.username, IsMember = g.GroupMembers.Contains(p.username) }); } } } participantListBox.ItemsSource = people.Values.ToList(); }
private void JoinConversation(ConversationDetails details) { Dispatcher.adopt(delegate { myMaxSlideIndex = -1; TeachersCurrentSlideIndex = -1; thumbnailList.Clear(); }); if (details.IsEmpty) { return; } Display(details); var currentSlide = details.Slides.OrderBy(cd => cd.index).First(); var newLoc = new Location(details, currentSlide, details.Slides); MoveTo(newLoc, true); Dispatcher.adopt(delegate { AutomationSlideChanged(this, slides.SelectedIndex, currentSlide.index);// indexOf(currentSlideId)); }); Commands.MoveTo.ExecuteAsync(newLoc); //Commands.MoveTo.Execute(new Location(details,details.Slides.OrderBy(cd => cd.index).First(),details.Slides)); }
private void MoveTo(Location loc) { UpdateGroups(loc); }
protected void MoveTo(Location loc) { slide = loc.currentSlide.id; potentiallyRefresh(); }
public UserInformation(Credentials Credentials, Location Location, Policy Policy) { credentials = Credentials; location = Location; policy = Policy; }
public void LocationConstructorTest() { Location target = new Location(); Assert.Inconclusive("TODO: Implement code to verify target"); }
private void MoveTo(Location loc) { Dispatcher.adopt(delegate { ClearAdorners(); stack.Flush(); }); }