private void AcceptStationClick(object sender, EventArgs e) { if (_listOfStations.SelectedItem == null) { return; } if (_departure) { if ((_listOfStations.SelectedItem as DomainModel.Models.Station) == _arrivalStation) { MessageBox.Show("Wybrano tą samą stacje jako stacje odjazdu oraz stacje przyjazdu"); return; } _departure = false; _departureStation = (_listOfStations.SelectedItem as DomainModel.Models.Station); _selectStationArrival.Enabled = true; _selectStationDeparture.Text = "Stacja początkowa: " + _departureStation.Name; } else if (_arrival) { if ((_listOfStations.SelectedItem as DomainModel.Models.Station) == _departureStation) { MessageBox.Show("Wybrano tą samą stacje jako stacje odjazdu oraz stacje przyjazdu"); return; } _departure = false; _arrivalStation = (_listOfStations.SelectedItem as DomainModel.Models.Station); _selectStationArrival.Text = "Stacja końcowa: " + _arrivalStation.Name; } _ok.Visible = false; Background.Visible = true; }
private void AcceptStationClick(object sender, EventArgs e) { if (_listOfStations.SelectedItem == null) { return; } Background.Visible = true; // SaveButton.Enabled = true; if (_departure) { _departure = false; _departureStation = (_listOfStations.SelectedItem as DomainModel.Models.Station); _selectStationDeparture.Text = "Stacja początkowa: " + _departureStation.Name; } else if (_arrival) { _departure = false; _arrivalStation = (_listOfStations.SelectedItem as DomainModel.Models.Station); _selectStationArrival.Text = "Stacja końcowa: " + _arrivalStation.Name; } _ok.Visible = false; }
//ConnectionManagment m = new ConnectionManagment(); public async void NewSearch(DomainModel.Models.Station departure, DomainModel.Models.Station arrival, int price, int hour) { //back = false; _departureStation = departure; _arivalStation = arrival; this._price = price; this._hour = hour; _l = await AC.FindAsync(_departureStation, _arivalStation, price, hour); _result.Rows.Clear(); for (int i = 0; i < _l.Count; i++) { _result.Rows.Add(_l[i].Name, _l[i].Departure.Name, _l[i].Arrival.Name, _l[i].Price, _l[i].TravelTime); } Background.Visible = true; }
public System.Threading.Tasks.Task <System.Collections.Generic.List <System.Collections.Generic.List <DomainModel.Models.Connection> > > FindConnectionAsync(DomainModel.Models.Station departure, DomainModel.Models.Station arrival, System.DateTime date) { return(base.Channel.FindConnectionAsync(departure, arrival, date)); }
public System.Threading.Tasks.Task <bool> UpdateConnectionAsync(DomainModel.Models.ConnectionDefinition cd, DomainModel.Models.Station d, DomainModel.Models.Station a, int p, System.TimeSpan ts) { return(base.Channel.UpdateConnectionAsync(cd, d, a, p, ts)); }
public bool UpdateConnection(DomainModel.Models.ConnectionDefinition cd, DomainModel.Models.Station d, DomainModel.Models.Station a, int p, System.TimeSpan ts) { return(base.Channel.UpdateConnection(cd, d, a, p, ts)); }
public System.Threading.Tasks.Task <System.Collections.Generic.List <DomainModel.Models.ConnectionDefinition> > FindAsync(DomainModel.Models.Station departure, DomainModel.Models.Station arrival, int price, int hour) { return(base.Channel.FindAsync(departure, arrival, price, hour)); }
public System.Threading.Tasks.Task <bool> AddNewConnectionAsync(DomainModel.Models.Station departureStation, DomainModel.Models.Station arrivalStation, int valueHour, int valueMinute, int price, string name) { return(base.Channel.AddNewConnectionAsync(departureStation, arrivalStation, valueHour, valueMinute, price, name)); }
public bool AddNewConnection(DomainModel.Models.Station departureStation, DomainModel.Models.Station arrivalStation, int valueHour, int valueMinute, int price, string name) { return(base.Channel.AddNewConnection(departureStation, arrivalStation, valueHour, valueMinute, price, name)); }
public System.Threading.Tasks.Task <bool> ChangeStation2Async(DomainModel.Models.Station station, bool archivalChecked) { return(base.Channel.ChangeStation2Async(station, archivalChecked)); }
public bool ChangeStation2(DomainModel.Models.Station station, bool archivalChecked) { return(base.Channel.ChangeStation2(station, archivalChecked)); }
public System.Threading.Tasks.Task <bool> ChangeStationAsync(DomainModel.Models.Station station, string text) { return(base.Channel.ChangeStationAsync(station, text)); }
public bool ChangeStation(DomainModel.Models.Station station, string text) { return(base.Channel.ChangeStation(station, text)); }