private void ShowDonateWindow(object sender, EventArgs e) { Button current = (Button)sender; Console.WriteLine("button text i " + current.Parent.Parent.ClassId); currentSelectedCampaign = current.Parent.Parent.AutomationId.ToString(); Console.WriteLine("Campaign is" + currentSelectedCampaign); if (current.Text == "Edit") { Navigation.PushAsync(new CreateEditCampaign(current.Parent.Parent.ClassId)); } else if (current.Text == "Change") { /*Console.WriteLine("change123"); * foreach (CampaignInfo currentThing in App.currentUser.campaignsSupported) * { * Console.WriteLine(currentThing.campaignId + " " + currentThing.dateGiven); * }*/ //Console.WriteLine("Id is "+sender.Parent.Parent.ClassId); currentWindow = new DonationWindow(donateWindow, current.Parent.Parent.ClassId, current.Parent.Parent.AutomationId, true, App.currentUser.campaignsSupported.Find(x => x.campaignId == current.Parent.Parent.ClassId).amount); currentWindow.openWindow(); } else { Console.WriteLine("nochange"); currentWindow = new DonationWindow(donateWindow, current.Parent.Parent.ClassId, current.Parent.Parent.AutomationId, false, ""); currentWindow.openWindow(); } }
public void ShowDonateWindow(Object sender, EventArgs e) { //donateWindow.IsVisible = true; givingWindow = new DonationWindow(donateWindow, campaignIDNumber, campiagnTitle.Text, false, ""); givingWindow.openWindow(); // confirmLabel,confirmAmount,confirmTo,confirmCampaign,donateConfirm }