void KeyF11() { var f = new Lookupcustomer(); lookupcustomer.Focus(); f.EventSelectedItem += SelectCustomer; f.ShowDialog(); }
void KeyF11() { var f = new Lookupcustomer(); if (txtcustomer.EditValue != null) { f.iscustomername = true; f.filtertext = txtcustomer.Text; } lookupcustomer.Focus(); f.EventSelectedItem += SelectCustomer; f.ShowDialog(); if (lookupcustomer.EditValue == null) txtbarcode.Focus(); }