コード例 #1
0
        private void cmdBrowseProject_Click(object sender, EventArgs e)
        {
            Cursor = System.Windows.Forms.Cursors.WaitCursor;
            using (Finder.ProjectZoom frmProjectZoom = new Finder.ProjectZoom())
            {
                if (frmProjectZoom.ShowDialog() == DialogResult.OK)
                {
                    if (frmProjectZoom.sResult != "")
                    {
                        txtProject.Text = frmProjectZoom.sResult.Trim();
                        listProjectInvoices();

                    }
                }
                Cursor = System.Windows.Forms.Cursors.Default;
            }
            txtJcr.Focus();
        }
コード例 #2
0
        private void cmdProjectZoom_Click(object sender, EventArgs e)
        {
            Cursor = System.Windows.Forms.Cursors.WaitCursor;
            using (Finder.ProjectZoom frmProjectZoom = new Finder.ProjectZoom())
            {
                if (frmProjectZoom.ShowDialog() == DialogResult.OK)
                {
                    if (frmProjectZoom.sResult != "")
                    {
                        txtNumber.Text = frmProjectZoom.sResult.Trim();
                        txtNumber.SelectionStart = 0;
                        txtNumber.SelectionLength = txtNumber.Text.Length;
                        LoadProject(txtNumber.Text);
                        this.ActiveControl = txtNumber;

                    }
                }
                Cursor = System.Windows.Forms.Cursors.Default;
            }
        }