Beispiel #1
0
        private void BindDataGridView()
        {
            TimeScheduleController timeController  = new TimeScheduleController();
            TimeCollections        timeCollections = timeController.SelectList();

            this.dgvTimeSchedule.AutoGenerateColumns = false;
            this.dgvTimeSchedule.DataSource          = timeCollections;
        }
Beispiel #2
0
        private void TimeScheduleReport_Load(object sender, EventArgs e)
        {
            TimeScheduleController Controller = new TimeScheduleController();

            rpvTimeSchedule.LocalReport.DataSources.Clear();
            ReportDataSource rds = new ReportDataSource();

            rds.Name  = "TimeScheduleDataSet_TimeScheduleDataTable";
            rds.Value = Controller.SelectList();
            this.rpvTimeSchedule.LocalReport.DataSources.Add(rds);

            rpvTimeSchedule.ZoomMode = ZoomMode.Percent;
            this.rpvTimeSchedule.RefreshReport();
        }
Beispiel #3
0
        private void BindTime()
        {
            TimeScheduleController timeController  = new TimeScheduleController();
            TimeCollections        timeCollections = timeController.SelectList();
            TimeScheduleInfo       info            = new TimeScheduleInfo();

            info.Time   = " - Select One - ";
            info.TimeID = null;
            timeCollections.Insert(0, info);

            this.cboTime.DisplayMember = "Time";
            this.cboTime.ValueMember   = "TimeID";
            this.cboTime.DataSource    = timeCollections;
            this.cboTime.SelectedIndex = 0;
        }