private void ShowIncubatorSelection_Click(object sender, RoutedEventArgs e) { IncubatorSelectionOverlayControl incubatorControl = new IncubatorSelectionOverlayControl(); incubatorControl.IncubatorSelected += (incubator) => { IncubateEggCommand?.Execute(incubator); }; incubatorControl.Show(); }
private void IncubatorControl_IncubatorSelected(POGOProtos.Inventory.EggIncubator incubator) { IncubateEggCommand.Execute(incubator); }