コード例 #1
0
 private void frmXuLyDieuXe_Load(object sender, System.EventArgs e)
 {
     SendKeys.Send("%");
     SendKeys.Send("%");
     lupTrangThai.Properties.DataSource = CommonBL.GetTrangThaiDatLichDonKhach();
     lupTrangThai.ItemIndex             = 1;
     thoigianDieu         = CommonBL.GetTimeServer();
     lblThoiGianDieu.Text = thoigianDieu.ToString("HH:mm dd/MM/yyyy");
     this.Activate();
     txtXeDon.Focus();
 }
コード例 #2
0
        private void FrmDatLichDonKhach_Load(object sender, EventArgs e)
        {
            SendKeys.Send("%");
            SendKeys.Send("%");
            panelInput.FindAllChildrenByType <IShControl>().ToList().ForEach(p => p.Bind());
            ccbLoaiXe.Properties.DataSource    = CommonBL.GetLoaiXe();
            ccbLoaiXe.Properties.DisplayMember = "TenLoaiXe";
            ccbLoaiXe.Properties.ValueMember   = "LoaiXeID";
            ccbTrangThai.Properties.DataSource = CommonBL.GetTrangThaiDatLichDonKhach();
            btnLamMoi.PerformClick();
            Action <object, EventArgs> textchange = (o, eventArgs) => { IsChangeData = true; };

            panelInput.FindAllChildrenByType <IShInput>().ToList().ForEach(p => ((BaseEdit)p).TextChanged += new EventHandler(textchange));
            txtDienThoai.Focus();
        }