private void btnAccept_Click(object sender, RoutedEventArgs e) { PendingAllianceMember member = (PendingAllianceMember)((Button)sender).Tag; this.Alliance.addMember(new AllianceMember(member.Airline, GameObject.GetInstance().GameTime)); this.Alliance.removePendingMember(member); }
private void btnDecline_Click(object sender, RoutedEventArgs e) { PendingAllianceMember member = (PendingAllianceMember)((Button)sender).Tag; this.Alliance.removePendingMember(member); createPanel(); }
private void btnDecline_Click(object sender, RoutedEventArgs e) { PendingAllianceMember pending = (PendingAllianceMember)((Button)sender).Tag; pending.Alliance.removePendingMember(pending); updatePage(); }
private void btnAccept_Click(object sender, RoutedEventArgs e) { PendingAllianceMember pending = (PendingAllianceMember)((Button)sender).Tag; pending.Alliance.addMember(new AllianceMember(pending.Airline, GameObject.GetInstance().GameTime)); pending.Alliance.removePendingMember(pending); updatePage(); }
//removes a pending member from the alliance public void removePendingMember(PendingAllianceMember pending) { this.PendingMembers.Remove(pending); this.Alliance.removePendingMember(pending); }