public BusStopOnLineServiceConfiguration() { BasicHttpBinding httpBinding = new BasicHttpBinding(); TicketServiceClient = new BusStopOnLineServiceClient(httpBinding, EndPoints.BusStopOnLineService); }
public BusScheduleDetails(ClientCredentials clientCredentials, Line line) { InitializeComponent(); BusStopService = new BusStopServiceClient(); BusStopOnLineService = new BusStopOnLineServiceClient(); LineService = new LineServiceClient(); LineSecureService = new LineSecureServiceClient(); LineSecureService.ClientCredentials.UserName.UserName = clientCredentials.UserName.UserName; LineSecureService.ClientCredentials.UserName.Password = clientCredentials.UserName.Password; BusStopOnLineSecureService = new BusStopOnLineSecureServiceClient(); BusStopOnLineSecureService.ClientCredentials.UserName.UserName = clientCredentials.UserName.UserName; BusStopOnLineSecureService.ClientCredentials.UserName.Password = clientCredentials.UserName.Password; this.SelectedLine = line; SelectedBSOL = GetbyLineId(line.Id.Value, BusStopOnLineService.GetAll().Where(bsol=>bsol.Direction==true).ToArray()); LineNumberTextBox.Text = line.Name; SelectedBusStopArray = ConvertToBusStop(SelectedBSOL); FillListView(BusStopService.GetAll(), AllBusStops); FillListView(SelectedBusStopArray, ActualBusStops); SetRelations(); if(SelectedBSOL.First().Direction) { RelationTextBox.SelectedIndex = 0; } else { RelationTextBox.SelectedIndex = 1; } BlockButtons(); SaveButton.IsEnabled = false; IsNewObjectEnable = false; }
public BusStopProvider() { _busStopClient = new BusStopServiceClient(); _busStopOnLineClient = new BusStopOnLineServiceClient(); }
public TimetableProvider() { _client = new TimetableServiceClient(); _busStopClient = new BusStopOnLineServiceClient(); }