Наследование: ISerializable
Пример #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
        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);
        }
Пример #4
0
 public bool SaveFileForTrip(Trip trip, String filename)
 {
     throw new System.Exception("Not implemented");
 }
Пример #5
0
 public String[] GetFilesForTrip(Trip trip)
 {
     throw new System.Exception("Not implemented");
 }
Пример #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[] { };
 }
Пример #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[] { });
        }
Пример #8
0

        
Пример #9
0