private void lookUpEditDoctor_EditValueChanged(object sender, EventArgs e) { int id = (int)lookUpEditDoctor.EditValue; Extensions.Extensions.ShowWaitForm("Uygun muayene saatleri sorgulanıyor..."); RendezvousTimeSolClient client = Extensions.Extensions.GetRendezvousTimeService(); bindingSourceTimes.DataSource = client.AvailableRendezvousTimes(DateTime.Today, id).ToList(); SplashScreenManager.CloseForm(false); }
public static RendezvousTimeSolClient GetRendezvousTimeService() { RendezvousTimeSolClient client; try { client = new RendezvousTimeSolClient(binding, new EndpointAddress(String.Format(GlobalVariables.ServiceRoot + "/{0}", "RendezvousTimeService.svc"))); client.Select(-1); } catch (Exception) { bool b = Program.TestService(); if (!b) { Application.Exit(); } client = new RendezvousTimeSolClient(binding, new EndpointAddress(String.Format(GlobalVariables.ServiceRoot + "/{0}", "RendezvousTimeService.svc"))); } return(client); }