/// <summary> /// Zapisuje plik z danymi wycieczki na dysk /// </summary> public bool SaveFileForTrip(Trip trip, String filename) { /// <summary> /// Opis /// </summary> FileAdapter<Trip> forTrip = new FileAdapter<Trip>(); /// <summary> /// Opis /// </summary> return true; }
//public TripEdit() //{ // InitializeComponent(); //} public TripEdit(Trip trip) { // TODO: Complete member initialization this.trip = trip; FileAdapter<Trip> t = new FileAdapter<Trip>(); Type x = typeof(Trip); t.ForTrip(trip); destDir = t.GetDataBaseLocation(); InitializeComponent(); if (trip.vid == 0) { trip.vorganizer = AuthAdapter.GetInstance().getIdentity().vid; button1.Visible = false; button3.Visible = false; } }
private void button2_Click(object sender, EventArgs e) { Trip t; if (trip.vid == 0) { t = new Trip(); t.vorganizer = AuthAdapter.GetInstance().getIdentity().vid; } else { t = trip; } t.SetName(textBox1.Text); t.SetLength(float.Parse(textBox2.Text.ToString())); t.SetPrice(double.Parse(textBox3.Text)); t.SetTransport(textBox4.Text); t.SetDescription(richTextBox1.Text); t.vattraction = comboBox1.SelectedIndex; t.vlocation = comboBox2.SelectedIndex; TripsService.AppFiles.Database.DbService.Update<Trip>(t); }
public bool SaveFileForTrip(Trip trip, String filename) { throw new System.Exception("Not implemented"); }
public String[] GetFilesForTrip(Trip trip) { throw new System.Exception("Not implemented"); }
/// <summary> /// Zwraca nazwy plików dla danej wycieczki /// </summary> public String[] GetFilesForTrip(Trip trip) { FileAdapter<Trip> adapter = new FileAdapter<Trip>(); return new string[] { }; }
/// <summary> /// Zwraca nazwy plików dla danej wycieczki /// </summary> public String[] GetFilesForTrip(Trip trip) { FileAdapter <Trip> adapter = new FileAdapter <Trip>(); return(new string[] { }); }