public Dashboard() { InitializeComponent(); client = new HumanityServiceClient(); DashboardPanel_TreeView.Focus(); HideAll(); }
private async void ValidateDeliveryButton_Click(object sender, EventArgs e) { var validateDeliveryRequest = new ValidateDeliveryRequest { ValidationType = "Destination", CampaignId = SelectedCampaign.Id, DeliveryCode = DashboardPanel_DeliveryCodeTextBox.Text }; var result = await client.ValidateDelivery(validateDeliveryRequest); string message; if (result.IsValid) { message = "Delivery Validated!"; DashboardPanel_TreeView.Focus(); } else { message = "Wrong Delivery Code."; } MessageBox.Show(message); }
private async void ApproveVolunteerButton_Click(object sender, EventArgs e) { await client.ApproveContribution(SelectedContribution.Id); DashboardPanel_TreeView.Focus(); }
private async void ValidateContributionButton_Click(object sender, EventArgs e) { await client.ValidateContribution(SelectedContribution.Id); DashboardPanel_TreeView.Focus(); }
private void RefreshButton_Click(object sender, EventArgs e) { DashboardPanel_TreeView.Focus(); }