/// <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; } }
/// <summary> /// Dodaje zdjêcie do danego albumu i zapisuje na dysku /// </summary> public bool SavePhotoToAlbum(Album album, Photo photo) { FileAdapter <Album> adapter = new FileAdapter <Album>(); return(true); }
/// <summary> /// Zapisuje plik z danymi danego zdjêcia /// </summary> public Photo SavePhoto(Photo photo) { FileAdapter <Photo> adapter = new FileAdapter <Photo>(); return(new Photo(".")); }
/// <summary> /// Zwraca nazwy plików dla danej wycieczki /// </summary> public String[] GetFilesForTrip(Trip trip) { FileAdapter <Trip> adapter = new FileAdapter <Trip>(); return(new string[] { }); }
/// <summary> /// Zapisuje plik z danymi u¿ytkownika na dysk /// </summary> public bool SaveFileForUser(User user, String filename) { FileAdapter <User> forUser = new FileAdapter <User>(); return(true); }