예제 #1
0
        private void BindDataGridView()
        {
            BusTypeController  busTypeController  = new BusTypeController();
            BusTypeCollections busTypeCollections = busTypeController.SelectList();

            this.dgvBusType.AutoGenerateColumns = false;
            this.dgvBusType.DataSource          = busTypeCollections;
        }
예제 #2
0
        private void BusTypeReport_Load(object sender, EventArgs e)
        {
            BusTypeController Controller = new BusTypeController();

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

            rds.Name  = "BusTypeDataSet_BusTypeDataTable";
            rds.Value = Controller.SelectList();
            this.rpvBusType.LocalReport.DataSources.Add(rds);

            rpvBusType.ZoomMode = ZoomMode.Percent;
            this.rpvBusType.RefreshReport();
        }
예제 #3
0
        private void BindBusType()
        {
            BusTypeController  busTypeController  = new BusTypeController();
            BusTypeCollections busTypeCollections = busTypeController.SelectList();

            BusTypeInfo info = new BusTypeInfo();

            info.Description = " - Select One - ";
            info.BusTypeID   = null;
            busTypeCollections.Insert(0, info);

            this.cboBusType.DisplayMember = "Description";
            this.cboBusType.ValueMember   = "BusTypeID";
            this.cboBusType.DataSource    = busTypeCollections;
        }