Esempio n. 1
0
        private void bteDotKiemKe_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmLookup_DotKiemKeKetThuc frm = new frmLookup_DotKiemKeKetThuc(String.Format("%{0}%", bteDotKiemKe.Text));

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                bteDotKiemKe.Text = "";
                bteDotKiemKe.Tag  = frm.SelectedItem;
                bteDotKiemKe.Text = frm.SelectedItem.MaDotKiemKe;
            }
        }
Esempio n. 2
0
 private void bteDotKiemKe_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         frmLookup_DotKiemKeKetThuc frm = new frmLookup_DotKiemKeKetThuc(String.Format("%{0}%", bteDotKiemKe.Text));
         if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             bteDotKiemKe.Tag  = frm.SelectedItem;
             bteDotKiemKe.Text = frm.SelectedItem.MaDotKiemKe;
         }
     }
 }
Esempio n. 3
0
        private void bteDotKiemKe_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmLookup_DotKiemKeKetThuc frm = new frmLookup_DotKiemKeKetThuc(true);

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                bteDotKiemKe.Text = String.Empty;
                bteDotKiemKe.Tag  = frm.SelectedItems;
                foreach (DotKiemKeInfor dotKiemKeInfor in frm.SelectedItems)
                {
                    bteDotKiemKe.Text += (String.IsNullOrEmpty(bteDotKiemKe.Text) ? String.Empty : ", ") + dotKiemKeInfor.MaDotKiemKe;
                }
            }
        }
Esempio n. 4
0
 private void bteDotKiemKe_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         frmLookup_DotKiemKeKetThuc frm = new frmLookup_DotKiemKeKetThuc(true);
         if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             bteDotKiemKe.Tag = frm.SelectedItems;
             foreach (DotKiemKeInfor dotKiemKeInfor in frm.SelectedItems)
             {
                 bteDotKiemKe.Text += (String.IsNullOrEmpty(bteDotKiemKe.Text) ? String.Empty : ", ") + dotKiemKeInfor.MaDotKiemKe;
             }
         }
     }
 }