private void CmdCustomerTo_Click(object sender, EventArgs e) { //Cursor = System.Windows.Forms.Cursors.WaitCursor; //using (Solsage_Process_Management_System.Finder.CustomerZoom frmCustomerZoom = new Solsage_Process_Management_System.Finder.CustomerZoom()) //{ // if (frmCustomerZoom.ShowDialog() == DialogResult.OK) // { // if (frmCustomerZoom.sResult != "") // { // txtCustomerTo.Text = frmCustomerZoom.sResult; // } // } // Cursor = System.Windows.Forms.Cursors.Default; //} Cursor = System.Windows.Forms.Cursors.WaitCursor; using (Finder.SalesOrderZoom frmSalesZoom = new Solsage_Process_Management_System.Finder.SalesOrderZoom()) { if (frmSalesZoom.ShowDialog() == DialogResult.OK) { if (frmSalesZoom.sResult != "") { txtCustomerTo.Text = frmSalesZoom.sResult.Trim(); } } Cursor = System.Windows.Forms.Cursors.Default; } }
private void cmdSearchNumber_Click_1(object sender, EventArgs e) { Cursor = System.Windows.Forms.Cursors.WaitCursor; using (Finder.SalesOrderZoom frmSalesZoom = new Solsage_Process_Management_System.Finder.SalesOrderZoom()) { if (frmSalesZoom.ShowDialog() == DialogResult.OK) { if (frmSalesZoom.sResult != "") { txtNumber.Text = frmSalesZoom.sResult.Trim(); txtNumber.SelectionStart = 0; txtNumber.SelectionLength = txtNumber.Text.Length; loadSalesOrder(txtNumber.Text); this.ActiveControl = txtNumber; } } Cursor = System.Windows.Forms.Cursors.Default; } }