private void World_VillagesSelected(object sender, VillagesEventArgs e) { switch (e.Tool) { case VillageTools.Default: VillageEnd = e.FirstVillage; //SetMorale(); SetTimes(); break; case VillageTools.Distance: VillageStart = e.FirstVillage; SetTimes(); break; } }
private void EventPublisher_VillagesSelected(object sender, VillagesEventArgs e) { if (e.Tool == VillageTools.PinPoint) { var tribe = e.Villages as Tribe; if (tribe != null) { _pinPointedTribe = tribe; _pinPointedVillage = null; _selectedVillage = null; _lockPinpointedVillage = false; } else { _pinPointedTribe = null; _pinPointedVillage = e.FirstVillage; } } }
private void EventPublisher_VillagesSelected(object sender, VillagesEventArgs e) { if (e.Tool == VillageTools.PinPoint) { if (sender is string && (string)sender == VillageContextMenu.OnDetailsHack) { var pane = GetNavigationPane(NavigationPanes.Details); LeftNavigation.SelectNavigationPage(pane.Key); Tabs.SelectedTab = TabsMap; } } }
private void EventPublisher_VillagesSelected(object sender, VillagesEventArgs e) { Invalidate(); }
/// <summary> /// Display found villages /// </summary> private void Options_VillagesFound(object sender, VillagesEventArgs e) { Table.DisplayVillages(e.Villages); }
/// <summary> /// Catch the world village selected event /// </summary> private void EventPublisher_VillagesSelected(object sender, VillagesEventArgs e) { if (!ReferenceEquals(this, sender)) { switch (e.Tool) { case VillageTools.SelectVillage: case VillageTools.PinPoint: SetQuickFinder(e.FirstVillage, e.Tool); break; } } }