private void cmdSearchInvoiceFrom_Click(object sender, EventArgs e)
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.InvoiceZoom frmInvoiceZoom = new Solsage_Process_Management_System.Finder.InvoiceZoom())
     {
         if (frmInvoiceZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmInvoiceZoom.sResult != "")
             {
                 txtInvoiceFrom.Text = frmInvoiceZoom.sResult;
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }
示例#2
0
 private void cmdSearchNumber_Click(object sender, EventArgs e)
 {
     Cursor = System.Windows.Forms.Cursors.WaitCursor;
     using (Finder.InvoiceZoom frmInvoiceZoom = new Solsage_Process_Management_System.Finder.InvoiceZoom())
     {
         if (frmInvoiceZoom.ShowDialog() == DialogResult.OK)
         {
             if (frmInvoiceZoom.sResult != "")
             {
                 txtInvoiceNumber.Text = frmInvoiceZoom.sResult;
                 txtInvoiceNumber.SelectionStart = 0;
                 txtInvoiceNumber.SelectionLength = txtInvoiceNumber.Text.Length;
                 //LL Phalaborwa
                 loadInvoice(txtInvoiceNumber.Text);
                 //LL
                 this.ActiveControl = txtInvoiceNumber;
             }
         }
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }