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

            DashboardPanel_TreeView.Focus();
        }
コード例 #4
0
        private async void ValidateContributionButton_Click(object sender, EventArgs e)
        {
            await client.ValidateContribution(SelectedContribution.Id);

            DashboardPanel_TreeView.Focus();
        }
コード例 #5
0
 private void RefreshButton_Click(object sender, EventArgs e)
 {
     DashboardPanel_TreeView.Focus();
 }