コード例 #1
0
 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;
     }
 }
コード例 #2
0
 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;
         }
     }
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: kindam/TWTactics
        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;
                }
            }
        }
コード例 #4
0
 private void EventPublisher_VillagesSelected(object sender, VillagesEventArgs e)
 {
     Invalidate();
 }
コード例 #5
0
 /// <summary>
 /// Display found villages
 /// </summary>
 private void Options_VillagesFound(object sender, VillagesEventArgs e)
 {
     Table.DisplayVillages(e.Villages);
 }
コード例 #6
0
ファイル: DetailsControl.cs プロジェクト: kindam/TWTactics
 /// <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;
         }
     }
 }