void uiResources_ResourcesChanged(ResourcePicker.EAddRemove addRemove, EResource resource, int amount)
        {
            StackPanel panel = spPanels.Children.OfType<StackPanel>().Where(p => (EResource)p.Tag == resource).First();

            _AvailableResources.AddResources(resource, amount);
            if (addRemove == ResourcePicker.EAddRemove.Remove)
            {
                RefreshPanel(panel);
            }
        }
Esempio n. 2
0
 void uiWanted_ResourcesChanged(ResourcePicker.EAddRemove addRemove, EResource resource, int amount)
 {
     CheckOffer();
 }
 private void OnResourcesChanged(ResourcePicker.EAddRemove addRemove, EResource resource, int amount)
 {
     if (ResourcesChanged != null)
         ResourcesChanged(addRemove, resource, amount);
 }