Exemplo n.º 1
0
 private void cmdSearchCustomerTo_Click(object sender, EventArgs e)
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.CustomerZoom frmCustomerZoom = new Finder.CustomerZoom())
     {
         if (frmCustomerZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmCustomerZoom.sResult != "")
             {
                 txtCustomerTo.Text = frmCustomerZoom.sResult;
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }
Exemplo n.º 2
0
        private void cmdSearchCustomer_Click(object sender, EventArgs e)
        {
            Cursor = Cursors.WaitCursor;

            using (Finder.CustomerZoom frmCustomerZoom = new Finder.CustomerZoom())
            {
                if (frmCustomerZoom.ShowDialog() == DialogResult.OK)
                {
                    if (frmCustomerZoom.sResult != "")
                    {
                        txtCustomerCode.Text = frmCustomerZoom.sResult;
                        txtCustomerCode.Focus();

                        txtCustomerCode.SelectionStart = 0;
                        txtCustomerCode.SelectionLength = txtCustomerCode.Text.Length;

                        DBLoadCustomerDetails(false, false);
                    }
                }
                Cursor = System.Windows.Forms.Cursors.Default;
            }

            Cursor = Cursors.Default;
        }
Exemplo n.º 3
0
 private void findCustomer(TextBox srcBox)
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.CustomerZoom frmCustomerZoom = new Finder.CustomerZoom())
     {
         if (frmCustomerZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmCustomerZoom.sResult != "")
             {
                 srcBox.Text = frmCustomerZoom.sResult;
                 srcBox.Focus();
                 srcBox.SelectionStart = 0;
                 srcBox.SelectionLength = srcBox.Text.Length;
                 sCustDelivCode = frmCustomerZoom.sCustDelivCode;
                 loadCustomer(false, false);
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }