Esempio n. 1
0
        private void AccessDialog_Load(object sender, EventArgs e)
        {
            accessMgr                 = new AccessInfoManager();
            carMgr                    = new CarInfoManager();
            minAccessDt               = new TimeSpan(1, 0, 0);
            allowStartDt.Format       = DateTimePickerFormat.Custom;
            allowStartDt.CustomFormat = customDateFormat;
            allowEndDt.Format         = DateTimePickerFormat.Custom;
            allowEndDt.CustomFormat   = customDateFormat;

            carId = carMgr.GetCarIdDBTable();
            cbCarId.DataSource    = carId;
            cbCarId.DisplayMember = "car_id";
            cbCarId.ValueMember   = "car_id";
            cbCarId.SelectedIndex = -1;

            InitComponents();
        }
Esempio n. 2
0
 private void CarInfoDialog_Load(object sender, EventArgs e)
 {
     m_carMgr = new CarInfoManager();
     UpdateComponents();
 }