Пример #1
0
 private void cmdSearchCustomer_Click(object sender, EventArgs e)
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.SupplierZoom frmSupplierZoom = new Finder.SupplierZoom())
     {
         if (frmSupplierZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmSupplierZoom.sResult != "")
             {
                 txtSupplierCode.Text = frmSupplierZoom.sResult;
                 txtSupplierCode.Focus();
                 txtSupplierCode.SelectionStart = 0;
                 txtSupplierCode.SelectionLength = txtSupplierCode.Text.Length;
                 loadSupplier(txtSupplierCode.Text);
                 cbPeriod.Focus();
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }
Пример #2
0
 private void findSupplier()
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.SupplierZoom frmSupplierZoom = new Finder.SupplierZoom())
     {
         if (frmSupplierZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmSupplierZoom.sResult != "")
             {
                 txtSupplierCode.Text = frmSupplierZoom.sResult;
                 txtSupplierCode.Focus();
                 txtSupplierCode.SelectionStart = 0;
                 txtSupplierCode.SelectionLength = txtSupplierCode.Text.Length;
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }