TripsService.Trip.GetPrice C# (CSharp) Method

GetPrice() public method

public GetPrice ( ) : double
return double
        public virtual double GetPrice()
        {
            return this.price;
        }

Usage Example

Example #1
0
        private void TripEdit_Load(object sender, EventArgs e)
        {
            comboBox1.Items.Clear();
            ICollection <Attraction> items = TripsService.AppFiles.Database.DbService.GetAll <Attraction>();

            comboBox1.Items.Insert(0, string.Empty);
            foreach (Attraction a in items)
            {
                comboBox1.Items.Insert(a.vid, a.GetName());
            }

            comboBox2.Items.Clear();
            ICollection <Location> itemz = TripsService.AppFiles.Database.DbService.GetAll <Location>();

            comboBox2.Items.Insert(0, string.Empty);
            foreach (Location l in itemz)
            {
                comboBox2.Items.Insert(l.vid, l.GetName());
            }
            this.textBox1.Text = trip.GetName();
            this.textBox2.Text = trip.GetLength().ToString();
            textBox3.Text      = trip.GetPrice().ToString();
            textBox4.Text      = trip.GetTransport();
            richTextBox1.Text  = trip.GetDescription();
            if (trip != null)
            {
                comboBox1.SelectedIndex = trip.vattraction;
                comboBox2.SelectedIndex = trip.vlocation;
            }
            refreshPlayList();
        }