Inheritance: ISerializable
Example #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;
 }
Example #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;
            }
        }
Example #3
0
        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);
        }
Example #4
0
 public bool SaveFileForTrip(Trip trip, String filename)
 {
     throw new System.Exception("Not implemented");
 }
Example #5
0
 public String[] GetFilesForTrip(Trip trip)
 {
     throw new System.Exception("Not implemented");
 }
Example #6
0
 /// <summary>
 /// Zwraca nazwy plików dla danej wycieczki
 /// </summary>
 public String[] GetFilesForTrip(Trip trip)
 {
     FileAdapter<Trip> adapter = new FileAdapter<Trip>();
     return new string[] { };
 }
Example #7
0
        /// <summary>
        /// Zwraca nazwy plików dla danej wycieczki
        /// </summary>
        public String[] GetFilesForTrip(Trip trip)
        {
            FileAdapter <Trip> adapter = new FileAdapter <Trip>();

            return(new string[] { });
        }
Example #8
0

        
Example #9
0