Example #1
0
        private void cmdSearchNumber_Click(object sender, EventArgs e)
        {
            Cursor = System.Windows.Forms.Cursors.WaitCursor;
            using (Finder.DeliveryZoom frmDelZoom = new Finder.DeliveryZoom())
            {
                if (frmDelZoom.ShowDialog() == DialogResult.OK)
                {
                    if (frmDelZoom.sResult != "")
                    {
                        txtNumber.Text = frmDelZoom.sResult.Trim();
                        txtNumber.SelectionStart = 0;
                        txtNumber.SelectionLength = txtNumber.Text.Length;
                        loadDelivery(txtNumber.Text);
                        listProjectInvoices();
                        this.ActiveControl = txtNumber;

                    }
                }
                Cursor = System.Windows.Forms.Cursors.Default;
            }
        }
Example #2
0
 private void cmdDeliveryZoom_Click(object sender, EventArgs e)
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.DeliveryZoom frmDelZoom = new Finder.DeliveryZoom())
     {
         if (frmDelZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmDelZoom.sResult != "")
             {
                 txtDeliveryNote.Text = frmDelZoom.sResult.Trim();
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
         LoadDeliveryNoteDetails();
     }
 }