Esempio n. 1
0
        private void btnPayor_Click(object sender, EventArgs e)
        {
            frmPayorDataEntry f = new frmPayorDataEntry();

            f.ShowDialog();

            if (f.wName.Count() > 0)
            {
                tbFirstname.Text  = f.wName["firstname"];
                tbMiddlename.Text = f.wName["middlename"];
                tbLastname.Text   = f.wName["lastname"];
                lbStudID.Text     = Convert.ToString(f.ID);

                lbStudID.Visible      = true;
                tbFirstname.ReadOnly  = true;
                tbMiddlename.ReadOnly = true;
                tbLastname.ReadOnly   = true;
                btnReset.Visible      = true;

                // focus next item
                cmbParticular.Focus();
            }
        }
        private void btnPayor_Click(object sender, EventArgs e)
        {
            frmPayorDataEntry f = new frmPayorDataEntry();
            f.ShowDialog();

            if (f.wName.Count() > 0)
            {
                tbFirstname.Text = f.wName["firstname"];
                tbMiddlename.Text = f.wName["middlename"];
                tbLastname.Text = f.wName["lastname"];
                lbStudID.Text = Convert.ToString(f.ID);

                lbStudID.Visible = true;
                tbFirstname.ReadOnly = true;
                tbMiddlename.ReadOnly = true;
                tbLastname.ReadOnly = true;
                btnReset.Visible = true;

                // focus next item
                cmbParticular.Focus();
            }
        }