Ejemplo n.º 1
0
 public Dashboard()
 {
     InitializeComponent();
     client = new HumanityServiceClient();
     DashboardPanel_TreeView.Focus();
     HideAll();
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        private async void ApproveVolunteerButton_Click(object sender, EventArgs e)
        {
            await client.ApproveContribution(SelectedContribution.Id);

            DashboardPanel_TreeView.Focus();
        }
Ejemplo n.º 4
0
        private async void ValidateContributionButton_Click(object sender, EventArgs e)
        {
            await client.ValidateContribution(SelectedContribution.Id);

            DashboardPanel_TreeView.Focus();
        }
Ejemplo n.º 5
0
 private void RefreshButton_Click(object sender, EventArgs e)
 {
     DashboardPanel_TreeView.Focus();
 }