Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            DateTime      fromdate = fromdatepick.Value;
            DateTime      todate   = todatepick.Value;
            List <string> claimnumbers;

            if (fromdate != DateTime.MinValue && todate != DateTime.MinValue)
            {
                try
                {
                    claimnumbers = client.GetClaimByDate(fromdate, todate);
                    claimsList.Items.Clear();
                    claimsList.DataSource = claimnumbers;
                }
                catch (FaultException <MitchellService.MitchellFault> excep)
                {
                    ClearUI();
                    lblerror.Visible = true;
                    lblerror.Text    = excep.Detail.Message;
                    client           = new MitchellService.MitchellClaimServiceClient();
                }
            }
        }
Exemplo n.º 2
0
 public MitchellClient()
 {
     InitializeComponent();
     client = new MitchellService.MitchellClaimServiceClient();
 }