Example #1
0
        public ScheduleEdit(int id, string From, string To, int Aircraft)
        {
            InitializeComponent();
            this.CenterToScreen();
            lblFrom.Text     = From;
            idSche           = id;
            lblTo.Text       = To;
            lblAircraft.Text = aircraftBUS.getAircraft(Aircraft).Name.ToString();
            Schedule schedule = scheduleBUS.getSchedule(id);

            // dtpDate.Value = schedule.Date;
            txtPrice.Text = schedule.EconomyPrice.ToString();
            txtTime.Text  = schedule.Time.ToString();
            dtpDate.Value = schedule.Date;
        }