コード例 #1
0
        /// <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);
        }
コード例 #2
0
        //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;
            }
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
        /// <summary>
        /// Zapisuje plik z danymi danego zdjêcia
        /// </summary>
        public Photo SavePhoto(Photo photo)
        {
            FileAdapter <Photo> adapter = new FileAdapter <Photo>();

            return(new Photo("."));
        }
コード例 #5
0
        /// <summary>
        /// Zwraca nazwy plików dla danej wycieczki
        /// </summary>
        public String[] GetFilesForTrip(Trip trip)
        {
            FileAdapter <Trip> adapter = new FileAdapter <Trip>();

            return(new string[] { });
        }
コード例 #6
0
        /// <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);
        }